GPUdb C++ API  Version 7.1.10.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
alter_environment.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_ENVIRONMENT_H__
7 #define __ALTER_ENVIRONMENT_H__
8 
9 namespace gpudb
10 {
11 
21  {
22 
28  environmentName(std::string()),
29  action(std::string()),
30  value(std::string()),
31  options(std::map<std::string, std::string>())
32  {
33  }
34 
87  AlterEnvironmentRequest(const std::string& environmentName_, const std::string& action_, const std::string& value_, const std::map<std::string, std::string>& options_):
88  environmentName( environmentName_ ),
89  action( action_ ),
90  value( value_ ),
91  options( options_ )
92  {
93  }
94 
95  std::string environmentName;
96  std::string action;
97  std::string value;
98  std::map<std::string, std::string> options;
99  };
100 }
101 
102 namespace avro
103 {
104  template<> struct codec_traits<gpudb::AlterEnvironmentRequest>
105  {
106  static void encode(Encoder& e, const gpudb::AlterEnvironmentRequest& v)
107  {
108  ::avro::encode(e, v.environmentName);
109  ::avro::encode(e, v.action);
110  ::avro::encode(e, v.value);
111  ::avro::encode(e, v.options);
112  }
113 
114  static void decode(Decoder& d, gpudb::AlterEnvironmentRequest& v)
115  {
116  if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
117  {
118  const std::vector<size_t> fo = rd->fieldOrder();
119 
120  for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
121  {
122  switch (*it)
123  {
124  case 0:
125  ::avro::decode(d, v.environmentName);
126  break;
127 
128  case 1:
129  ::avro::decode(d, v.action);
130  break;
131 
132  case 2:
133  ::avro::decode(d, v.value);
134  break;
135 
136  case 3:
137  ::avro::decode(d, v.options);
138  break;
139 
140  default:
141  break;
142  }
143  }
144  }
145  else
146  {
147  ::avro::decode(d, v.environmentName);
148  ::avro::decode(d, v.action);
149  ::avro::decode(d, v.value);
150  ::avro::decode(d, v.options);
151  }
152  }
153  };
154 }
155 
156 namespace gpudb
157 {
158 
168  {
169 
175  environmentName(std::string()),
176  info(std::map<std::string, std::string>())
177  {
178  }
179 
180  std::string environmentName;
181  std::map<std::string, std::string> info;
182  };
183 }
184 
185 namespace avro
186 {
187  template<> struct codec_traits<gpudb::AlterEnvironmentResponse>
188  {
189  static void encode(Encoder& e, const gpudb::AlterEnvironmentResponse& v)
190  {
191  ::avro::encode(e, v.environmentName);
192  ::avro::encode(e, v.info);
193  }
194 
195  static void decode(Decoder& d, gpudb::AlterEnvironmentResponse& v)
196  {
197  if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
198  {
199  const std::vector<size_t> fo = rd->fieldOrder();
200 
201  for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
202  {
203  switch (*it)
204  {
205  case 0:
206  ::avro::decode(d, v.environmentName);
207  break;
208 
209  case 1:
210  ::avro::decode(d, v.info);
211  break;
212 
213  default:
214  break;
215  }
216  }
217  }
218  else
219  {
220  ::avro::decode(d, v.environmentName);
221  ::avro::decode(d, v.info);
222  }
223  }
224  };
225 }
226 
227 #endif
A set of input parameters for const.
A set of output parameters for const.
std::map< std::string, std::string > info
AlterEnvironmentRequest(const std::string &environmentName_, const std::string &action_, const std::string &value_, const std::map< std::string, std::string > &options_)
Constructs an AlterEnvironmentRequest object with the specified parameters.
AlterEnvironmentRequest()
Constructs an AlterEnvironmentRequest object with default parameter values.
std::map< std::string, std::string > options
AlterEnvironmentResponse()
Constructs an AlterEnvironmentResponse object with default parameter values.