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