GPUdb C++ API  Version 7.1.10.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
drop_container_registry.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 __DROP_CONTAINER_REGISTRY_H__
7 #define __DROP_CONTAINER_REGISTRY_H__
8 
9 namespace gpudb
10 {
11 
18  struct DropContainerRegistryRequest
19  {
20 
26  DropContainerRegistryRequest() :
27  registryName(std::string()),
28  options(std::map<std::string, std::string>())
29  {
30  }
31 
41  DropContainerRegistryRequest(const std::string& registryName_, const std::map<std::string, std::string>& options_):
42  registryName( registryName_ ),
43  options( options_ )
44  {
45  }
46 
47  std::string registryName;
48  std::map<std::string, std::string> options;
49  };
50 }
51 
56 namespace avro
57 {
58  template<> struct codec_traits<gpudb::DropContainerRegistryRequest>
59  {
60  static void encode(Encoder& e, const gpudb::DropContainerRegistryRequest& v)
61  {
62  ::avro::encode(e, v.registryName);
63  ::avro::encode(e, v.options);
64  }
65 
66  static void decode(Decoder& d, gpudb::DropContainerRegistryRequest& v)
67  {
68  if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
69  {
70  const std::vector<size_t> fo = rd->fieldOrder();
71 
72  for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
73  {
74  switch (*it)
75  {
76  case 0:
77  ::avro::decode(d, v.registryName);
78  break;
79 
80  case 1:
81  ::avro::decode(d, v.options);
82  break;
83 
84  default:
85  break;
86  }
87  }
88  }
89  else
90  {
91  ::avro::decode(d, v.registryName);
92  ::avro::decode(d, v.options);
93  }
94  }
95  };
96 }
97 
98 namespace gpudb
99 {
100 
107  struct DropContainerRegistryResponse
108  {
109 
115  DropContainerRegistryResponse() :
116  registryName(std::string()),
117  info(std::map<std::string, std::string>())
118  {
119  }
120 
121  std::string registryName;
122  std::map<std::string, std::string> info;
123  };
124 }
125 
130 namespace avro
131 {
132  template<> struct codec_traits<gpudb::DropContainerRegistryResponse>
133  {
134  static void encode(Encoder& e, const gpudb::DropContainerRegistryResponse& v)
135  {
136  ::avro::encode(e, v.registryName);
137  ::avro::encode(e, v.info);
138  }
139 
140  static void decode(Decoder& d, gpudb::DropContainerRegistryResponse& v)
141  {
142  if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
143  {
144  const std::vector<size_t> fo = rd->fieldOrder();
145 
146  for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
147  {
148  switch (*it)
149  {
150  case 0:
151  ::avro::decode(d, v.registryName);
152  break;
153 
154  case 1:
155  ::avro::decode(d, v.info);
156  break;
157 
158  default:
159  break;
160  }
161  }
162  }
163  else
164  {
165  ::avro::decode(d, v.registryName);
166  ::avro::decode(d, v.info);
167  }
168  }
169  };
170 }
171 
172 #endif