50 explicit AJAVariant(
const char* value,
size_t length);
59 operator bool()
const;
60 operator float()
const;
61 operator double()
const;
62 operator int8_t()
const;
63 operator uint8_t()
const;
64 operator int16_t()
const;
65 operator uint16_t()
const;
66 operator int32_t()
const;
67 operator uint32_t()
const;
68 operator int64_t()
const;
69 operator uint64_t()
const;
70 operator std::string()
const;
87 float GetFloat()
const;
92 double GetDouble()
const;
97 int8_t GetInt8()
const;
102 uint8_t GetUInt8()
const;
107 int16_t GetInt16()
const;
112 uint16_t GetUInt16()
const;
117 int32_t GetInt32()
const;
122 uint32_t GetUInt32()
const;
127 int64_t GetInt64()
const;
132 uint64_t GetUInt64()
const;
137 const std::string& GetString()
const;
143 void SetBool(
bool value);
148 void SetFloat(
float value);
153 void SetDouble(
double value);
158 void SetInt8(int8_t value);
163 void SetUInt8(uint8_t value);
168 void SetInt16(int16_t value);
173 void SetUInt16(uint16_t value);
178 void SetInt32(int32_t value);
183 void SetUInt32(uint32_t value);
188 void SetInt64(int64_t value);
193 void SetUInt64(uint64_t value);
198 void SetString(
const char* value);
204 void SetString(
const char* value,
size_t length);
209 void SetString(
const std::string& value);
221 float AsFloat()
const;
226 double AsDouble()
const;
231 int8_t AsInt8()
const;
236 uint8_t AsUInt8()
const;
241 int16_t AsInt16()
const;
246 uint16_t AsUInt16()
const;
251 int32_t AsInt32()
const;
256 uint32_t AsUInt32()
const;
261 int64_t AsInt64()
const;
266 uint64_t AsUInt64()
const;
271 std::string AsString()
const;
290 std::string mStringValue;