GPUdb C++ API  Version 7.1.10.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
delete_graph.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_GRAPH_H__
7 #define __DELETE_GRAPH_H__
8 
9 namespace gpudb
10 {
11 
19  {
20 
26  graphName(std::string()),
27  options(std::map<std::string, std::string>())
28  {
29  }
30 
57  DeleteGraphRequest(const std::string& graphName_, const std::map<std::string, std::string>& options_):
58  graphName( graphName_ ),
59  options( options_ )
60  {
61  }
62 
63  std::string graphName;
64  std::map<std::string, std::string> options;
65  };
66 }
67 
68 namespace avro
69 {
70  template<> struct codec_traits<gpudb::DeleteGraphRequest>
71  {
72  static void encode(Encoder& e, const gpudb::DeleteGraphRequest& v)
73  {
74  ::avro::encode(e, v.graphName);
75  ::avro::encode(e, v.options);
76  }
77 
78  static void decode(Decoder& d, gpudb::DeleteGraphRequest& v)
79  {
80  if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
81  {
82  const std::vector<size_t> fo = rd->fieldOrder();
83 
84  for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
85  {
86  switch (*it)
87  {
88  case 0:
89  ::avro::decode(d, v.graphName);
90  break;
91 
92  case 1:
93  ::avro::decode(d, v.options);
94  break;
95 
96  default:
97  break;
98  }
99  }
100  }
101  else
102  {
103  ::avro::decode(d, v.graphName);
104  ::avro::decode(d, v.options);
105  }
106  }
107  };
108 }
109 
110 namespace gpudb
111 {
112 
120  {
121 
127  result(bool()),
128  info(std::map<std::string, std::string>())
129  {
130  }
131 
132  bool result;
133  std::map<std::string, std::string> info;
134  };
135 }
136 
137 namespace avro
138 {
139  template<> struct codec_traits<gpudb::DeleteGraphResponse>
140  {
141  static void encode(Encoder& e, const gpudb::DeleteGraphResponse& v)
142  {
143  ::avro::encode(e, v.result);
144  ::avro::encode(e, v.info);
145  }
146 
147  static void decode(Decoder& d, gpudb::DeleteGraphResponse& v)
148  {
149  if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
150  {
151  const std::vector<size_t> fo = rd->fieldOrder();
152 
153  for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
154  {
155  switch (*it)
156  {
157  case 0:
158  ::avro::decode(d, v.result);
159  break;
160 
161  case 1:
162  ::avro::decode(d, v.info);
163  break;
164 
165  default:
166  break;
167  }
168  }
169  }
170  else
171  {
172  ::avro::decode(d, v.result);
173  ::avro::decode(d, v.info);
174  }
175  }
176  };
177 }
178 
179 #endif
std::map< std::string, std::string > options
Definition: delete_graph.h:64
DeleteGraphRequest(const std::string &graphName_, const std::map< std::string, std::string > &options_)
Constructs a DeleteGraphRequest object with the specified parameters.
Definition: delete_graph.h:57
DeleteGraphResponse()
Constructs a DeleteGraphResponse object with default parameter values.
Definition: delete_graph.h:126
std::map< std::string, std::string > info
Definition: delete_graph.h:133
A set of input parameters for const.
Definition: delete_graph.h:18
A set of output parameters for const.
Definition: delete_graph.h:119
DeleteGraphRequest()
Constructs a DeleteGraphRequest object with default parameter values.
Definition: delete_graph.h:25