GPUdb C++ API  Version 7.1.10.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
show_resource_objects.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_RESOURCE_OBJECTS_H__
7 #define __SHOW_RESOURCE_OBJECTS_H__
8 
9 namespace gpudb
10 {
11 
25  {
26 
32  options(std::map<std::string, std::string>())
33  {
34  }
35 
93  ShowResourceObjectsRequest(const std::map<std::string, std::string>& options_):
94  options( options_ )
95  {
96  }
97 
98  std::map<std::string, std::string> options;
99  };
100 }
101 
102 namespace avro
103 {
104  template<> struct codec_traits<gpudb::ShowResourceObjectsRequest>
105  {
106  static void encode(Encoder& e, const gpudb::ShowResourceObjectsRequest& v)
107  {
108  ::avro::encode(e, v.options);
109  }
110 
111  static void decode(Decoder& d, gpudb::ShowResourceObjectsRequest& v)
112  {
113  if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
114  {
115  const std::vector<size_t> fo = rd->fieldOrder();
116 
117  for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
118  {
119  switch (*it)
120  {
121  case 0:
122  ::avro::decode(d, v.options);
123  break;
124 
125  default:
126  break;
127  }
128  }
129  }
130  else
131  {
132  ::avro::decode(d, v.options);
133  }
134  }
135  };
136 }
137 
138 namespace gpudb
139 {
140 
154  {
155 
161  rankObjects(std::map<std::string, std::string>()),
162  info(std::map<std::string, std::string>())
163  {
164  }
165 
166  std::map<std::string, std::string> rankObjects;
167  std::map<std::string, std::string> info;
168  };
169 }
170 
171 namespace avro
172 {
173  template<> struct codec_traits<gpudb::ShowResourceObjectsResponse>
174  {
175  static void encode(Encoder& e, const gpudb::ShowResourceObjectsResponse& v)
176  {
177  ::avro::encode(e, v.rankObjects);
178  ::avro::encode(e, v.info);
179  }
180 
181  static void decode(Decoder& d, gpudb::ShowResourceObjectsResponse& v)
182  {
183  if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
184  {
185  const std::vector<size_t> fo = rd->fieldOrder();
186 
187  for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
188  {
189  switch (*it)
190  {
191  case 0:
192  ::avro::decode(d, v.rankObjects);
193  break;
194 
195  case 1:
196  ::avro::decode(d, v.info);
197  break;
198 
199  default:
200  break;
201  }
202  }
203  }
204  else
205  {
206  ::avro::decode(d, v.rankObjects);
207  ::avro::decode(d, v.info);
208  }
209  }
210  };
211 }
212 
213 #endif
A set of output parameters for const.
ShowResourceObjectsRequest()
Constructs a ShowResourceObjectsRequest object with default parameter values.
A set of input parameters for const.
std::map< std::string, std::string > info
ShowResourceObjectsResponse()
Constructs a ShowResourceObjectsResponse object with default parameter values.
std::map< std::string, std::string > options
ShowResourceObjectsRequest(const std::map< std::string, std::string > &options_)
Constructs a ShowResourceObjectsRequest object with the specified parameters.
std::map< std::string, std::string > rankObjects