identt
JsonElem.hpp
Go to the documentation of this file.
1 
33 #ifndef _IDENTT_QUERY_JSONELEM_HPP_
34 #define _IDENTT_QUERY_JSONELEM_HPP_
35 
36 #include <string>
37 
38 namespace identt {
39 namespace query {
40 
41 struct JsonElem {
42  const std::string nam;
43  const std::string val;
44  const enum JsonElemE {
45  IDENTT_JE_STRING = 0,
46  IDENTT_JE_DOUBLE = 1,
47  IDENTT_JE_INT64 = 2,
48  IDENTT_JE_BOOL = 3
49  } typ;
50 
61  JsonElem(std::string name, std::string value);
62 
73  explicit JsonElem(std::string name, float value);
74 
85  explicit JsonElem(const char* name, float value);
86 
97  explicit JsonElem(std::string name, double value);
98 
109  explicit JsonElem(const char* name, double value);
110 
121  explicit JsonElem(std::string name, int32_t value);
122 
133  explicit JsonElem(const char* name, int32_t value);
134 
135 
146  explicit JsonElem(std::string name, uint32_t value);
147 
158  explicit JsonElem(const char* name, uint32_t value);
159 
170  explicit JsonElem(std::string name, int64_t value);
171 
182  explicit JsonElem(const char* name, int64_t value);
183 
194  explicit JsonElem(std::string name, uint64_t value);
195 
206  explicit JsonElem(const char* name, uint64_t value);
207 
218  explicit JsonElem(std::string name, bool value);
219 
230  explicit JsonElem(const char* name, bool value);
231 
236  explicit JsonElem() = delete;
237  explicit JsonElem(std::string , std::string , JsonElemE) = delete;
238 
239 
240  virtual ~JsonElem();
241 
242 };
243 
244 }
245 }
246 
247 #endif
Definition: CryptoBase.hpp:49
Definition: JsonElem.hpp:41
JsonElem()=delete
Constructor deleted.