GPUdb C++ API  Version 6.2.0.3
delete_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 __DELETE_PROC_H__
7 #define __DELETE_PROC_H__
8 
9 namespace gpudb
10 {
11 
20  {
21 
26  procName(std::string()),
27  options(std::map<std::string, std::string>())
28  {
29  }
30 
39  DeleteProcRequest(const std::string& procName_, const std::map<std::string, std::string>& options_):
40  procName( procName_ ),
41  options( options_ )
42  {
43  }
44 
45  std::string procName;
46  std::map<std::string, std::string> options;
47  };
48 }
49 
50 namespace avro
51 {
52  template<> struct codec_traits<gpudb::DeleteProcRequest>
53  {
54  static void encode(Encoder& e, const gpudb::DeleteProcRequest& v)
55  {
56  ::avro::encode(e, v.procName);
57  ::avro::encode(e, v.options);
58  }
59 
60  static void decode(Decoder& d, gpudb::DeleteProcRequest& v)
61  {
62  if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
63  {
64  const std::vector<size_t> fo = rd->fieldOrder();
65 
66  for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
67  {
68  switch (*it)
69  {
70  case 0:
71  ::avro::decode(d, v.procName);
72  break;
73 
74  case 1:
75  ::avro::decode(d, v.options);
76  break;
77 
78  default:
79  break;
80  }
81  }
82  }
83  else
84  {
85  ::avro::decode(d, v.procName);
86  ::avro::decode(d, v.options);
87  }
88  }
89  };
90 }
91 
92 namespace gpudb
93 {
94 
103  {
104 
110  procName(std::string())
111  {
112  }
113 
114  std::string procName;
115  };
116 }
117 
118 namespace avro
119 {
120  template<> struct codec_traits<gpudb::DeleteProcResponse>
121  {
122  static void encode(Encoder& e, const gpudb::DeleteProcResponse& v)
123  {
124  ::avro::encode(e, v.procName);
125  }
126 
127  static void decode(Decoder& d, gpudb::DeleteProcResponse& v)
128  {
129  if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
130  {
131  const std::vector<size_t> fo = rd->fieldOrder();
132 
133  for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
134  {
135  switch (*it)
136  {
137  case 0:
138  ::avro::decode(d, v.procName);
139  break;
140 
141  default:
142  break;
143  }
144  }
145  }
146  else
147  {
148  ::avro::decode(d, v.procName);
149  }
150  }
151  };
152 }
153 
154 #endif
DeleteProcRequest(const std::string &procName_, const std::map< std::string, std::string > &options_)
Constructs a DeleteProcRequest object with the specified parameters.
Definition: delete_proc.h:39
DeleteProcResponse()
Constructs a DeleteProcResponse object with default parameter values.
Definition: delete_proc.h:109
std::map< std::string, std::string > options
Definition: delete_proc.h:46
DeleteProcRequest()
Constructs a DeleteProcRequest object with default parameter values.
Definition: delete_proc.h:25
A set of input parameters for deleteProc(const DeleteProcRequest&) const.
Definition: delete_proc.h:19
A set of output parameters for deleteProc(const DeleteProcRequest&) const.
Definition: delete_proc.h:102