GPUdb C++ API  Version 6.1.0.0
admin_show_configuration.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 __ADMIN_SHOW_CONFIGURATION_H__
7 #define __ADMIN_SHOW_CONFIGURATION_H__
8 
9 namespace gpudb
10 {
11 
19  {
20 
26  options(std::map<std::string, std::string>())
27  {
28  }
29 
37  AdminShowConfigurationRequest(const std::map<std::string, std::string>& options_):
38  options( options_ )
39  {
40  }
41 
42  std::map<std::string, std::string> options;
43  };
44 }
45 
46 namespace avro
47 {
48  template<> struct codec_traits<gpudb::AdminShowConfigurationRequest>
49  {
50  static void encode(Encoder& e, const gpudb::AdminShowConfigurationRequest& v)
51  {
52  ::avro::encode(e, v.options);
53  }
54 
55  static void decode(Decoder& d, gpudb::AdminShowConfigurationRequest& v)
56  {
57  if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
58  {
59  const std::vector<size_t> fo = rd->fieldOrder();
60 
61  for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
62  {
63  switch (*it)
64  {
65  case 0:
66  ::avro::decode(d, v.options);
67  break;
68 
69  default:
70  break;
71  }
72  }
73  }
74  else
75  {
76  ::avro::decode(d, v.options);
77  }
78  }
79  };
80 }
81 
82 namespace gpudb
83 {
84 
92  {
93 
99  configString(std::string())
100  {
101  }
102 
103  std::string configString;
104  };
105 }
106 
107 namespace avro
108 {
109  template<> struct codec_traits<gpudb::AdminShowConfigurationResponse>
110  {
111  static void encode(Encoder& e, const gpudb::AdminShowConfigurationResponse& v)
112  {
113  ::avro::encode(e, v.configString);
114  }
115 
116  static void decode(Decoder& d, gpudb::AdminShowConfigurationResponse& v)
117  {
118  if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
119  {
120  const std::vector<size_t> fo = rd->fieldOrder();
121 
122  for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
123  {
124  switch (*it)
125  {
126  case 0:
127  ::avro::decode(d, v.configString);
128  break;
129 
130  default:
131  break;
132  }
133  }
134  }
135  else
136  {
137  ::avro::decode(d, v.configString);
138  }
139  }
140  };
141 }
142 
143 #endif
A set of input parameters for adminShowConfiguration(const AdminShowConfigurationRequest&) const...
AdminShowConfigurationResponse()
Constructs an AdminShowConfigurationResponse object with default parameter values.
AdminShowConfigurationRequest()
Constructs an AdminShowConfigurationRequest object with default parameter values. ...
AdminShowConfigurationRequest(const std::map< std::string, std::string > &options_)
Constructs an AdminShowConfigurationRequest object with the specified parameters. ...
A set of output parameters for adminShowConfiguration(const AdminShowConfigurationRequest&) const...
std::map< std::string, std::string > options