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