GPUdb C++ API  Version 7.1.10.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
admin_remove_host.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 __ADMIN_REMOVE_HOST_H__
7 #define __ADMIN_REMOVE_HOST_H__
8 
9 namespace gpudb
10 {
11 
26  {
27 
33  host(std::string()),
34  options(std::map<std::string, std::string>())
35  {
36  }
37 
59  AdminRemoveHostRequest(const std::string& host_, const std::map<std::string, std::string>& options_):
60  host( host_ ),
61  options( options_ )
62  {
63  }
64 
65  std::string host;
66  std::map<std::string, std::string> options;
67  };
68 }
69 
70 namespace avro
71 {
72  template<> struct codec_traits<gpudb::AdminRemoveHostRequest>
73  {
74  static void encode(Encoder& e, const gpudb::AdminRemoveHostRequest& v)
75  {
76  ::avro::encode(e, v.host);
77  ::avro::encode(e, v.options);
78  }
79 
80  static void decode(Decoder& d, gpudb::AdminRemoveHostRequest& v)
81  {
82  if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
83  {
84  const std::vector<size_t> fo = rd->fieldOrder();
85 
86  for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
87  {
88  switch (*it)
89  {
90  case 0:
91  ::avro::decode(d, v.host);
92  break;
93 
94  case 1:
95  ::avro::decode(d, v.options);
96  break;
97 
98  default:
99  break;
100  }
101  }
102  }
103  else
104  {
105  ::avro::decode(d, v.host);
106  ::avro::decode(d, v.options);
107  }
108  }
109  };
110 }
111 
112 namespace gpudb
113 {
114 
129  {
130 
136  info(std::map<std::string, std::string>())
137  {
138  }
139 
140  std::map<std::string, std::string> info;
141  };
142 }
143 
144 namespace avro
145 {
146  template<> struct codec_traits<gpudb::AdminRemoveHostResponse>
147  {
148  static void encode(Encoder& e, const gpudb::AdminRemoveHostResponse& v)
149  {
150  ::avro::encode(e, v.info);
151  }
152 
153  static void decode(Decoder& d, gpudb::AdminRemoveHostResponse& v)
154  {
155  if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
156  {
157  const std::vector<size_t> fo = rd->fieldOrder();
158 
159  for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
160  {
161  switch (*it)
162  {
163  case 0:
164  ::avro::decode(d, v.info);
165  break;
166 
167  default:
168  break;
169  }
170  }
171  }
172  else
173  {
174  ::avro::decode(d, v.info);
175  }
176  }
177  };
178 }
179 
180 #endif
AdminRemoveHostRequest(const std::string &host_, const std::map< std::string, std::string > &options_)
Constructs an AdminRemoveHostRequest object with the specified parameters.
AdminRemoveHostResponse()
Constructs an AdminRemoveHostResponse object with default parameter values.
A set of input parameters for const.
A set of output parameters for const.
std::map< std::string, std::string > info
AdminRemoveHostRequest()
Constructs an AdminRemoveHostRequest object with default parameter values.
std::map< std::string, std::string > options