GPUdb C++ API  Version 7.1.10.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
show_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 __SHOW_VIDEO_H__
7 #define __SHOW_VIDEO_H__
8 
9 namespace gpudb
10 {
11 
19  {
20 
25  paths(std::vector<std::string>()),
26  options(std::map<std::string, std::string>())
27  {
28  }
29 
40  ShowVideoRequest(const std::vector<std::string>& paths_, const std::map<std::string, std::string>& options_):
41  paths( paths_ ),
42  options( options_ )
43  {
44  }
45 
46  std::vector<std::string> paths;
47  std::map<std::string, std::string> options;
48  };
49 }
50 
51 namespace avro
52 {
53  template<> struct codec_traits<gpudb::ShowVideoRequest>
54  {
55  static void encode(Encoder& e, const gpudb::ShowVideoRequest& v)
56  {
57  ::avro::encode(e, v.paths);
58  ::avro::encode(e, v.options);
59  }
60 
61  static void decode(Decoder& d, gpudb::ShowVideoRequest& v)
62  {
63  if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
64  {
65  const std::vector<size_t> fo = rd->fieldOrder();
66 
67  for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
68  {
69  switch (*it)
70  {
71  case 0:
72  ::avro::decode(d, v.paths);
73  break;
74 
75  case 1:
76  ::avro::decode(d, v.options);
77  break;
78 
79  default:
80  break;
81  }
82  }
83  }
84  else
85  {
86  ::avro::decode(d, v.paths);
87  ::avro::decode(d, v.options);
88  }
89  }
90  };
91 }
92 
93 namespace gpudb
94 {
95 
103  {
104 
109  creationTimes(std::vector<std::string>()),
110  elapsedRenderTimeSeconds(std::vector<int64_t>()),
111  jobIds(std::vector<int64_t>()),
112  paths(std::vector<std::string>()),
113  renderedBytes(std::vector<int64_t>()),
114  renderedFrames(std::vector<int64_t>()),
115  renderedPercents(std::vector<int64_t>()),
116  requests(std::vector<std::string>()),
117  status(std::vector<std::string>()),
118  ttls(std::vector<int64_t>()),
119  info(std::map<std::string, std::string>())
120  {
121  }
122 
123  std::vector<std::string> creationTimes;
124  std::vector<int64_t> elapsedRenderTimeSeconds;
125  std::vector<int64_t> jobIds;
126  std::vector<std::string> paths;
127  std::vector<int64_t> renderedBytes;
128  std::vector<int64_t> renderedFrames;
129  std::vector<int64_t> renderedPercents;
130  std::vector<std::string> requests;
131  std::vector<std::string> status;
132  std::vector<int64_t> ttls;
133  std::map<std::string, std::string> info;
134  };
135 }
136 
137 namespace avro
138 {
139  template<> struct codec_traits<gpudb::ShowVideoResponse>
140  {
141  static void encode(Encoder& e, const gpudb::ShowVideoResponse& v)
142  {
143  ::avro::encode(e, v.creationTimes);
144  ::avro::encode(e, v.elapsedRenderTimeSeconds);
145  ::avro::encode(e, v.jobIds);
146  ::avro::encode(e, v.paths);
147  ::avro::encode(e, v.renderedBytes);
148  ::avro::encode(e, v.renderedFrames);
149  ::avro::encode(e, v.renderedPercents);
150  ::avro::encode(e, v.requests);
151  ::avro::encode(e, v.status);
152  ::avro::encode(e, v.ttls);
153  ::avro::encode(e, v.info);
154  }
155 
156  static void decode(Decoder& d, gpudb::ShowVideoResponse& 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.creationTimes);
168  break;
169 
170  case 1:
171  ::avro::decode(d, v.elapsedRenderTimeSeconds);
172  break;
173 
174  case 2:
175  ::avro::decode(d, v.jobIds);
176  break;
177 
178  case 3:
179  ::avro::decode(d, v.paths);
180  break;
181 
182  case 4:
183  ::avro::decode(d, v.renderedBytes);
184  break;
185 
186  case 5:
187  ::avro::decode(d, v.renderedFrames);
188  break;
189 
190  case 6:
191  ::avro::decode(d, v.renderedPercents);
192  break;
193 
194  case 7:
195  ::avro::decode(d, v.requests);
196  break;
197 
198  case 8:
199  ::avro::decode(d, v.status);
200  break;
201 
202  case 9:
203  ::avro::decode(d, v.ttls);
204  break;
205 
206  case 10:
207  ::avro::decode(d, v.info);
208  break;
209 
210  default:
211  break;
212  }
213  }
214  }
215  else
216  {
217  ::avro::decode(d, v.creationTimes);
218  ::avro::decode(d, v.elapsedRenderTimeSeconds);
219  ::avro::decode(d, v.jobIds);
220  ::avro::decode(d, v.paths);
221  ::avro::decode(d, v.renderedBytes);
222  ::avro::decode(d, v.renderedFrames);
223  ::avro::decode(d, v.renderedPercents);
224  ::avro::decode(d, v.requests);
225  ::avro::decode(d, v.status);
226  ::avro::decode(d, v.ttls);
227  ::avro::decode(d, v.info);
228  }
229  }
230  };
231 }
232 
233 #endif
A set of output parameters for const.
Definition: show_video.h:102
std::vector< std::string > creationTimes
Definition: show_video.h:123
std::vector< int64_t > renderedFrames
Definition: show_video.h:128
std::vector< int64_t > renderedPercents
Definition: show_video.h:129
std::vector< std::string > paths
Definition: show_video.h:46
std::vector< int64_t > renderedBytes
Definition: show_video.h:127
std::map< std::string, std::string > info
Definition: show_video.h:133
std::vector< std::string > requests
Definition: show_video.h:130
ShowVideoResponse()
Constructs a ShowVideoResponse object with default parameter values.
Definition: show_video.h:108
std::vector< int64_t > jobIds
Definition: show_video.h:125
std::vector< std::string > status
Definition: show_video.h:131
std::vector< std::string > paths
Definition: show_video.h:126
A set of input parameters for const.
Definition: show_video.h:18
std::map< std::string, std::string > options
Definition: show_video.h:47
std::vector< int64_t > elapsedRenderTimeSeconds
Definition: show_video.h:124
ShowVideoRequest()
Constructs a ShowVideoRequest object with default parameter values.
Definition: show_video.h:24
std::vector< int64_t > ttls
Definition: show_video.h:132
ShowVideoRequest(const std::vector< std::string > &paths_, const std::map< std::string, std::string > &options_)
Constructs a ShowVideoRequest object with the specified parameters.
Definition: show_video.h:40