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