GPUdb C++ API  Version 6.0.1.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends
visualize_video.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_VIDEO_H__
7 #define __VISUALIZE_VIDEO_H__
8 
9 namespace gpudb
10 {
11 
48  {
49 
55  tableNames(std::vector<std::string>()),
56  worldTableNames(std::vector<std::string>()),
57  trackIds(std::vector<std::vector<std::string> >()),
58  xColumnName(std::string()),
59  yColumnName(std::string()),
60  minX(double()),
61  maxX(double()),
62  minY(double()),
63  maxY(double()),
64  width(int32_t()),
65  height(int32_t()),
66  projection(std::string()),
67  bgColor(int64_t()),
68  timeIntervals(std::vector<std::vector<double> >()),
69  videoStyle(std::string()),
70  sessionKey(std::string()),
71  styleOptions(std::map<std::string, std::vector<std::string> >()),
72  options(std::map<std::string, std::string>())
73  {
74  }
75 
240  VisualizeVideoRequest(const std::vector<std::string>& tableNames_, const std::vector<std::string>& worldTableNames_, const std::vector<std::vector<std::string> >& trackIds_, 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& projection_, const int64_t bgColor_, const std::vector<std::vector<double> >& timeIntervals_, const std::string& videoStyle_, const std::string& sessionKey_, const std::map<std::string, std::vector<std::string> >& styleOptions_, const std::map<std::string, std::string>& options_):
241  tableNames( tableNames_ ),
242  worldTableNames( worldTableNames_ ),
243  trackIds( trackIds_ ),
244  xColumnName( xColumnName_ ),
245  yColumnName( yColumnName_ ),
246  minX( minX_ ),
247  maxX( maxX_ ),
248  minY( minY_ ),
249  maxY( maxY_ ),
250  width( width_ ),
251  height( height_ ),
252  projection( projection_ ),
253  bgColor( bgColor_ ),
254  timeIntervals( timeIntervals_ ),
255  videoStyle( videoStyle_ ),
256  sessionKey( sessionKey_ ),
257  styleOptions( styleOptions_ ),
258  options( options_ )
259  {
260  }
261 
262  std::vector<std::string> tableNames;
263  std::vector<std::string> worldTableNames;
264  std::vector<std::vector<std::string> > trackIds;
265  std::string xColumnName;
266  std::string yColumnName;
267  double minX;
268  double maxX;
269  double minY;
270  double maxY;
271  int32_t width;
272  int32_t height;
273  std::string projection;
274  int64_t bgColor;
275  std::vector<std::vector<double> > timeIntervals;
276  std::string videoStyle;
277  std::string sessionKey;
278  std::map<std::string, std::vector<std::string> > styleOptions;
279  std::map<std::string, std::string> options;
280  };
281 }
282 
283 namespace avro
284 {
285  template<> struct codec_traits<gpudb::VisualizeVideoRequest>
286  {
287  static void encode(Encoder& e, const gpudb::VisualizeVideoRequest& v)
288  {
289  ::avro::encode(e, v.tableNames);
290  ::avro::encode(e, v.worldTableNames);
291  ::avro::encode(e, v.trackIds);
292  ::avro::encode(e, v.xColumnName);
293  ::avro::encode(e, v.yColumnName);
294  ::avro::encode(e, v.minX);
295  ::avro::encode(e, v.maxX);
296  ::avro::encode(e, v.minY);
297  ::avro::encode(e, v.maxY);
298  ::avro::encode(e, v.width);
299  ::avro::encode(e, v.height);
300  ::avro::encode(e, v.projection);
301  ::avro::encode(e, v.bgColor);
302  ::avro::encode(e, v.timeIntervals);
303  ::avro::encode(e, v.videoStyle);
304  ::avro::encode(e, v.sessionKey);
305  ::avro::encode(e, v.styleOptions);
306  ::avro::encode(e, v.options);
307  }
308 
309  static void decode(Decoder& d, gpudb::VisualizeVideoRequest& v)
310  {
311  if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
312  {
313  const std::vector<size_t> fo = rd->fieldOrder();
314 
315  for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
316  {
317  switch (*it)
318  {
319  case 0:
320  ::avro::decode(d, v.tableNames);
321  break;
322 
323  case 1:
324  ::avro::decode(d, v.worldTableNames);
325  break;
326 
327  case 2:
328  ::avro::decode(d, v.trackIds);
329  break;
330 
331  case 3:
332  ::avro::decode(d, v.xColumnName);
333  break;
334 
335  case 4:
336  ::avro::decode(d, v.yColumnName);
337  break;
338 
339  case 5:
340  ::avro::decode(d, v.minX);
341  break;
342 
343  case 6:
344  ::avro::decode(d, v.maxX);
345  break;
346 
347  case 7:
348  ::avro::decode(d, v.minY);
349  break;
350 
351  case 8:
352  ::avro::decode(d, v.maxY);
353  break;
354 
355  case 9:
356  ::avro::decode(d, v.width);
357  break;
358 
359  case 10:
360  ::avro::decode(d, v.height);
361  break;
362 
363  case 11:
364  ::avro::decode(d, v.projection);
365  break;
366 
367  case 12:
368  ::avro::decode(d, v.bgColor);
369  break;
370 
371  case 13:
372  ::avro::decode(d, v.timeIntervals);
373  break;
374 
375  case 14:
376  ::avro::decode(d, v.videoStyle);
377  break;
378 
379  case 15:
380  ::avro::decode(d, v.sessionKey);
381  break;
382 
383  case 16:
384  ::avro::decode(d, v.styleOptions);
385  break;
386 
387  case 17:
388  ::avro::decode(d, v.options);
389  break;
390 
391  default:
392  break;
393  }
394  }
395  }
396  else
397  {
398  ::avro::decode(d, v.tableNames);
399  ::avro::decode(d, v.worldTableNames);
400  ::avro::decode(d, v.trackIds);
401  ::avro::decode(d, v.xColumnName);
402  ::avro::decode(d, v.yColumnName);
403  ::avro::decode(d, v.minX);
404  ::avro::decode(d, v.maxX);
405  ::avro::decode(d, v.minY);
406  ::avro::decode(d, v.maxY);
407  ::avro::decode(d, v.width);
408  ::avro::decode(d, v.height);
409  ::avro::decode(d, v.projection);
410  ::avro::decode(d, v.bgColor);
411  ::avro::decode(d, v.timeIntervals);
412  ::avro::decode(d, v.videoStyle);
413  ::avro::decode(d, v.sessionKey);
414  ::avro::decode(d, v.styleOptions);
415  ::avro::decode(d, v.options);
416  }
417  }
418  };
419 }
420 
421 namespace gpudb
422 {
423 
460  {
461 
467  width(double()),
468  height(double()),
469  bgColor(int64_t()),
470  numFrames(int32_t()),
471  sessionKey(std::string()),
472  data(std::vector<std::vector<uint8_t> >())
473  {
474  }
475 
476  double width;
477  double height;
478  int64_t bgColor;
479  int32_t numFrames;
480  std::string sessionKey;
481  std::vector<std::vector<uint8_t> > data;
482  };
483 }
484 
485 namespace avro
486 {
487  template<> struct codec_traits<gpudb::VisualizeVideoResponse>
488  {
489  static void encode(Encoder& e, const gpudb::VisualizeVideoResponse& v)
490  {
491  ::avro::encode(e, v.width);
492  ::avro::encode(e, v.height);
493  ::avro::encode(e, v.bgColor);
494  ::avro::encode(e, v.numFrames);
495  ::avro::encode(e, v.sessionKey);
496  ::avro::encode(e, v.data);
497  }
498 
499  static void decode(Decoder& d, gpudb::VisualizeVideoResponse& v)
500  {
501  if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
502  {
503  const std::vector<size_t> fo = rd->fieldOrder();
504 
505  for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
506  {
507  switch (*it)
508  {
509  case 0:
510  ::avro::decode(d, v.width);
511  break;
512 
513  case 1:
514  ::avro::decode(d, v.height);
515  break;
516 
517  case 2:
518  ::avro::decode(d, v.bgColor);
519  break;
520 
521  case 3:
522  ::avro::decode(d, v.numFrames);
523  break;
524 
525  case 4:
526  ::avro::decode(d, v.sessionKey);
527  break;
528 
529  case 5:
530  ::avro::decode(d, v.data);
531  break;
532 
533  default:
534  break;
535  }
536  }
537  }
538  else
539  {
540  ::avro::decode(d, v.width);
541  ::avro::decode(d, v.height);
542  ::avro::decode(d, v.bgColor);
543  ::avro::decode(d, v.numFrames);
544  ::avro::decode(d, v.sessionKey);
545  ::avro::decode(d, v.data);
546  }
547  }
548  };
549 }
550 
551 #endif
A set of input parameters for const.
A set of output parameters for const.
std::vector< std::string > tableNames
std::vector< std::vector< double > > timeIntervals
std::vector< std::vector< uint8_t > > data
std::vector< std::vector< std::string > > trackIds
std::map< std::string, std::vector< std::string > > styleOptions
std::map< std::string, std::string > options
VisualizeVideoRequest(const std::vector< std::string > &tableNames_, const std::vector< std::string > &worldTableNames_, const std::vector< std::vector< std::string > > &trackIds_, 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 &projection_, const int64_t bgColor_, const std::vector< std::vector< double > > &timeIntervals_, const std::string &videoStyle_, const std::string &sessionKey_, const std::map< std::string, std::vector< std::string > > &styleOptions_, const std::map< std::string, std::string > &options_)
Constructs a VisualizeVideoRequest object with the specified parameters.
VisualizeVideoRequest()
Constructs a VisualizeVideoRequest object with default parameter values.
VisualizeVideoResponse()
Constructs a VisualizeVideoResponse object with default parameter values.
std::vector< std::string > worldTableNames