GPUdb C++ API  Version 5.2.0.0
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 
46  {
47 
53  tableNames(std::vector<std::string>()),
54  worldTableNames(std::vector<std::string>()),
55  trackIds(std::vector<std::vector<std::string> >()),
56  xColumnName(std::string()),
57  yColumnName(std::string()),
58  minX(double()),
59  maxX(double()),
60  minY(double()),
61  maxY(double()),
62  width(int32_t()),
63  height(int32_t()),
64  projection(std::string()),
65  bgColor(int64_t()),
66  timeIntervals(std::vector<std::vector<double> >()),
67  videoStyle(std::string()),
68  sessionKey(std::string()),
69  styleOptions(std::map<std::string, std::vector<std::string> >()),
70  options(std::map<std::string, std::string>())
71  {
72  }
73 
159  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):
160  tableNames(tableNames),
161  worldTableNames(worldTableNames),
163  xColumnName(xColumnName),
164  yColumnName(yColumnName),
165  minX(minX),
166  maxX(maxX),
167  minY(minY),
168  maxY(maxY),
169  width(width),
170  height(height),
171  projection(projection),
172  bgColor(bgColor),
174  videoStyle(videoStyle),
175  sessionKey(sessionKey),
177  options(options)
178  {
179  }
180 
181  std::vector<std::string> tableNames;
182  std::vector<std::string> worldTableNames;
183  std::vector<std::vector<std::string> > trackIds;
184  std::string xColumnName;
185  std::string yColumnName;
186  double minX;
187  double maxX;
188  double minY;
189  double maxY;
190  int32_t width;
191  int32_t height;
192  std::string projection;
193  int64_t bgColor;
194  std::vector<std::vector<double> > timeIntervals;
195  std::string videoStyle;
196  std::string sessionKey;
197  std::map<std::string, std::vector<std::string> > styleOptions;
198  std::map<std::string, std::string> options;
199  };
200 }
201 
202 namespace avro
203 {
204  template<> struct codec_traits<gpudb::VisualizeVideoRequest>
205  {
206  static void encode(Encoder& e, const gpudb::VisualizeVideoRequest& v)
207  {
208  ::avro::encode(e, v.tableNames);
209  ::avro::encode(e, v.worldTableNames);
210  ::avro::encode(e, v.trackIds);
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.projection);
220  ::avro::encode(e, v.bgColor);
221  ::avro::encode(e, v.timeIntervals);
222  ::avro::encode(e, v.videoStyle);
223  ::avro::encode(e, v.sessionKey);
224  ::avro::encode(e, v.styleOptions);
225  ::avro::encode(e, v.options);
226  }
227 
228  static void decode(Decoder& d, gpudb::VisualizeVideoRequest& v)
229  {
230  if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
231  {
232  const std::vector<size_t> fo = rd->fieldOrder();
233 
234  for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
235  {
236  switch (*it)
237  {
238  case 0:
239  ::avro::decode(d, v.tableNames);
240  break;
241 
242  case 1:
243  ::avro::decode(d, v.worldTableNames);
244  break;
245 
246  case 2:
247  ::avro::decode(d, v.trackIds);
248  break;
249 
250  case 3:
251  ::avro::decode(d, v.xColumnName);
252  break;
253 
254  case 4:
255  ::avro::decode(d, v.yColumnName);
256  break;
257 
258  case 5:
259  ::avro::decode(d, v.minX);
260  break;
261 
262  case 6:
263  ::avro::decode(d, v.maxX);
264  break;
265 
266  case 7:
267  ::avro::decode(d, v.minY);
268  break;
269 
270  case 8:
271  ::avro::decode(d, v.maxY);
272  break;
273 
274  case 9:
275  ::avro::decode(d, v.width);
276  break;
277 
278  case 10:
279  ::avro::decode(d, v.height);
280  break;
281 
282  case 11:
283  ::avro::decode(d, v.projection);
284  break;
285 
286  case 12:
287  ::avro::decode(d, v.bgColor);
288  break;
289 
290  case 13:
291  ::avro::decode(d, v.timeIntervals);
292  break;
293 
294  case 14:
295  ::avro::decode(d, v.videoStyle);
296  break;
297 
298  case 15:
299  ::avro::decode(d, v.sessionKey);
300  break;
301 
302  case 16:
303  ::avro::decode(d, v.styleOptions);
304  break;
305 
306  case 17:
307  ::avro::decode(d, v.options);
308  break;
309 
310  default:
311  break;
312  }
313  }
314  }
315  else
316  {
317  ::avro::decode(d, v.tableNames);
318  ::avro::decode(d, v.worldTableNames);
319  ::avro::decode(d, v.trackIds);
320  ::avro::decode(d, v.xColumnName);
321  ::avro::decode(d, v.yColumnName);
322  ::avro::decode(d, v.minX);
323  ::avro::decode(d, v.maxX);
324  ::avro::decode(d, v.minY);
325  ::avro::decode(d, v.maxY);
326  ::avro::decode(d, v.width);
327  ::avro::decode(d, v.height);
328  ::avro::decode(d, v.projection);
329  ::avro::decode(d, v.bgColor);
330  ::avro::decode(d, v.timeIntervals);
331  ::avro::decode(d, v.videoStyle);
332  ::avro::decode(d, v.sessionKey);
333  ::avro::decode(d, v.styleOptions);
334  ::avro::decode(d, v.options);
335  }
336  }
337  };
338 }
339 
340 namespace gpudb
341 {
342 
377  {
378 
384  width(double()),
385  height(double()),
386  bgColor(int64_t()),
387  numFrames(int32_t()),
388  sessionKey(std::string()),
389  data(std::vector<std::vector<uint8_t> >())
390  {
391  }
392 
393  double width;
394  double height;
395  int64_t bgColor;
396  int32_t numFrames;
397  std::string sessionKey;
398  std::vector<std::vector<uint8_t> > data;
399  };
400 }
401 
402 namespace avro
403 {
404  template<> struct codec_traits<gpudb::VisualizeVideoResponse>
405  {
406  static void encode(Encoder& e, const gpudb::VisualizeVideoResponse& v)
407  {
408  ::avro::encode(e, v.width);
409  ::avro::encode(e, v.height);
410  ::avro::encode(e, v.bgColor);
411  ::avro::encode(e, v.numFrames);
412  ::avro::encode(e, v.sessionKey);
413  ::avro::encode(e, v.data);
414  }
415 
416  static void decode(Decoder& d, gpudb::VisualizeVideoResponse& v)
417  {
418  if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
419  {
420  const std::vector<size_t> fo = rd->fieldOrder();
421 
422  for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
423  {
424  switch (*it)
425  {
426  case 0:
427  ::avro::decode(d, v.width);
428  break;
429 
430  case 1:
431  ::avro::decode(d, v.height);
432  break;
433 
434  case 2:
435  ::avro::decode(d, v.bgColor);
436  break;
437 
438  case 3:
439  ::avro::decode(d, v.numFrames);
440  break;
441 
442  case 4:
443  ::avro::decode(d, v.sessionKey);
444  break;
445 
446  case 5:
447  ::avro::decode(d, v.data);
448  break;
449 
450  default:
451  break;
452  }
453  }
454  }
455  else
456  {
457  ::avro::decode(d, v.width);
458  ::avro::decode(d, v.height);
459  ::avro::decode(d, v.bgColor);
460  ::avro::decode(d, v.numFrames);
461  ::avro::decode(d, v.sessionKey);
462  ::avro::decode(d, v.data);
463  }
464  }
465  };
466 }
467 
468 #endif
A set of input parameters for visualizeVideo(const VisualizeVideoRequest&) const. ...
A set of output parameters for visualizeVideo(const VisualizeVideoRequest&) 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