|
44 | 44 | </Point> |
45 | 45 |
|
46 | 46 | <!-- |
47 | | - struct MyLinestring : std::vector<MyPoint> |
48 | | - { }; |
| 47 | + struct MyLinestring |
| 48 | + { |
| 49 | + std::vector<MyPoint> points; |
| 50 | + }; |
49 | 51 | --> |
50 | 52 | <Linestring Id="MyLinestring"> |
51 | 53 | <Points> |
52 | 54 | <Container> |
53 | | - <Name>(std::vector<MyPoint,std::allocator<MyPoint> >&)(*this)</Name> |
| 55 | + <Name>points</Name> |
54 | 56 | </Container> |
55 | 57 | </Points> |
56 | 58 | </Linestring> |
57 | 59 |
|
58 | 60 | <!-- |
59 | | - struct MyLinestring2 |
60 | | - { |
61 | | - std::vector<MyPoint> points; |
62 | | - }; |
| 61 | + template <typename Point> |
| 62 | + struct MyLinestring2 : std::vector<Point> |
| 63 | + { }; |
63 | 64 | --> |
64 | 65 | <Linestring Id="MyLinestring2"> |
65 | 66 | <Points> |
66 | 67 | <Container> |
67 | | - <Name>points</Name> |
| 68 | + <Name>(std::vector<$T0,std::allocator<$T0> >&)(*this)</Name> |
68 | 69 | </Container> |
69 | 70 | </Points> |
70 | 71 | </Linestring> |
|
98 | 99 | </Ring> |
99 | 100 |
|
100 | 101 | <!-- |
101 | | - struct MyPolygon : std::vector<MyRing> |
102 | | - { }; |
| 102 | + struct MyPolygon |
| 103 | + { |
| 104 | + MyRing outer; |
| 105 | + std::vector<MyRing> inners; |
| 106 | + }; |
103 | 107 | --> |
104 | 108 | <Polygon Id="MyPolygon"> |
| 109 | + <ExteriorRing> |
| 110 | + <Name>outer</Name> |
| 111 | + </ExteriorRing> |
| 112 | + <InteriorRings> |
| 113 | + <Container> |
| 114 | + <Name>inners</Name> |
| 115 | + </Container> |
| 116 | + <!--Offset>0</Offset--> |
| 117 | + </InteriorRings> |
| 118 | + </Polygon> |
| 119 | + |
| 120 | + <!-- |
| 121 | + struct MyPolygon2 : std::vector<MyRing> |
| 122 | + { }; |
| 123 | + --> |
| 124 | + <Polygon Id="MyPolygon2"> |
105 | 125 | <ExteriorRing> |
106 | 126 | <Name>(*_Mypair._Myval2._Myfirst)</Name> |
107 | 127 | </ExteriorRing> |
|
114 | 134 | </Polygon> |
115 | 135 |
|
116 | 136 | <!-- |
117 | | - struct MyMultiPoint : std::vector<MyPoint> |
118 | | - { }; |
| 137 | + struct MyMultiPoint |
| 138 | + { |
| 139 | + std::vector<MyPoint> points; |
| 140 | + }; |
119 | 141 | --> |
120 | 142 | <MultiPoint Id="MyMultiPoint"> |
121 | 143 | <Points> |
122 | 144 | <Container> |
123 | | - <Name>(std::vector<MyPoint,std::allocator<MyPoint> >&)(*this)</Name> |
| 145 | + <Name>points</Name> |
124 | 146 | </Container> |
125 | 147 | </Points> |
126 | 148 | </MultiPoint> |
127 | 149 |
|
128 | 150 | <!-- |
129 | | - struct MyMultiLinestring : std::vector<MyLinestring> |
130 | | - { }; |
| 151 | + struct MyMultiLinestring |
| 152 | + { |
| 153 | + std::vector<MyLinestring> linestrings; |
| 154 | + }; |
131 | 155 | --> |
132 | 156 | <MultiLinestring Id="MyMultiLinestring"> |
133 | 157 | <Linestrings> |
134 | 158 | <Container> |
135 | | - <Name>(std::vector<MyLinestring,std::allocator<MyLinestring> >&)(*this)</Name> |
| 159 | + <Name>linestrings</Name> |
136 | 160 | </Container> |
137 | 161 | </Linestrings> |
138 | 162 | </MultiLinestring> |
139 | 163 |
|
140 | 164 | <!-- |
141 | | - struct MyMultiPolygon : std::vector<MyPolygon> |
142 | | - { }; |
| 165 | + struct MyMultiPolygon |
| 166 | + { |
| 167 | + std::vector<MyPolygon> polygons; |
| 168 | + }; |
143 | 169 | --> |
144 | 170 | <MultiPolygon Id="MyMultiPolygon"> |
145 | 171 | <Polygons> |
146 | 172 | <Container> |
147 | | - <Name>(std::vector<MyPolygon,std::allocator<MyPolygon> >&)(*this)</Name> |
| 173 | + <Name>polygons</Name> |
148 | 174 | </Container> |
149 | 175 | </Polygons> |
150 | 176 | </MultiPolygon> |
|
0 commit comments