GPUdb C++ API  Version 7.1.10.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
create_user_internal.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 __CREATE_USER_INTERNAL_H__
7 #define __CREATE_USER_INTERNAL_H__
8 
9 namespace gpudb
10 {
11 
20  {
21 
27  name(std::string()),
28  password(std::string()),
29  options(std::map<std::string, std::string>())
30  {
31  }
32 
71  CreateUserInternalRequest(const std::string& name_, const std::string& password_, const std::map<std::string, std::string>& options_):
72  name( name_ ),
73  password( password_ ),
74  options( options_ )
75  {
76  }
77 
78  std::string name;
79  std::string password;
80  std::map<std::string, std::string> options;
81  };
82 }
83 
84 namespace avro
85 {
86  template<> struct codec_traits<gpudb::CreateUserInternalRequest>
87  {
88  static void encode(Encoder& e, const gpudb::CreateUserInternalRequest& v)
89  {
90  ::avro::encode(e, v.name);
91  ::avro::encode(e, v.password);
92  ::avro::encode(e, v.options);
93  }
94 
95  static void decode(Decoder& d, gpudb::CreateUserInternalRequest& v)
96  {
97  if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
98  {
99  const std::vector<size_t> fo = rd->fieldOrder();
100 
101  for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
102  {
103  switch (*it)
104  {
105  case 0:
106  ::avro::decode(d, v.name);
107  break;
108 
109  case 1:
110  ::avro::decode(d, v.password);
111  break;
112 
113  case 2:
114  ::avro::decode(d, v.options);
115  break;
116 
117  default:
118  break;
119  }
120  }
121  }
122  else
123  {
124  ::avro::decode(d, v.name);
125  ::avro::decode(d, v.password);
126  ::avro::decode(d, v.options);
127  }
128  }
129  };
130 }
131 
132 namespace gpudb
133 {
134 
143  {
144 
150  name(std::string()),
151  info(std::map<std::string, std::string>())
152  {
153  }
154 
155  std::string name;
156  std::map<std::string, std::string> info;
157  };
158 }
159 
160 namespace avro
161 {
162  template<> struct codec_traits<gpudb::CreateUserInternalResponse>
163  {
164  static void encode(Encoder& e, const gpudb::CreateUserInternalResponse& v)
165  {
166  ::avro::encode(e, v.name);
167  ::avro::encode(e, v.info);
168  }
169 
170  static void decode(Decoder& d, gpudb::CreateUserInternalResponse& v)
171  {
172  if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
173  {
174  const std::vector<size_t> fo = rd->fieldOrder();
175 
176  for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
177  {
178  switch (*it)
179  {
180  case 0:
181  ::avro::decode(d, v.name);
182  break;
183 
184  case 1:
185  ::avro::decode(d, v.info);
186  break;
187 
188  default:
189  break;
190  }
191  }
192  }
193  else
194  {
195  ::avro::decode(d, v.name);
196  ::avro::decode(d, v.info);
197  }
198  }
199  };
200 }
201 
202 #endif
A set of input parameters for const.
A set of output parameters for const.
std::map< std::string, std::string > options
CreateUserInternalResponse()
Constructs a CreateUserInternalResponse object with default parameter values.
std::map< std::string, std::string > info
CreateUserInternalRequest()
Constructs a CreateUserInternalRequest object with default parameter values.
CreateUserInternalRequest(const std::string &name_, const std::string &password_, const std::map< std::string, std::string > &options_)
Constructs a CreateUserInternalRequest object with the specified parameters.