GPUdb C++ API  Version 7.1.10.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
grant_permission_proc.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 __GRANT_PERMISSION_PROC_H__
7 #define __GRANT_PERMISSION_PROC_H__
8 
9 namespace gpudb
10 {
11 
19  {
20 
26  name(std::string()),
27  permission(std::string()),
28  procName(std::string()),
29  options(std::map<std::string, std::string>())
30  {
31  }
32 
54  GrantPermissionProcRequest(const std::string& name_, const std::string& permission_, const std::string& procName_, const std::map<std::string, std::string>& options_):
55  name( name_ ),
56  permission( permission_ ),
57  procName( procName_ ),
58  options( options_ )
59  {
60  }
61 
62  std::string name;
63  std::string permission;
64  std::string procName;
65  std::map<std::string, std::string> options;
66  };
67 }
68 
69 namespace avro
70 {
71  template<> struct codec_traits<gpudb::GrantPermissionProcRequest>
72  {
73  static void encode(Encoder& e, const gpudb::GrantPermissionProcRequest& v)
74  {
75  ::avro::encode(e, v.name);
76  ::avro::encode(e, v.permission);
77  ::avro::encode(e, v.procName);
78  ::avro::encode(e, v.options);
79  }
80 
81  static void decode(Decoder& d, gpudb::GrantPermissionProcRequest& v)
82  {
83  if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
84  {
85  const std::vector<size_t> fo = rd->fieldOrder();
86 
87  for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
88  {
89  switch (*it)
90  {
91  case 0:
92  ::avro::decode(d, v.name);
93  break;
94 
95  case 1:
96  ::avro::decode(d, v.permission);
97  break;
98 
99  case 2:
100  ::avro::decode(d, v.procName);
101  break;
102 
103  case 3:
104  ::avro::decode(d, v.options);
105  break;
106 
107  default:
108  break;
109  }
110  }
111  }
112  else
113  {
114  ::avro::decode(d, v.name);
115  ::avro::decode(d, v.permission);
116  ::avro::decode(d, v.procName);
117  ::avro::decode(d, v.options);
118  }
119  }
120  };
121 }
122 
123 namespace gpudb
124 {
125 
133  {
134 
140  name(std::string()),
141  permission(std::string()),
142  procName(std::string()),
143  info(std::map<std::string, std::string>())
144  {
145  }
146 
147  std::string name;
148  std::string permission;
149  std::string procName;
150  std::map<std::string, std::string> info;
151  };
152 }
153 
154 namespace avro
155 {
156  template<> struct codec_traits<gpudb::GrantPermissionProcResponse>
157  {
158  static void encode(Encoder& e, const gpudb::GrantPermissionProcResponse& v)
159  {
160  ::avro::encode(e, v.name);
161  ::avro::encode(e, v.permission);
162  ::avro::encode(e, v.procName);
163  ::avro::encode(e, v.info);
164  }
165 
166  static void decode(Decoder& d, gpudb::GrantPermissionProcResponse& v)
167  {
168  if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
169  {
170  const std::vector<size_t> fo = rd->fieldOrder();
171 
172  for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
173  {
174  switch (*it)
175  {
176  case 0:
177  ::avro::decode(d, v.name);
178  break;
179 
180  case 1:
181  ::avro::decode(d, v.permission);
182  break;
183 
184  case 2:
185  ::avro::decode(d, v.procName);
186  break;
187 
188  case 3:
189  ::avro::decode(d, v.info);
190  break;
191 
192  default:
193  break;
194  }
195  }
196  }
197  else
198  {
199  ::avro::decode(d, v.name);
200  ::avro::decode(d, v.permission);
201  ::avro::decode(d, v.procName);
202  ::avro::decode(d, v.info);
203  }
204  }
205  };
206 }
207 
208 #endif
A set of input parameters for const.
GrantPermissionProcRequest(const std::string &name_, const std::string &permission_, const std::string &procName_, const std::map< std::string, std::string > &options_)
Constructs a GrantPermissionProcRequest object with the specified parameters.
GrantPermissionProcResponse()
Constructs a GrantPermissionProcResponse object with default parameter values.
A set of output parameters for const.
std::map< std::string, std::string > info
std::map< std::string, std::string > options
GrantPermissionProcRequest()
Constructs a GrantPermissionProcRequest object with default parameter values.