GPUdb C++ API  Version 7.1.10.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
create_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 __CREATE_VIDEO_H__
7 #define __CREATE_VIDEO_H__
8 
9 namespace gpudb
10 {
11 
20  {
21 
27  attribute(std::string()),
28  begin(std::string()),
29  durationSeconds(double()),
30  end(std::string()),
31  framesPerSecond(double()),
32  style(std::string()),
33  path(std::string()),
34  styleParameters(std::string()),
35  options(std::map<std::string, std::string>())
36  {
37  }
38 
114  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_):
115  attribute( attribute_ ),
116  begin( begin_ ),
117  durationSeconds( durationSeconds_ ),
118  end( end_ ),
119  framesPerSecond( framesPerSecond_ ),
120  style( style_ ),
121  path( path_ ),
122  styleParameters( styleParameters_ ),
123  options( options_ )
124  {
125  }
126 
127  std::string attribute;
128  std::string begin;
130  std::string end;
132  std::string style;
133  std::string path;
134  std::string styleParameters;
135  std::map<std::string, std::string> options;
136  };
137 }
138 
139 namespace avro
140 {
141  template<> struct codec_traits<gpudb::CreateVideoRequest>
142  {
143  static void encode(Encoder& e, const gpudb::CreateVideoRequest& v)
144  {
145  ::avro::encode(e, v.attribute);
146  ::avro::encode(e, v.begin);
147  ::avro::encode(e, v.durationSeconds);
148  ::avro::encode(e, v.end);
149  ::avro::encode(e, v.framesPerSecond);
150  ::avro::encode(e, v.style);
151  ::avro::encode(e, v.path);
152  ::avro::encode(e, v.styleParameters);
153  ::avro::encode(e, v.options);
154  }
155 
156  static void decode(Decoder& d, gpudb::CreateVideoRequest& v)
157  {
158  if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
159  {
160  const std::vector<size_t> fo = rd->fieldOrder();
161 
162  for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
163  {
164  switch (*it)
165  {
166  case 0:
167  ::avro::decode(d, v.attribute);
168  break;
169 
170  case 1:
171  ::avro::decode(d, v.begin);
172  break;
173 
174  case 2:
175  ::avro::decode(d, v.durationSeconds);
176  break;
177 
178  case 3:
179  ::avro::decode(d, v.end);
180  break;
181 
182  case 4:
183  ::avro::decode(d, v.framesPerSecond);
184  break;
185 
186  case 5:
187  ::avro::decode(d, v.style);
188  break;
189 
190  case 6:
191  ::avro::decode(d, v.path);
192  break;
193 
194  case 7:
195  ::avro::decode(d, v.styleParameters);
196  break;
197 
198  case 8:
199  ::avro::decode(d, v.options);
200  break;
201 
202  default:
203  break;
204  }
205  }
206  }
207  else
208  {
209  ::avro::decode(d, v.attribute);
210  ::avro::decode(d, v.begin);
211  ::avro::decode(d, v.durationSeconds);
212  ::avro::decode(d, v.end);
213  ::avro::decode(d, v.framesPerSecond);
214  ::avro::decode(d, v.style);
215  ::avro::decode(d, v.path);
216  ::avro::decode(d, v.styleParameters);
217  ::avro::decode(d, v.options);
218  }
219  }
220  };
221 }
222 
223 namespace gpudb
224 {
225 
234  {
235 
241  jobId(int64_t()),
242  path(std::string()),
243  info(std::map<std::string, std::string>())
244  {
245  }
246 
247  int64_t jobId;
248  std::string path;
249  std::map<std::string, std::string> info;
250  };
251 }
252 
253 namespace avro
254 {
255  template<> struct codec_traits<gpudb::CreateVideoResponse>
256  {
257  static void encode(Encoder& e, const gpudb::CreateVideoResponse& v)
258  {
259  ::avro::encode(e, v.jobId);
260  ::avro::encode(e, v.path);
261  ::avro::encode(e, v.info);
262  }
263 
264  static void decode(Decoder& d, gpudb::CreateVideoResponse& v)
265  {
266  if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
267  {
268  const std::vector<size_t> fo = rd->fieldOrder();
269 
270  for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
271  {
272  switch (*it)
273  {
274  case 0:
275  ::avro::decode(d, v.jobId);
276  break;
277 
278  case 1:
279  ::avro::decode(d, v.path);
280  break;
281 
282  case 2:
283  ::avro::decode(d, v.info);
284  break;
285 
286  default:
287  break;
288  }
289  }
290  }
291  else
292  {
293  ::avro::decode(d, v.jobId);
294  ::avro::decode(d, v.path);
295  ::avro::decode(d, v.info);
296  }
297  }
298  };
299 }
300 
301 #endif
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:114
A set of output parameters for const.
Definition: create_video.h:233
CreateVideoRequest()
Constructs a CreateVideoRequest object with default parameter values.
Definition: create_video.h:26
std::map< std::string, std::string > info
Definition: create_video.h:249
A set of input parameters for const.
Definition: create_video.h:19
CreateVideoResponse()
Constructs a CreateVideoResponse object with default parameter values.
Definition: create_video.h:240
std::map< std::string, std::string > options
Definition: create_video.h:135