GPUdb C++ API  Version 7.2.2.4
visualize_image_classbreak.h
Go to the documentation of this file.
1 /*
2  * This file was autogenerated by the Kinetica schema processor.
3  *
4  * DO NOT EDIT DIRECTLY.
5  */
6 #ifndef __VISUALIZE_IMAGE_CLASSBREAK_H__
7 #define __VISUALIZE_IMAGE_CLASSBREAK_H__
8 
9 namespace gpudb
10 {
12  struct VisualizeImageClassbreakRequest
13  {
14  VisualizeImageClassbreakRequest() :
15  tableNames(std::vector<std::string>()),
16  worldTableNames(std::vector<std::string>()),
17  xColumnName(std::string()),
18  yColumnName(std::string()),
19  symbolColumnName(std::string()),
20  geometryColumnName(std::string()),
21  trackIds(std::vector<std::vector<std::string> >()),
22  cbAttr(std::string()),
23  cbVals(std::vector<std::string>()),
24  cbPointcolorAttr(std::string()),
25  cbPointcolorVals(std::vector<std::string>()),
26  cbPointalphaAttr(std::string()),
27  cbPointalphaVals(std::vector<std::string>()),
28  cbPointsizeAttr(std::string()),
29  cbPointsizeVals(std::vector<std::string>()),
30  cbPointshapeAttr(std::string()),
31  cbPointshapeVals(std::vector<std::string>()),
32  minX(double()),
33  maxX(double()),
34  minY(double()),
35  maxY(double()),
36  width(int32_t()),
37  height(int32_t()),
38  projection(std::string()),
39  bgColor(int64_t()),
40  styleOptions(std::map<std::string, std::vector<std::string> >()),
41  options(std::map<std::string, std::string>()),
42  cbTransparencyVec(std::vector<int32_t>())
43  {
44  }
45 
46  VisualizeImageClassbreakRequest(const std::vector<std::string>& tableNames_, const std::vector<std::string>& worldTableNames_, const std::string& xColumnName_, const std::string& yColumnName_, const std::string& symbolColumnName_, const std::string& geometryColumnName_, const std::vector<std::vector<std::string> >& trackIds_, const std::string& cbAttr_, const std::vector<std::string>& cbVals_, const std::string& cbPointcolorAttr_, const std::vector<std::string>& cbPointcolorVals_, const std::string& cbPointalphaAttr_, const std::vector<std::string>& cbPointalphaVals_, const std::string& cbPointsizeAttr_, const std::vector<std::string>& cbPointsizeVals_, const std::string& cbPointshapeAttr_, const std::vector<std::string>& cbPointshapeVals_, const double minX_, const double maxX_, const double minY_, const double maxY_, const int32_t width_, const int32_t height_, const std::string& projection_, const int64_t bgColor_, const std::map<std::string, std::vector<std::string> >& styleOptions_, const std::map<std::string, std::string>& options_, const std::vector<int32_t>& cbTransparencyVec_):
47  tableNames( tableNames_ ),
48  worldTableNames( worldTableNames_ ),
49  xColumnName( xColumnName_ ),
50  yColumnName( yColumnName_ ),
51  symbolColumnName( symbolColumnName_ ),
52  geometryColumnName( geometryColumnName_ ),
53  trackIds( trackIds_ ),
54  cbAttr( cbAttr_ ),
55  cbVals( cbVals_ ),
56  cbPointcolorAttr( cbPointcolorAttr_ ),
57  cbPointcolorVals( cbPointcolorVals_ ),
58  cbPointalphaAttr( cbPointalphaAttr_ ),
59  cbPointalphaVals( cbPointalphaVals_ ),
60  cbPointsizeAttr( cbPointsizeAttr_ ),
61  cbPointsizeVals( cbPointsizeVals_ ),
62  cbPointshapeAttr( cbPointshapeAttr_ ),
63  cbPointshapeVals( cbPointshapeVals_ ),
64  minX( minX_ ),
65  maxX( maxX_ ),
66  minY( minY_ ),
67  maxY( maxY_ ),
68  width( width_ ),
69  height( height_ ),
70  projection( projection_ ),
71  bgColor( bgColor_ ),
72  styleOptions( styleOptions_ ),
73  options( options_ ),
74  cbTransparencyVec( cbTransparencyVec_ )
75  {
76  }
77 
78  std::vector<std::string> tableNames;
79  std::vector<std::string> worldTableNames;
80  std::string xColumnName;
81  std::string yColumnName;
82  std::string symbolColumnName;
83  std::string geometryColumnName;
84  std::vector<std::vector<std::string> > trackIds;
85  std::string cbAttr;
86  std::vector<std::string> cbVals;
87  std::string cbPointcolorAttr;
88  std::vector<std::string> cbPointcolorVals;
89  std::string cbPointalphaAttr;
90  std::vector<std::string> cbPointalphaVals;
91  std::string cbPointsizeAttr;
92  std::vector<std::string> cbPointsizeVals;
93  std::string cbPointshapeAttr;
94  std::vector<std::string> cbPointshapeVals;
95  double minX;
96  double maxX;
97  double minY;
98  double maxY;
99  int32_t width;
100  int32_t height;
101  std::string projection;
102  int64_t bgColor;
103  std::map<std::string, std::vector<std::string> > styleOptions;
104  std::map<std::string, std::string> options;
105  std::vector<int32_t> cbTransparencyVec;
106  };
107 } // end namespace gpudb
108 
109 namespace avro
110 {
111  template<> struct codec_traits<gpudb::VisualizeImageClassbreakRequest>
112  {
113  static void encode(Encoder& e, const gpudb::VisualizeImageClassbreakRequest& v)
114  {
115  ::avro::encode(e, v.tableNames);
116  ::avro::encode(e, v.worldTableNames);
117  ::avro::encode(e, v.xColumnName);
118  ::avro::encode(e, v.yColumnName);
119  ::avro::encode(e, v.symbolColumnName);
120  ::avro::encode(e, v.geometryColumnName);
121  ::avro::encode(e, v.trackIds);
122  ::avro::encode(e, v.cbAttr);
123  ::avro::encode(e, v.cbVals);
124  ::avro::encode(e, v.cbPointcolorAttr);
125  ::avro::encode(e, v.cbPointcolorVals);
126  ::avro::encode(e, v.cbPointalphaAttr);
127  ::avro::encode(e, v.cbPointalphaVals);
128  ::avro::encode(e, v.cbPointsizeAttr);
129  ::avro::encode(e, v.cbPointsizeVals);
130  ::avro::encode(e, v.cbPointshapeAttr);
131  ::avro::encode(e, v.cbPointshapeVals);
132  ::avro::encode(e, v.minX);
133  ::avro::encode(e, v.maxX);
134  ::avro::encode(e, v.minY);
135  ::avro::encode(e, v.maxY);
136  ::avro::encode(e, v.width);
137  ::avro::encode(e, v.height);
138  ::avro::encode(e, v.projection);
139  ::avro::encode(e, v.bgColor);
140  ::avro::encode(e, v.styleOptions);
141  ::avro::encode(e, v.options);
142  ::avro::encode(e, v.cbTransparencyVec);
143  }
144 
145  static void decode(Decoder& d, gpudb::VisualizeImageClassbreakRequest& v)
146  {
147  if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
148  {
149  const std::vector<size_t> fo = rd->fieldOrder();
150 
151  for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
152  {
153  switch (*it)
154  {
155  case 0:
156  ::avro::decode(d, v.tableNames);
157  break;
158 
159  case 1:
160  ::avro::decode(d, v.worldTableNames);
161  break;
162 
163  case 2:
164  ::avro::decode(d, v.xColumnName);
165  break;
166 
167  case 3:
168  ::avro::decode(d, v.yColumnName);
169  break;
170 
171  case 4:
172  ::avro::decode(d, v.symbolColumnName);
173  break;
174 
175  case 5:
176  ::avro::decode(d, v.geometryColumnName);
177  break;
178 
179  case 6:
180  ::avro::decode(d, v.trackIds);
181  break;
182 
183  case 7:
184  ::avro::decode(d, v.cbAttr);
185  break;
186 
187  case 8:
188  ::avro::decode(d, v.cbVals);
189  break;
190 
191  case 9:
192  ::avro::decode(d, v.cbPointcolorAttr);
193  break;
194 
195  case 10:
196  ::avro::decode(d, v.cbPointcolorVals);
197  break;
198 
199  case 11:
200  ::avro::decode(d, v.cbPointalphaAttr);
201  break;
202 
203  case 12:
204  ::avro::decode(d, v.cbPointalphaVals);
205  break;
206 
207  case 13:
208  ::avro::decode(d, v.cbPointsizeAttr);
209  break;
210 
211  case 14:
212  ::avro::decode(d, v.cbPointsizeVals);
213  break;
214 
215  case 15:
216  ::avro::decode(d, v.cbPointshapeAttr);
217  break;
218 
219  case 16:
220  ::avro::decode(d, v.cbPointshapeVals);
221  break;
222 
223  case 17:
224  ::avro::decode(d, v.minX);
225  break;
226 
227  case 18:
228  ::avro::decode(d, v.maxX);
229  break;
230 
231  case 19:
232  ::avro::decode(d, v.minY);
233  break;
234 
235  case 20:
236  ::avro::decode(d, v.maxY);
237  break;
238 
239  case 21:
240  ::avro::decode(d, v.width);
241  break;
242 
243  case 22:
244  ::avro::decode(d, v.height);
245  break;
246 
247  case 23:
248  ::avro::decode(d, v.projection);
249  break;
250 
251  case 24:
252  ::avro::decode(d, v.bgColor);
253  break;
254 
255  case 25:
256  ::avro::decode(d, v.styleOptions);
257  break;
258 
259  case 26:
260  ::avro::decode(d, v.options);
261  break;
262 
263  case 27:
264  ::avro::decode(d, v.cbTransparencyVec);
265  break;
266 
267  default:
268  break;
269  }
270  }
271  }
272  else
273  {
274  ::avro::decode(d, v.tableNames);
275  ::avro::decode(d, v.worldTableNames);
276  ::avro::decode(d, v.xColumnName);
277  ::avro::decode(d, v.yColumnName);
278  ::avro::decode(d, v.symbolColumnName);
279  ::avro::decode(d, v.geometryColumnName);
280  ::avro::decode(d, v.trackIds);
281  ::avro::decode(d, v.cbAttr);
282  ::avro::decode(d, v.cbVals);
283  ::avro::decode(d, v.cbPointcolorAttr);
284  ::avro::decode(d, v.cbPointcolorVals);
285  ::avro::decode(d, v.cbPointalphaAttr);
286  ::avro::decode(d, v.cbPointalphaVals);
287  ::avro::decode(d, v.cbPointsizeAttr);
288  ::avro::decode(d, v.cbPointsizeVals);
289  ::avro::decode(d, v.cbPointshapeAttr);
290  ::avro::decode(d, v.cbPointshapeVals);
291  ::avro::decode(d, v.minX);
292  ::avro::decode(d, v.maxX);
293  ::avro::decode(d, v.minY);
294  ::avro::decode(d, v.maxY);
295  ::avro::decode(d, v.width);
296  ::avro::decode(d, v.height);
297  ::avro::decode(d, v.projection);
298  ::avro::decode(d, v.bgColor);
299  ::avro::decode(d, v.styleOptions);
300  ::avro::decode(d, v.options);
301  ::avro::decode(d, v.cbTransparencyVec);
302  }
303  }
304  };
305 } // end namespace avro
306 
307 namespace gpudb
308 {
310  struct VisualizeImageClassbreakResponse
311  {
312  VisualizeImageClassbreakResponse() :
313  width(double()),
314  height(double()),
315  bgColor(int64_t()),
316  imageData(std::vector<uint8_t>()),
317  info(std::map<std::string, std::string>())
318  {
319  }
320 
321  double width;
322  double height;
323  int64_t bgColor;
324  std::vector<uint8_t> imageData;
325  std::map<std::string, std::string> info;
326  };
327 } // end namespace gpudb
328 
329 namespace avro
330 {
331  template<> struct codec_traits<gpudb::VisualizeImageClassbreakResponse>
332  {
333  static void encode(Encoder& e, const gpudb::VisualizeImageClassbreakResponse& v)
334  {
335  ::avro::encode(e, v.width);
336  ::avro::encode(e, v.height);
337  ::avro::encode(e, v.bgColor);
338  ::avro::encode(e, v.imageData);
339  ::avro::encode(e, v.info);
340  }
341 
342  static void decode(Decoder& d, gpudb::VisualizeImageClassbreakResponse& v)
343  {
344  if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
345  {
346  const std::vector<size_t> fo = rd->fieldOrder();
347 
348  for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
349  {
350  switch (*it)
351  {
352  case 0:
353  ::avro::decode(d, v.width);
354  break;
355 
356  case 1:
357  ::avro::decode(d, v.height);
358  break;
359 
360  case 2:
361  ::avro::decode(d, v.bgColor);
362  break;
363 
364  case 3:
365  ::avro::decode(d, v.imageData);
366  break;
367 
368  case 4:
369  ::avro::decode(d, v.info);
370  break;
371 
372  default:
373  break;
374  }
375  }
376  }
377  else
378  {
379  ::avro::decode(d, v.width);
380  ::avro::decode(d, v.height);
381  ::avro::decode(d, v.bgColor);
382  ::avro::decode(d, v.imageData);
383  ::avro::decode(d, v.info);
384  }
385  }
386  };
387 } // end namespace avro
388 
389 #endif // __VISUALIZE_IMAGE_CLASSBREAK_H__