GPUdb C++ API  Version 7.1.10.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
alter_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 __ALTER_VIDEO_H__
7 #define __ALTER_VIDEO_H__
8 
9 namespace gpudb
10 {
11 
19  {
20 
26  path(std::string()),
27  options(std::map<std::string, std::string>())
28  {
29  }
30 
46  AlterVideoRequest(const std::string& path_, const std::map<std::string, std::string>& options_):
47  path( path_ ),
48  options( options_ )
49  {
50  }
51 
52  std::string path;
53  std::map<std::string, std::string> options;
54  };
55 }
56 
57 namespace avro
58 {
59  template<> struct codec_traits<gpudb::AlterVideoRequest>
60  {
61  static void encode(Encoder& e, const gpudb::AlterVideoRequest& v)
62  {
63  ::avro::encode(e, v.path);
64  ::avro::encode(e, v.options);
65  }
66 
67  static void decode(Decoder& d, gpudb::AlterVideoRequest& v)
68  {
69  if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
70  {
71  const std::vector<size_t> fo = rd->fieldOrder();
72 
73  for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
74  {
75  switch (*it)
76  {
77  case 0:
78  ::avro::decode(d, v.path);
79  break;
80 
81  case 1:
82  ::avro::decode(d, v.options);
83  break;
84 
85  default:
86  break;
87  }
88  }
89  }
90  else
91  {
92  ::avro::decode(d, v.path);
93  ::avro::decode(d, v.options);
94  }
95  }
96  };
97 }
98 
99 namespace gpudb
100 {
101 
109  {
110 
116  path(std::string()),
117  info(std::map<std::string, std::string>())
118  {
119  }
120 
121  std::string path;
122  std::map<std::string, std::string> info;
123  };
124 }
125 
126 namespace avro
127 {
128  template<> struct codec_traits<gpudb::AlterVideoResponse>
129  {
130  static void encode(Encoder& e, const gpudb::AlterVideoResponse& v)
131  {
132  ::avro::encode(e, v.path);
133  ::avro::encode(e, v.info);
134  }
135 
136  static void decode(Decoder& d, gpudb::AlterVideoResponse& v)
137  {
138  if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
139  {
140  const std::vector<size_t> fo = rd->fieldOrder();
141 
142  for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
143  {
144  switch (*it)
145  {
146  case 0:
147  ::avro::decode(d, v.path);
148  break;
149 
150  case 1:
151  ::avro::decode(d, v.info);
152  break;
153 
154  default:
155  break;
156  }
157  }
158  }
159  else
160  {
161  ::avro::decode(d, v.path);
162  ::avro::decode(d, v.info);
163  }
164  }
165  };
166 }
167 
168 #endif
A set of input parameters for const.
Definition: alter_video.h:18
std::map< std::string, std::string > info
Definition: alter_video.h:122
AlterVideoRequest(const std::string &path_, const std::map< std::string, std::string > &options_)
Constructs an AlterVideoRequest object with the specified parameters.
Definition: alter_video.h:46
AlterVideoResponse()
Constructs an AlterVideoResponse object with default parameter values.
Definition: alter_video.h:115
AlterVideoRequest()
Constructs an AlterVideoRequest object with default parameter values.
Definition: alter_video.h:25
std::map< std::string, std::string > options
Definition: alter_video.h:53
A set of output parameters for const.
Definition: alter_video.h:108