6 #ifndef __SHOW_VIDEO_H__
7 #define __SHOW_VIDEO_H__
25 paths(std::vector<std::string>()),
26 options(std::map<std::string, std::string>())
40 ShowVideoRequest(
const std::vector<std::string>& paths_,
const std::map<std::string, std::string>& options_):
47 std::map<std::string, std::string>
options;
53 template<>
struct codec_traits<gpudb::ShowVideoRequest>
57 ::avro::encode(e, v.
paths);
63 if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
65 const std::vector<size_t> fo = rd->fieldOrder();
67 for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
72 ::avro::decode(d, v.
paths);
86 ::avro::decode(d, v.
paths);
111 jobIds(std::vector<int64_t>()),
112 paths(std::vector<std::string>()),
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>())
133 std::map<std::string, std::string>
info;
139 template<>
struct codec_traits<gpudb::ShowVideoResponse>
145 ::avro::encode(e, v.
jobIds);
146 ::avro::encode(e, v.
paths);
151 ::avro::encode(e, v.
status);
152 ::avro::encode(e, v.
ttls);
153 ::avro::encode(e, v.
info);
158 if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
160 const std::vector<size_t> fo = rd->fieldOrder();
162 for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
175 ::avro::decode(d, v.
jobIds);
179 ::avro::decode(d, v.
paths);
199 ::avro::decode(d, v.
status);
203 ::avro::decode(d, v.
ttls);
207 ::avro::decode(d, v.
info);
219 ::avro::decode(d, v.
jobIds);
220 ::avro::decode(d, v.
paths);
225 ::avro::decode(d, v.
status);
226 ::avro::decode(d, v.
ttls);
227 ::avro::decode(d, v.
info);
A set of output parameters for const.
std::vector< std::string > creationTimes
std::vector< int64_t > renderedFrames
std::vector< int64_t > renderedPercents
std::vector< std::string > paths
std::vector< int64_t > renderedBytes
std::map< std::string, std::string > info
std::vector< std::string > requests
ShowVideoResponse()
Constructs a ShowVideoResponse object with default parameter values.
std::vector< int64_t > jobIds
std::vector< std::string > status
std::vector< std::string > paths
A set of input parameters for const.
std::map< std::string, std::string > options
std::vector< int64_t > elapsedRenderTimeSeconds
ShowVideoRequest()
Constructs a ShowVideoRequest object with default parameter values.
std::vector< int64_t > ttls
ShowVideoRequest(const std::vector< std::string > &paths_, const std::map< std::string, std::string > &options_)
Constructs a ShowVideoRequest object with the specified parameters.