GPUdb C++ API  Version 7.1.10.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
visualize_image_classbreak.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_CLASSBREAK_H__
7 #define __VISUALIZE_IMAGE_CLASSBREAK_H__
8 
9 namespace gpudb
10 {
11 
18  struct VisualizeImageClassbreakRequest
19  {
20 
26  VisualizeImageClassbreakRequest() :
27  tableNames(std::vector<std::string>()),
28  worldTableNames(std::vector<std::string>()),
29  xColumnName(std::string()),
30  yColumnName(std::string()),
31  symbolColumnName(std::string()),
32  geometryColumnName(std::string()),
33  trackIds(std::vector<std::vector<std::string> >()),
34  cbAttr(std::string()),
35  cbVals(std::vector<std::string>()),
36  cbPointcolorAttr(std::string()),
37  cbPointcolorVals(std::vector<std::string>()),
38  cbPointalphaAttr(std::string()),
39  cbPointalphaVals(std::vector<std::string>()),
40  cbPointsizeAttr(std::string()),
41  cbPointsizeVals(std::vector<std::string>()),
42  cbPointshapeAttr(std::string()),
43  cbPointshapeVals(std::vector<std::string>()),
44  minX(double()),
45  maxX(double()),
46  minY(double()),
47  maxY(double()),
48  width(int32_t()),
49  height(int32_t()),
50  projection(std::string()),
51  bgColor(int64_t()),
52  styleOptions(std::map<std::string, std::vector<std::string> >()),
53  options(std::map<std::string, std::string>()),
54  cbTransparencyVec(std::vector<int32_t>())
55  {
56  }
57 
310  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_):
311  tableNames( tableNames_ ),
312  worldTableNames( worldTableNames_ ),
313  xColumnName( xColumnName_ ),
314  yColumnName( yColumnName_ ),
315  symbolColumnName( symbolColumnName_ ),
316  geometryColumnName( geometryColumnName_ ),
317  trackIds( trackIds_ ),
318  cbAttr( cbAttr_ ),
319  cbVals( cbVals_ ),
320  cbPointcolorAttr( cbPointcolorAttr_ ),
321  cbPointcolorVals( cbPointcolorVals_ ),
322  cbPointalphaAttr( cbPointalphaAttr_ ),
323  cbPointalphaVals( cbPointalphaVals_ ),
324  cbPointsizeAttr( cbPointsizeAttr_ ),
325  cbPointsizeVals( cbPointsizeVals_ ),
326  cbPointshapeAttr( cbPointshapeAttr_ ),
327  cbPointshapeVals( cbPointshapeVals_ ),
328  minX( minX_ ),
329  maxX( maxX_ ),
330  minY( minY_ ),
331  maxY( maxY_ ),
332  width( width_ ),
333  height( height_ ),
334  projection( projection_ ),
335  bgColor( bgColor_ ),
336  styleOptions( styleOptions_ ),
337  options( options_ ),
338  cbTransparencyVec( cbTransparencyVec_ )
339  {
340  }
341 
342  std::vector<std::string> tableNames;
343  std::vector<std::string> worldTableNames;
344  std::string xColumnName;
345  std::string yColumnName;
346  std::string symbolColumnName;
347  std::string geometryColumnName;
348  std::vector<std::vector<std::string> > trackIds;
349  std::string cbAttr;
350  std::vector<std::string> cbVals;
351  std::string cbPointcolorAttr;
352  std::vector<std::string> cbPointcolorVals;
353  std::string cbPointalphaAttr;
354  std::vector<std::string> cbPointalphaVals;
355  std::string cbPointsizeAttr;
356  std::vector<std::string> cbPointsizeVals;
357  std::string cbPointshapeAttr;
358  std::vector<std::string> cbPointshapeVals;
359  double minX;
360  double maxX;
361  double minY;
362  double maxY;
363  int32_t width;
364  int32_t height;
365  std::string projection;
366  int64_t bgColor;
367  std::map<std::string, std::vector<std::string> > styleOptions;
368  std::map<std::string, std::string> options;
369  std::vector<int32_t> cbTransparencyVec;
370  };
371 }
372 
377 namespace avro
378 {
379  template<> struct codec_traits<gpudb::VisualizeImageClassbreakRequest>
380  {
381  static void encode(Encoder& e, const gpudb::VisualizeImageClassbreakRequest& v)
382  {
383  ::avro::encode(e, v.tableNames);
384  ::avro::encode(e, v.worldTableNames);
385  ::avro::encode(e, v.xColumnName);
386  ::avro::encode(e, v.yColumnName);
387  ::avro::encode(e, v.symbolColumnName);
388  ::avro::encode(e, v.geometryColumnName);
389  ::avro::encode(e, v.trackIds);
390  ::avro::encode(e, v.cbAttr);
391  ::avro::encode(e, v.cbVals);
392  ::avro::encode(e, v.cbPointcolorAttr);
393  ::avro::encode(e, v.cbPointcolorVals);
394  ::avro::encode(e, v.cbPointalphaAttr);
395  ::avro::encode(e, v.cbPointalphaVals);
396  ::avro::encode(e, v.cbPointsizeAttr);
397  ::avro::encode(e, v.cbPointsizeVals);
398  ::avro::encode(e, v.cbPointshapeAttr);
399  ::avro::encode(e, v.cbPointshapeVals);
400  ::avro::encode(e, v.minX);
401  ::avro::encode(e, v.maxX);
402  ::avro::encode(e, v.minY);
403  ::avro::encode(e, v.maxY);
404  ::avro::encode(e, v.width);
405  ::avro::encode(e, v.height);
406  ::avro::encode(e, v.projection);
407  ::avro::encode(e, v.bgColor);
408  ::avro::encode(e, v.styleOptions);
409  ::avro::encode(e, v.options);
410  ::avro::encode(e, v.cbTransparencyVec);
411  }
412 
413  static void decode(Decoder& d, gpudb::VisualizeImageClassbreakRequest& v)
414  {
415  if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
416  {
417  const std::vector<size_t> fo = rd->fieldOrder();
418 
419  for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
420  {
421  switch (*it)
422  {
423  case 0:
424  ::avro::decode(d, v.tableNames);
425  break;
426 
427  case 1:
428  ::avro::decode(d, v.worldTableNames);
429  break;
430 
431  case 2:
432  ::avro::decode(d, v.xColumnName);
433  break;
434 
435  case 3:
436  ::avro::decode(d, v.yColumnName);
437  break;
438 
439  case 4:
440  ::avro::decode(d, v.symbolColumnName);
441  break;
442 
443  case 5:
444  ::avro::decode(d, v.geometryColumnName);
445  break;
446 
447  case 6:
448  ::avro::decode(d, v.trackIds);
449  break;
450 
451  case 7:
452  ::avro::decode(d, v.cbAttr);
453  break;
454 
455  case 8:
456  ::avro::decode(d, v.cbVals);
457  break;
458 
459  case 9:
460  ::avro::decode(d, v.cbPointcolorAttr);
461  break;
462 
463  case 10:
464  ::avro::decode(d, v.cbPointcolorVals);
465  break;
466 
467  case 11:
468  ::avro::decode(d, v.cbPointalphaAttr);
469  break;
470 
471  case 12:
472  ::avro::decode(d, v.cbPointalphaVals);
473  break;
474 
475  case 13:
476  ::avro::decode(d, v.cbPointsizeAttr);
477  break;
478 
479  case 14:
480  ::avro::decode(d, v.cbPointsizeVals);
481  break;
482 
483  case 15:
484  ::avro::decode(d, v.cbPointshapeAttr);
485  break;
486 
487  case 16:
488  ::avro::decode(d, v.cbPointshapeVals);
489  break;
490 
491  case 17:
492  ::avro::decode(d, v.minX);
493  break;
494 
495  case 18:
496  ::avro::decode(d, v.maxX);
497  break;
498 
499  case 19:
500  ::avro::decode(d, v.minY);
501  break;
502 
503  case 20:
504  ::avro::decode(d, v.maxY);
505  break;
506 
507  case 21:
508  ::avro::decode(d, v.width);
509  break;
510 
511  case 22:
512  ::avro::decode(d, v.height);
513  break;
514 
515  case 23:
516  ::avro::decode(d, v.projection);
517  break;
518 
519  case 24:
520  ::avro::decode(d, v.bgColor);
521  break;
522 
523  case 25:
524  ::avro::decode(d, v.styleOptions);
525  break;
526 
527  case 26:
528  ::avro::decode(d, v.options);
529  break;
530 
531  case 27:
532  ::avro::decode(d, v.cbTransparencyVec);
533  break;
534 
535  default:
536  break;
537  }
538  }
539  }
540  else
541  {
542  ::avro::decode(d, v.tableNames);
543  ::avro::decode(d, v.worldTableNames);
544  ::avro::decode(d, v.xColumnName);
545  ::avro::decode(d, v.yColumnName);
546  ::avro::decode(d, v.symbolColumnName);
547  ::avro::decode(d, v.geometryColumnName);
548  ::avro::decode(d, v.trackIds);
549  ::avro::decode(d, v.cbAttr);
550  ::avro::decode(d, v.cbVals);
551  ::avro::decode(d, v.cbPointcolorAttr);
552  ::avro::decode(d, v.cbPointcolorVals);
553  ::avro::decode(d, v.cbPointalphaAttr);
554  ::avro::decode(d, v.cbPointalphaVals);
555  ::avro::decode(d, v.cbPointsizeAttr);
556  ::avro::decode(d, v.cbPointsizeVals);
557  ::avro::decode(d, v.cbPointshapeAttr);
558  ::avro::decode(d, v.cbPointshapeVals);
559  ::avro::decode(d, v.minX);
560  ::avro::decode(d, v.maxX);
561  ::avro::decode(d, v.minY);
562  ::avro::decode(d, v.maxY);
563  ::avro::decode(d, v.width);
564  ::avro::decode(d, v.height);
565  ::avro::decode(d, v.projection);
566  ::avro::decode(d, v.bgColor);
567  ::avro::decode(d, v.styleOptions);
568  ::avro::decode(d, v.options);
569  ::avro::decode(d, v.cbTransparencyVec);
570  }
571  }
572  };
573 }
574 
575 namespace gpudb
576 {
577 
584  struct VisualizeImageClassbreakResponse
585  {
586 
592  VisualizeImageClassbreakResponse() :
593  width(double()),
594  height(double()),
595  bgColor(int64_t()),
596  imageData(std::vector<uint8_t>()),
597  info(std::map<std::string, std::string>())
598  {
599  }
600 
601  double width;
602  double height;
603  int64_t bgColor;
604  std::vector<uint8_t> imageData;
605  std::map<std::string, std::string> info;
606  };
607 }
608 
613 namespace avro
614 {
615  template<> struct codec_traits<gpudb::VisualizeImageClassbreakResponse>
616  {
617  static void encode(Encoder& e, const gpudb::VisualizeImageClassbreakResponse& v)
618  {
619  ::avro::encode(e, v.width);
620  ::avro::encode(e, v.height);
621  ::avro::encode(e, v.bgColor);
622  ::avro::encode(e, v.imageData);
623  ::avro::encode(e, v.info);
624  }
625 
626  static void decode(Decoder& d, gpudb::VisualizeImageClassbreakResponse& v)
627  {
628  if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
629  {
630  const std::vector<size_t> fo = rd->fieldOrder();
631 
632  for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
633  {
634  switch (*it)
635  {
636  case 0:
637  ::avro::decode(d, v.width);
638  break;
639 
640  case 1:
641  ::avro::decode(d, v.height);
642  break;
643 
644  case 2:
645  ::avro::decode(d, v.bgColor);
646  break;
647 
648  case 3:
649  ::avro::decode(d, v.imageData);
650  break;
651 
652  case 4:
653  ::avro::decode(d, v.info);
654  break;
655 
656  default:
657  break;
658  }
659  }
660  }
661  else
662  {
663  ::avro::decode(d, v.width);
664  ::avro::decode(d, v.height);
665  ::avro::decode(d, v.bgColor);
666  ::avro::decode(d, v.imageData);
667  ::avro::decode(d, v.info);
668  }
669  }
670  };
671 }
672 
673 #endif