GPUdb C++ API  Version 7.1.10.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
visualize_isochrone.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_ISOCHRONE_H__
7 #define __VISUALIZE_ISOCHRONE_H__
8 
9 namespace gpudb
10 {
11 
27  {
28 
34  graphName(std::string()),
35  sourceNode(std::string()),
36  maxSolutionRadius(double()),
37  weightsOnEdges(std::vector<std::string>()),
38  restrictions(std::vector<std::string>()),
39  numLevels(int32_t()),
40  generateImage(bool()),
41  levelsTable(std::string()),
42  styleOptions(std::map<std::string, std::string>()),
43  solveOptions(std::map<std::string, std::string>()),
44  contourOptions(std::map<std::string, std::string>()),
45  options(std::map<std::string, std::string>())
46  {
47  }
48 
552  VisualizeIsochroneRequest(const std::string& graphName_, const std::string& sourceNode_, const double maxSolutionRadius_, const std::vector<std::string>& weightsOnEdges_, const std::vector<std::string>& restrictions_, const int32_t numLevels_, const bool generateImage_, const std::string& levelsTable_, const std::map<std::string, std::string>& styleOptions_, const std::map<std::string, std::string>& solveOptions_, const std::map<std::string, std::string>& contourOptions_, const std::map<std::string, std::string>& options_):
553  graphName( graphName_ ),
554  sourceNode( sourceNode_ ),
555  maxSolutionRadius( maxSolutionRadius_ ),
556  weightsOnEdges( weightsOnEdges_ ),
557  restrictions( restrictions_ ),
558  numLevels( numLevels_ ),
559  generateImage( generateImage_ ),
560  levelsTable( levelsTable_ ),
561  styleOptions( styleOptions_ ),
562  solveOptions( solveOptions_ ),
563  contourOptions( contourOptions_ ),
564  options( options_ )
565  {
566  }
567 
568  std::string graphName;
569  std::string sourceNode;
571  std::vector<std::string> weightsOnEdges;
572  std::vector<std::string> restrictions;
573  int32_t numLevels;
575  std::string levelsTable;
576  std::map<std::string, std::string> styleOptions;
577  std::map<std::string, std::string> solveOptions;
578  std::map<std::string, std::string> contourOptions;
579  std::map<std::string, std::string> options;
580  };
581 }
582 
583 namespace avro
584 {
585  template<> struct codec_traits<gpudb::VisualizeIsochroneRequest>
586  {
587  static void encode(Encoder& e, const gpudb::VisualizeIsochroneRequest& v)
588  {
589  ::avro::encode(e, v.graphName);
590  ::avro::encode(e, v.sourceNode);
591  ::avro::encode(e, v.maxSolutionRadius);
592  ::avro::encode(e, v.weightsOnEdges);
593  ::avro::encode(e, v.restrictions);
594  ::avro::encode(e, v.numLevels);
595  ::avro::encode(e, v.generateImage);
596  ::avro::encode(e, v.levelsTable);
597  ::avro::encode(e, v.styleOptions);
598  ::avro::encode(e, v.solveOptions);
599  ::avro::encode(e, v.contourOptions);
600  ::avro::encode(e, v.options);
601  }
602 
603  static void decode(Decoder& d, gpudb::VisualizeIsochroneRequest& v)
604  {
605  if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
606  {
607  const std::vector<size_t> fo = rd->fieldOrder();
608 
609  for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
610  {
611  switch (*it)
612  {
613  case 0:
614  ::avro::decode(d, v.graphName);
615  break;
616 
617  case 1:
618  ::avro::decode(d, v.sourceNode);
619  break;
620 
621  case 2:
622  ::avro::decode(d, v.maxSolutionRadius);
623  break;
624 
625  case 3:
626  ::avro::decode(d, v.weightsOnEdges);
627  break;
628 
629  case 4:
630  ::avro::decode(d, v.restrictions);
631  break;
632 
633  case 5:
634  ::avro::decode(d, v.numLevels);
635  break;
636 
637  case 6:
638  ::avro::decode(d, v.generateImage);
639  break;
640 
641  case 7:
642  ::avro::decode(d, v.levelsTable);
643  break;
644 
645  case 8:
646  ::avro::decode(d, v.styleOptions);
647  break;
648 
649  case 9:
650  ::avro::decode(d, v.solveOptions);
651  break;
652 
653  case 10:
654  ::avro::decode(d, v.contourOptions);
655  break;
656 
657  case 11:
658  ::avro::decode(d, v.options);
659  break;
660 
661  default:
662  break;
663  }
664  }
665  }
666  else
667  {
668  ::avro::decode(d, v.graphName);
669  ::avro::decode(d, v.sourceNode);
670  ::avro::decode(d, v.maxSolutionRadius);
671  ::avro::decode(d, v.weightsOnEdges);
672  ::avro::decode(d, v.restrictions);
673  ::avro::decode(d, v.numLevels);
674  ::avro::decode(d, v.generateImage);
675  ::avro::decode(d, v.levelsTable);
676  ::avro::decode(d, v.styleOptions);
677  ::avro::decode(d, v.solveOptions);
678  ::avro::decode(d, v.contourOptions);
679  ::avro::decode(d, v.options);
680  }
681  }
682  };
683 }
684 
685 namespace gpudb
686 {
687 
703  {
704 
710  width(int32_t()),
711  height(int32_t()),
712  bgColor(int64_t()),
713  imageData(std::vector<uint8_t>()),
714  info(std::map<std::string, std::string>()),
715  solveInfo(std::map<std::string, std::string>()),
716  contourInfo(std::map<std::string, std::string>())
717  {
718  }
719 
720  int32_t width;
721  int32_t height;
722  int64_t bgColor;
723  std::vector<uint8_t> imageData;
724  std::map<std::string, std::string> info;
725  std::map<std::string, std::string> solveInfo;
726  std::map<std::string, std::string> contourInfo;
727  };
728 }
729 
730 namespace avro
731 {
732  template<> struct codec_traits<gpudb::VisualizeIsochroneResponse>
733  {
734  static void encode(Encoder& e, const gpudb::VisualizeIsochroneResponse& v)
735  {
736  ::avro::encode(e, v.width);
737  ::avro::encode(e, v.height);
738  ::avro::encode(e, v.bgColor);
739  ::avro::encode(e, v.imageData);
740  ::avro::encode(e, v.info);
741  ::avro::encode(e, v.solveInfo);
742  ::avro::encode(e, v.contourInfo);
743  }
744 
745  static void decode(Decoder& d, gpudb::VisualizeIsochroneResponse& v)
746  {
747  if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
748  {
749  const std::vector<size_t> fo = rd->fieldOrder();
750 
751  for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
752  {
753  switch (*it)
754  {
755  case 0:
756  ::avro::decode(d, v.width);
757  break;
758 
759  case 1:
760  ::avro::decode(d, v.height);
761  break;
762 
763  case 2:
764  ::avro::decode(d, v.bgColor);
765  break;
766 
767  case 3:
768  ::avro::decode(d, v.imageData);
769  break;
770 
771  case 4:
772  ::avro::decode(d, v.info);
773  break;
774 
775  case 5:
776  ::avro::decode(d, v.solveInfo);
777  break;
778 
779  case 6:
780  ::avro::decode(d, v.contourInfo);
781  break;
782 
783  default:
784  break;
785  }
786  }
787  }
788  else
789  {
790  ::avro::decode(d, v.width);
791  ::avro::decode(d, v.height);
792  ::avro::decode(d, v.bgColor);
793  ::avro::decode(d, v.imageData);
794  ::avro::decode(d, v.info);
795  ::avro::decode(d, v.solveInfo);
796  ::avro::decode(d, v.contourInfo);
797  }
798  }
799  };
800 }
801 
802 #endif
std::map< std::string, std::string > info
VisualizeIsochroneRequest()
Constructs a VisualizeIsochroneRequest object with default parameter values.
VisualizeIsochroneResponse()
Constructs a VisualizeIsochroneResponse object with default parameter values.
std::map< std::string, std::string > styleOptions
A set of input parameters for const.
std::vector< std::string > weightsOnEdges
VisualizeIsochroneRequest(const std::string &graphName_, const std::string &sourceNode_, const double maxSolutionRadius_, const std::vector< std::string > &weightsOnEdges_, const std::vector< std::string > &restrictions_, const int32_t numLevels_, const bool generateImage_, const std::string &levelsTable_, const std::map< std::string, std::string > &styleOptions_, const std::map< std::string, std::string > &solveOptions_, const std::map< std::string, std::string > &contourOptions_, const std::map< std::string, std::string > &options_)
Constructs a VisualizeIsochroneRequest object with the specified parameters.
std::map< std::string, std::string > solveInfo
std::map< std::string, std::string > options
A set of output parameters for const.
std::map< std::string, std::string > solveOptions
std::map< std::string, std::string > contourInfo
std::vector< std::string > restrictions
std::map< std::string, std::string > contourOptions