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