GPUdb C++ API  Version 6.1.0.0
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  xColumnName(std::string()),
32  yColumnName(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 
173  VisualizeImageChartRequest(const std::string& tableName_, const std::string& xColumnName_, const std::string& yColumnName_, 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_):
174  tableName( tableName_ ),
175  xColumnName( xColumnName_ ),
176  yColumnName( yColumnName_ ),
177  minX( minX_ ),
178  maxX( maxX_ ),
179  minY( minY_ ),
180  maxY( maxY_ ),
181  width( width_ ),
182  height( height_ ),
183  bgColor( bgColor_ ),
184  styleOptions( styleOptions_ ),
185  options( options_ )
186  {
187  }
188 
189  std::string tableName;
190  std::string xColumnName;
191  std::string yColumnName;
192  double minX;
193  double maxX;
194  double minY;
195  double maxY;
196  int32_t width;
197  int32_t height;
198  std::string bgColor;
199  std::map<std::string, std::vector<std::string> > styleOptions;
200  std::map<std::string, std::string> options;
201  };
202 }
203 
204 namespace avro
205 {
206  template<> struct codec_traits<gpudb::VisualizeImageChartRequest>
207  {
208  static void encode(Encoder& e, const gpudb::VisualizeImageChartRequest& v)
209  {
210  ::avro::encode(e, v.tableName);
211  ::avro::encode(e, v.xColumnName);
212  ::avro::encode(e, v.yColumnName);
213  ::avro::encode(e, v.minX);
214  ::avro::encode(e, v.maxX);
215  ::avro::encode(e, v.minY);
216  ::avro::encode(e, v.maxY);
217  ::avro::encode(e, v.width);
218  ::avro::encode(e, v.height);
219  ::avro::encode(e, v.bgColor);
220  ::avro::encode(e, v.styleOptions);
221  ::avro::encode(e, v.options);
222  }
223 
224  static void decode(Decoder& d, gpudb::VisualizeImageChartRequest& v)
225  {
226  if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
227  {
228  const std::vector<size_t> fo = rd->fieldOrder();
229 
230  for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
231  {
232  switch (*it)
233  {
234  case 0:
235  ::avro::decode(d, v.tableName);
236  break;
237 
238  case 1:
239  ::avro::decode(d, v.xColumnName);
240  break;
241 
242  case 2:
243  ::avro::decode(d, v.yColumnName);
244  break;
245 
246  case 3:
247  ::avro::decode(d, v.minX);
248  break;
249 
250  case 4:
251  ::avro::decode(d, v.maxX);
252  break;
253 
254  case 5:
255  ::avro::decode(d, v.minY);
256  break;
257 
258  case 6:
259  ::avro::decode(d, v.maxY);
260  break;
261 
262  case 7:
263  ::avro::decode(d, v.width);
264  break;
265 
266  case 8:
267  ::avro::decode(d, v.height);
268  break;
269 
270  case 9:
271  ::avro::decode(d, v.bgColor);
272  break;
273 
274  case 10:
275  ::avro::decode(d, v.styleOptions);
276  break;
277 
278  case 11:
279  ::avro::decode(d, v.options);
280  break;
281 
282  default:
283  break;
284  }
285  }
286  }
287  else
288  {
289  ::avro::decode(d, v.tableName);
290  ::avro::decode(d, v.xColumnName);
291  ::avro::decode(d, v.yColumnName);
292  ::avro::decode(d, v.minX);
293  ::avro::decode(d, v.maxX);
294  ::avro::decode(d, v.minY);
295  ::avro::decode(d, v.maxY);
296  ::avro::decode(d, v.width);
297  ::avro::decode(d, v.height);
298  ::avro::decode(d, v.bgColor);
299  ::avro::decode(d, v.styleOptions);
300  ::avro::decode(d, v.options);
301  }
302  }
303  };
304 }
305 
306 namespace gpudb
307 {
308 
320  {
321 
327  minX(double()),
328  maxX(double()),
329  minY(double()),
330  maxY(double()),
331  width(int32_t()),
332  height(int32_t()),
333  bgColor(std::string()),
334  imageData(std::vector<uint8_t>()),
335  axesInfo(std::map<std::string, std::vector<std::string> >())
336  {
337  }
338 
339  double minX;
340  double maxX;
341  double minY;
342  double maxY;
343  int32_t width;
344  int32_t height;
345  std::string bgColor;
346  std::vector<uint8_t> imageData;
347  std::map<std::string, std::vector<std::string> > axesInfo;
348  };
349 }
350 
351 namespace avro
352 {
353  template<> struct codec_traits<gpudb::VisualizeImageChartResponse>
354  {
355  static void encode(Encoder& e, const gpudb::VisualizeImageChartResponse& v)
356  {
357  ::avro::encode(e, v.minX);
358  ::avro::encode(e, v.maxX);
359  ::avro::encode(e, v.minY);
360  ::avro::encode(e, v.maxY);
361  ::avro::encode(e, v.width);
362  ::avro::encode(e, v.height);
363  ::avro::encode(e, v.bgColor);
364  ::avro::encode(e, v.imageData);
365  ::avro::encode(e, v.axesInfo);
366  }
367 
368  static void decode(Decoder& d, gpudb::VisualizeImageChartResponse& v)
369  {
370  if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
371  {
372  const std::vector<size_t> fo = rd->fieldOrder();
373 
374  for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
375  {
376  switch (*it)
377  {
378  case 0:
379  ::avro::decode(d, v.minX);
380  break;
381 
382  case 1:
383  ::avro::decode(d, v.maxX);
384  break;
385 
386  case 2:
387  ::avro::decode(d, v.minY);
388  break;
389 
390  case 3:
391  ::avro::decode(d, v.maxY);
392  break;
393 
394  case 4:
395  ::avro::decode(d, v.width);
396  break;
397 
398  case 5:
399  ::avro::decode(d, v.height);
400  break;
401 
402  case 6:
403  ::avro::decode(d, v.bgColor);
404  break;
405 
406  case 7:
407  ::avro::decode(d, v.imageData);
408  break;
409 
410  case 8:
411  ::avro::decode(d, v.axesInfo);
412  break;
413 
414  default:
415  break;
416  }
417  }
418  }
419  else
420  {
421  ::avro::decode(d, v.minX);
422  ::avro::decode(d, v.maxX);
423  ::avro::decode(d, v.minY);
424  ::avro::decode(d, v.maxY);
425  ::avro::decode(d, v.width);
426  ::avro::decode(d, v.height);
427  ::avro::decode(d, v.bgColor);
428  ::avro::decode(d, v.imageData);
429  ::avro::decode(d, v.axesInfo);
430  }
431  }
432  };
433 }
434 
435 #endif
A set of input parameters for visualizeImageChart(const VisualizeImageChartRequest&) const...
VisualizeImageChartResponse()
Constructs a VisualizeImageChartResponse object with default parameter values.
std::map< std::string, std::vector< std::string > > axesInfo
VisualizeImageChartRequest(const std::string &tableName_, const std::string &xColumnName_, const std::string &yColumnName_, 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 visualizeImageChart(const VisualizeImageChartRequest&) const...
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.