AWS IoT Device SDK C++ v2
1.32.6
AWS IoT Device SDK C++ v2
|
Go to the documentation of this file.
80 JsonObject &WithBool(
const char *key,
bool value);
92 JsonObject &WithInteger(
const char *key,
int value);
105 JsonObject &WithInt64(
const char *key, int64_t value);
117 JsonObject &WithDouble(
const char *key,
double value);
188 const String &GetErrorMessage()
const;
199 JsonObject(
const aws_json_value *valueToCopy);
205 JsonObject &AsNewValue(aws_json_value *valueToOwn);
212 JsonObject &WithNewKeyValue(
const char *key, aws_json_value *valueToOwn);
224 aws_json_value *m_value;
232 static std::unique_ptr<String> s_errorMessage;
233 static std::unique_ptr<String> s_okMessage;
234 static void OnLibraryInit();
235 static void OnLibraryCleanup();
262 String GetString(
const char *key)
const;
273 bool GetBool(
const String &key)
const;
277 bool GetBool(
const char *key)
const;
288 int GetInteger(
const String &key)
const;
293 int GetInteger(
const char *key)
const;
298 int AsInteger()
const;
304 int64_t GetInt64(
const String &key)
const;
309 int64_t GetInt64(
const char *key)
const;
314 int64_t AsInt64()
const;
319 double GetDouble(
const String &key)
const;
323 double GetDouble(
const char *key)
const;
328 double AsDouble()
const;
351 JsonView GetJsonObject(
const char *key)
const;
355 JsonObject GetJsonObjectCopy(
const char *key)
const;
372 bool ValueExists(
const String &key)
const;
377 bool ValueExists(
const char *key)
const;
382 bool KeyExists(
const String &key)
const;
386 bool KeyExists(
const char *key)
const;
391 bool IsObject()
const;
401 bool IsString()
const;
406 bool IsNumber()
const;
411 bool IsIntegerType()
const;
416 bool IsFloatingPointType()
const;
421 bool IsListType()
const;
432 String WriteCompact(
bool treatAsObject =
true)
const;
438 String WriteReadable(
bool treatAsObject =
true)
const;
446 JsonView(
const aws_json_value *val);
448 String Write(
bool treatAsObject,
bool readable)
const;
450 const aws_json_value *m_value;
bool operator==(const basic_string_view< CharT, Traits > &lhs, const basic_string_view< CharT, Traits > &rhs) noexcept
Definition: StringView.h:665
Definition: JsonObject.h:248
std::map< K, V, std::less< K >, StlAllocator< std::pair< const K, V > >> Map
Definition: Types.h:47
bool operator!=(const basic_string_view< CharT, Traits > &lhs, const basic_string_view< CharT, Traits > &rhs) noexcept
Definition: StringView.h:690
bool WasParseSuccessful() const
Definition: JsonObject.h:183
Definition: JsonObject.h:21
std::vector< T, StlAllocator< T > > Vector
Definition: Types.h:53
#define AWS_CRT_CPP_API
Definition: Exports.h:37
Definition: Allocator.h:11
std::basic_string< char, std::char_traits< char >, StlAllocator< char > > String
Definition: Types.h:45