GPUdb C++ API  Version 7.2.2.4
create_video.h
Go to the documentation of this file.
1 /*
2  * This file was autogenerated by the Kinetica schema processor.
3  *
4  * DO NOT EDIT DIRECTLY.
5  */
6 #ifndef __CREATE_VIDEO_H__
7 #define __CREATE_VIDEO_H__
8 
9 namespace gpudb
10 {
20  {
25  attribute(std::string()),
26  begin(std::string()),
27  durationSeconds(double()),
28  end(std::string()),
29  framesPerSecond(double()),
30  style(std::string()),
31  path(std::string()),
32  styleParameters(std::string()),
33  options(std::map<std::string, std::string>())
34  {
35  }
36 
140  CreateVideoRequest(const std::string& attribute_, const std::string& begin_, const double durationSeconds_, const std::string& end_, const double framesPerSecond_, const std::string& style_, const std::string& path_, const std::string& styleParameters_, const std::map<std::string, std::string>& options_):
141  attribute( attribute_ ),
142  begin( begin_ ),
143  durationSeconds( durationSeconds_ ),
144  end( end_ ),
145  framesPerSecond( framesPerSecond_ ),
146  style( style_ ),
147  path( path_ ),
148  styleParameters( styleParameters_ ),
149  options( options_ )
150  {
151  }
152 
158  std::string attribute;
159 
164  std::string begin;
165 
170 
175  std::string end;
176 
182 
197  std::string style;
198 
206  std::string path;
207 
212  std::string styleParameters;
213 
257  std::map<std::string, std::string> options;
258  };
259 } // end namespace gpudb
260 
261 namespace avro
262 {
263  template<> struct codec_traits<gpudb::CreateVideoRequest>
264  {
265  static void encode(Encoder& e, const gpudb::CreateVideoRequest& v)
266  {
267  ::avro::encode(e, v.attribute);
268  ::avro::encode(e, v.begin);
269  ::avro::encode(e, v.durationSeconds);
270  ::avro::encode(e, v.end);
271  ::avro::encode(e, v.framesPerSecond);
272  ::avro::encode(e, v.style);
273  ::avro::encode(e, v.path);
274  ::avro::encode(e, v.styleParameters);
275  ::avro::encode(e, v.options);
276  }
277 
278  static void decode(Decoder& d, gpudb::CreateVideoRequest& v)
279  {
280  if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
281  {
282  const std::vector<size_t> fo = rd->fieldOrder();
283 
284  for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
285  {
286  switch (*it)
287  {
288  case 0:
289  ::avro::decode(d, v.attribute);
290  break;
291 
292  case 1:
293  ::avro::decode(d, v.begin);
294  break;
295 
296  case 2:
297  ::avro::decode(d, v.durationSeconds);
298  break;
299 
300  case 3:
301  ::avro::decode(d, v.end);
302  break;
303 
304  case 4:
305  ::avro::decode(d, v.framesPerSecond);
306  break;
307 
308  case 5:
309  ::avro::decode(d, v.style);
310  break;
311 
312  case 6:
313  ::avro::decode(d, v.path);
314  break;
315 
316  case 7:
317  ::avro::decode(d, v.styleParameters);
318  break;
319 
320  case 8:
321  ::avro::decode(d, v.options);
322  break;
323 
324  default:
325  break;
326  }
327  }
328  }
329  else
330  {
331  ::avro::decode(d, v.attribute);
332  ::avro::decode(d, v.begin);
333  ::avro::decode(d, v.durationSeconds);
334  ::avro::decode(d, v.end);
335  ::avro::decode(d, v.framesPerSecond);
336  ::avro::decode(d, v.style);
337  ::avro::decode(d, v.path);
338  ::avro::decode(d, v.styleParameters);
339  ::avro::decode(d, v.options);
340  }
341  }
342  };
343 } // end namespace avro
344 
345 namespace gpudb
346 {
353  {
358  jobId(int64_t()),
359  path(std::string()),
360  info(std::map<std::string, std::string>())
361  {
362  }
363 
367  int64_t jobId;
368 
372  std::string path;
373 
377  std::map<std::string, std::string> info;
378  };
379 } // end namespace gpudb
380 
381 namespace avro
382 {
383  template<> struct codec_traits<gpudb::CreateVideoResponse>
384  {
385  static void encode(Encoder& e, const gpudb::CreateVideoResponse& v)
386  {
387  ::avro::encode(e, v.jobId);
388  ::avro::encode(e, v.path);
389  ::avro::encode(e, v.info);
390  }
391 
392  static void decode(Decoder& d, gpudb::CreateVideoResponse& v)
393  {
394  if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
395  {
396  const std::vector<size_t> fo = rd->fieldOrder();
397 
398  for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
399  {
400  switch (*it)
401  {
402  case 0:
403  ::avro::decode(d, v.jobId);
404  break;
405 
406  case 1:
407  ::avro::decode(d, v.path);
408  break;
409 
410  case 2:
411  ::avro::decode(d, v.info);
412  break;
413 
414  default:
415  break;
416  }
417  }
418  }
419  else
420  {
421  ::avro::decode(d, v.jobId);
422  ::avro::decode(d, v.path);
423  ::avro::decode(d, v.info);
424  }
425  }
426  };
427 } // end namespace avro
428 
429 #endif // __CREATE_VIDEO_H__
std::string path
Fully qualified KIFS path to the video file.
Definition: create_video.h:372
std::string styleParameters
A string containing the JSON-encoded visualize request.
Definition: create_video.h:212
double framesPerSecond
The presentation frame rate of the encoded video in frames per second.
Definition: create_video.h:181
std::string path
Fully-qualified KiFS path.
Definition: create_video.h:206
CreateVideoRequest(const std::string &attribute_, const std::string &begin_, const double durationSeconds_, const std::string &end_, const double framesPerSecond_, const std::string &style_, const std::string &path_, const std::string &styleParameters_, const std::map< std::string, std::string > &options_)
Constructs a CreateVideoRequest object with the specified parameters.
Definition: create_video.h:140
A set of results returned by GPUdb::createVideo.
Definition: create_video.h:352
CreateVideoRequest()
Constructs a CreateVideoRequest object with default parameters.
Definition: create_video.h:24
std::map< std::string, std::string > info
Additional information.
Definition: create_video.h:377
std::string attribute
The animated attribute to map to the video's frames.
Definition: create_video.h:158
A set of parameters for GPUdb::createVideo.
Definition: create_video.h:19
CreateVideoResponse()
Constructs a CreateVideoResponse object with default parameters.
Definition: create_video.h:357
std::string begin
The start point for the video.
Definition: create_video.h:164
std::string end
The end point for the video.
Definition: create_video.h:175
std::map< std::string, std::string > options
Optional parameters.
Definition: create_video.h:257
std::string style
The name of the visualize mode; should correspond to the schema used for the styleParameters field.
Definition: create_video.h:197
double durationSeconds
Seconds of video to produce.
Definition: create_video.h:169
int64_t jobId
An identifier for the created job.
Definition: create_video.h:367