GPUdb C++ API  Version 7.1.10.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
visualize_image_chart.h
Go to the documentation of this file.
1 /*
2  * This file was autogenerated by the GPUdb schema processor.
3  *
4  * DO NOT EDIT DIRECTLY.
5  */
6 #ifndef __VISUALIZE_IMAGE_CHART_H__
7 #define __VISUALIZE_IMAGE_CHART_H__
8 
9 namespace gpudb
10 {
11 
23  {
24 
30  tableName(std::string()),
31  xColumnNames(std::vector<std::string>()),
32  yColumnNames(std::vector<std::string>()),
33  minX(double()),
34  maxX(double()),
35  minY(double()),
36  maxY(double()),
37  width(int32_t()),
38  height(int32_t()),
39  bgColor(std::string()),
40  styleOptions(std::map<std::string, std::vector<std::string> >()),
41  options(std::map<std::string, std::string>())
42  {
43  }
44 
238  VisualizeImageChartRequest(const std::string& tableName_, const std::vector<std::string>& xColumnNames_, const std::vector<std::string>& yColumnNames_, const double minX_, const double maxX_, const double minY_, const double maxY_, const int32_t width_, const int32_t height_, const std::string& bgColor_, const std::map<std::string, std::vector<std::string> >& styleOptions_, const std::map<std::string, std::string>& options_):
239  tableName( tableName_ ),
240  xColumnNames( xColumnNames_ ),
241  yColumnNames( yColumnNames_ ),
242  minX( minX_ ),
243  maxX( maxX_ ),
244  minY( minY_ ),
245  maxY( maxY_ ),
246  width( width_ ),
247  height( height_ ),
248  bgColor( bgColor_ ),
249  styleOptions( styleOptions_ ),
250  options( options_ )
251  {
252  }
253 
254  std::string tableName;
255  std::vector<std::string> xColumnNames;
256  std::vector<std::string> yColumnNames;
257  double minX;
258  double maxX;
259  double minY;
260  double maxY;
261  int32_t width;
262  int32_t height;
263  std::string bgColor;
264  std::map<std::string, std::vector<std::string> > styleOptions;
265  std::map<std::string, std::string> options;
266  };
267 }
268 
269 namespace avro
270 {
271  template<> struct codec_traits<gpudb::VisualizeImageChartRequest>
272  {
273  static void encode(Encoder& e, const gpudb::VisualizeImageChartRequest& v)
274  {
275  ::avro::encode(e, v.tableName);
276  ::avro::encode(e, v.xColumnNames);
277  ::avro::encode(e, v.yColumnNames);
278  ::avro::encode(e, v.minX);
279  ::avro::encode(e, v.maxX);
280  ::avro::encode(e, v.minY);
281  ::avro::encode(e, v.maxY);
282  ::avro::encode(e, v.width);
283  ::avro::encode(e, v.height);
284  ::avro::encode(e, v.bgColor);
285  ::avro::encode(e, v.styleOptions);
286  ::avro::encode(e, v.options);
287  }
288 
289  static void decode(Decoder& d, gpudb::VisualizeImageChartRequest& v)
290  {
291  if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
292  {
293  const std::vector<size_t> fo = rd->fieldOrder();
294 
295  for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
296  {
297  switch (*it)
298  {
299  case 0:
300  ::avro::decode(d, v.tableName);
301  break;
302 
303  case 1:
304  ::avro::decode(d, v.xColumnNames);
305  break;
306 
307  case 2:
308  ::avro::decode(d, v.yColumnNames);
309  break;
310 
311  case 3:
312  ::avro::decode(d, v.minX);
313  break;
314 
315  case 4:
316  ::avro::decode(d, v.maxX);
317  break;
318 
319  case 5:
320  ::avro::decode(d, v.minY);
321  break;
322 
323  case 6:
324  ::avro::decode(d, v.maxY);
325  break;
326 
327  case 7:
328  ::avro::decode(d, v.width);
329  break;
330 
331  case 8:
332  ::avro::decode(d, v.height);
333  break;
334 
335  case 9:
336  ::avro::decode(d, v.bgColor);
337  break;
338 
339  case 10:
340  ::avro::decode(d, v.styleOptions);
341  break;
342 
343  case 11:
344  ::avro::decode(d, v.options);
345  break;
346 
347  default:
348  break;
349  }
350  }
351  }
352  else
353  {
354  ::avro::decode(d, v.tableName);
355  ::avro::decode(d, v.xColumnNames);
356  ::avro::decode(d, v.yColumnNames);
357  ::avro::decode(d, v.minX);
358  ::avro::decode(d, v.maxX);
359  ::avro::decode(d, v.minY);
360  ::avro::decode(d, v.maxY);
361  ::avro::decode(d, v.width);
362  ::avro::decode(d, v.height);
363  ::avro::decode(d, v.bgColor);
364  ::avro::decode(d, v.styleOptions);
365  ::avro::decode(d, v.options);
366  }
367  }
368  };
369 }
370 
371 namespace gpudb
372 {
373 
385  {
386 
392  minX(double()),
393  maxX(double()),
394  minY(double()),
395  maxY(double()),
396  width(int32_t()),
397  height(int32_t()),
398  bgColor(std::string()),
399  imageData(std::vector<uint8_t>()),
400  axesInfo(std::map<std::string, std::vector<std::string> >()),
401  info(std::map<std::string, std::string>())
402  {
403  }
404 
405  double minX;
406  double maxX;
407  double minY;
408  double maxY;
409  int32_t width;
410  int32_t height;
411  std::string bgColor;
412  std::vector<uint8_t> imageData;
413  std::map<std::string, std::vector<std::string> > axesInfo;
414  std::map<std::string, std::string> info;
415  };
416 }
417 
418 namespace avro
419 {
420  template<> struct codec_traits<gpudb::VisualizeImageChartResponse>
421  {
422  static void encode(Encoder& e, const gpudb::VisualizeImageChartResponse& v)
423  {
424  ::avro::encode(e, v.minX);
425  ::avro::encode(e, v.maxX);
426  ::avro::encode(e, v.minY);
427  ::avro::encode(e, v.maxY);
428  ::avro::encode(e, v.width);
429  ::avro::encode(e, v.height);
430  ::avro::encode(e, v.bgColor);
431  ::avro::encode(e, v.imageData);
432  ::avro::encode(e, v.axesInfo);
433  ::avro::encode(e, v.info);
434  }
435 
436  static void decode(Decoder& d, gpudb::VisualizeImageChartResponse& v)
437  {
438  if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
439  {
440  const std::vector<size_t> fo = rd->fieldOrder();
441 
442  for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
443  {
444  switch (*it)
445  {
446  case 0:
447  ::avro::decode(d, v.minX);
448  break;
449 
450  case 1:
451  ::avro::decode(d, v.maxX);
452  break;
453 
454  case 2:
455  ::avro::decode(d, v.minY);
456  break;
457 
458  case 3:
459  ::avro::decode(d, v.maxY);
460  break;
461 
462  case 4:
463  ::avro::decode(d, v.width);
464  break;
465 
466  case 5:
467  ::avro::decode(d, v.height);
468  break;
469 
470  case 6:
471  ::avro::decode(d, v.bgColor);
472  break;
473 
474  case 7:
475  ::avro::decode(d, v.imageData);
476  break;
477 
478  case 8:
479  ::avro::decode(d, v.axesInfo);
480  break;
481 
482  case 9:
483  ::avro::decode(d, v.info);
484  break;
485 
486  default:
487  break;
488  }
489  }
490  }
491  else
492  {
493  ::avro::decode(d, v.minX);
494  ::avro::decode(d, v.maxX);
495  ::avro::decode(d, v.minY);
496  ::avro::decode(d, v.maxY);
497  ::avro::decode(d, v.width);
498  ::avro::decode(d, v.height);
499  ::avro::decode(d, v.bgColor);
500  ::avro::decode(d, v.imageData);
501  ::avro::decode(d, v.axesInfo);
502  ::avro::decode(d, v.info);
503  }
504  }
505  };
506 }
507 
508 #endif
A set of input parameters for const.
VisualizeImageChartResponse()
Constructs a VisualizeImageChartResponse object with default parameter values.
std::map< std::string, std::vector< std::string > > axesInfo
std::vector< std::string > yColumnNames
VisualizeImageChartRequest(const std::string &tableName_, const std::vector< std::string > &xColumnNames_, const std::vector< std::string > &yColumnNames_, const double minX_, const double maxX_, const double minY_, const double maxY_, const int32_t width_, const int32_t height_, const std::string &bgColor_, const std::map< std::string, std::vector< std::string > > &styleOptions_, const std::map< std::string, std::string > &options_)
Constructs a VisualizeImageChartRequest object with the specified parameters.
A set of output parameters for const.
std::vector< std::string > xColumnNames
std::map< std::string, std::string > info
std::map< std::string, std::string > options
std::map< std::string, std::vector< std::string > > styleOptions
VisualizeImageChartRequest()
Constructs a VisualizeImageChartRequest object with default parameter values.