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