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