GPUdb C++ API  Version 7.1.10.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
show_environment.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 __SHOW_ENVIRONMENT_H__
7 #define __SHOW_ENVIRONMENT_H__
8 
9 namespace gpudb
10 {
11 
22  {
23 
29  environmentName(std::string()),
30  options(std::map<std::string, std::string>())
31  {
32  }
33 
62  ShowEnvironmentRequest(const std::string& environmentName_, const std::map<std::string, std::string>& options_):
63  environmentName( environmentName_ ),
64  options( options_ )
65  {
66  }
67 
68  std::string environmentName;
69  std::map<std::string, std::string> options;
70  };
71 }
72 
73 namespace avro
74 {
75  template<> struct codec_traits<gpudb::ShowEnvironmentRequest>
76  {
77  static void encode(Encoder& e, const gpudb::ShowEnvironmentRequest& v)
78  {
79  ::avro::encode(e, v.environmentName);
80  ::avro::encode(e, v.options);
81  }
82 
83  static void decode(Decoder& d, gpudb::ShowEnvironmentRequest& v)
84  {
85  if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
86  {
87  const std::vector<size_t> fo = rd->fieldOrder();
88 
89  for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
90  {
91  switch (*it)
92  {
93  case 0:
94  ::avro::decode(d, v.environmentName);
95  break;
96 
97  case 1:
98  ::avro::decode(d, v.options);
99  break;
100 
101  default:
102  break;
103  }
104  }
105  }
106  else
107  {
108  ::avro::decode(d, v.environmentName);
109  ::avro::decode(d, v.options);
110  }
111  }
112  };
113 }
114 
115 namespace gpudb
116 {
117 
128  {
129 
135  environmentNames(std::vector<std::string>()),
136  packages(std::vector<std::vector<std::string> >()),
137  info(std::map<std::string, std::string>())
138  {
139  }
140 
141  std::vector<std::string> environmentNames;
142  std::vector<std::vector<std::string> > packages;
143  std::map<std::string, std::string> info;
144  };
145 }
146 
147 namespace avro
148 {
149  template<> struct codec_traits<gpudb::ShowEnvironmentResponse>
150  {
151  static void encode(Encoder& e, const gpudb::ShowEnvironmentResponse& v)
152  {
153  ::avro::encode(e, v.environmentNames);
154  ::avro::encode(e, v.packages);
155  ::avro::encode(e, v.info);
156  }
157 
158  static void decode(Decoder& d, gpudb::ShowEnvironmentResponse& v)
159  {
160  if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
161  {
162  const std::vector<size_t> fo = rd->fieldOrder();
163 
164  for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
165  {
166  switch (*it)
167  {
168  case 0:
169  ::avro::decode(d, v.environmentNames);
170  break;
171 
172  case 1:
173  ::avro::decode(d, v.packages);
174  break;
175 
176  case 2:
177  ::avro::decode(d, v.info);
178  break;
179 
180  default:
181  break;
182  }
183  }
184  }
185  else
186  {
187  ::avro::decode(d, v.environmentNames);
188  ::avro::decode(d, v.packages);
189  ::avro::decode(d, v.info);
190  }
191  }
192  };
193 }
194 
195 #endif
A set of input parameters for const.
std::vector< std::string > environmentNames
std::map< std::string, std::string > info
std::map< std::string, std::string > options
A set of output parameters for const.
ShowEnvironmentRequest()
Constructs a ShowEnvironmentRequest object with default parameter values.
ShowEnvironmentRequest(const std::string &environmentName_, const std::map< std::string, std::string > &options_)
Constructs a ShowEnvironmentRequest object with the specified parameters.
ShowEnvironmentResponse()
Constructs a ShowEnvironmentResponse object with default parameter values.
std::vector< std::vector< std::string > > packages