|
HAL
|
#include <json_write_document.h>


Public Member Functions | |
| JsonWriteArray (const std::string &tag, JsonWriteComplex *parent) | |
| virtual | ~JsonWriteArray () |
| JsonWriteArray & | operator<< (const std::string &txt) |
| JsonWriteArray & | operator<< (int ivalue) |
| JsonWriteArray & | add_array () |
| JsonWriteObject & | add_object () |
Public Member Functions inherited from hal::JsonWriteComplex | |
| JsonWriteComplex (const std::string &tag, JsonWriteComplex *parent) | |
| virtual | ~JsonWriteComplex () |
| void | close () |
Public Member Functions inherited from hal::JsonWriteData | |
| JsonWriteData (const std::string &tag, JsonWriteComplex *parent) | |
| virtual | ~JsonWriteData () |
| JsonWriteData & | operator= (const std::string &txt) |
| JsonWriteData & | operator= (int ivalue) |
| JsonWriteData & | operator= (double value) |
| JsonWriteData & | operator= (uint64_t u64Value) |
Protected Member Functions | |
| virtual void | finalize (JsonWriteComplex *cplx) override |
Protected Member Functions inherited from hal::JsonWriteData | |
| virtual rapidjson::Document::AllocatorType & | allocator () |
Friends | |
| class | JsonWriteData |
| class | JsonWriteDocument |
Additional Inherited Members | |
Protected Attributes inherited from hal::JsonWriteComplex | |
| std::vector< JsonWriteData * > | mChildData |
| rapidjson::Value | mRapidValue |
Protected Attributes inherited from hal::JsonWriteData | |
| std::string | mTagname |
| JsonWriteComplex * | mParent |
Definition at line 182 of file json_write_document.h.
| hal::JsonWriteArray::JsonWriteArray | ( | const std::string & | tag, |
| JsonWriteComplex * | parent | ||
| ) |
Constructor
| [in] | tag | JSON tag name |
| [in] | parent | Parent instance |
Definition at line 127 of file json_write_document.cpp.
References hal::JsonWriteComplex::mRapidValue.
|
inlinevirtual |
Definition at line 198 of file json_write_document.h.
| JsonWriteArray & hal::JsonWriteArray::add_array | ( | ) |
Add child array to array
Definition at line 144 of file json_write_document.cpp.
References hal::JsonWriteComplex::JsonWriteArray, and hal::JsonWriteComplex::mChildData.
| JsonWriteObject & hal::JsonWriteArray::add_object | ( | ) |
Add child array to array
Definition at line 151 of file json_write_document.cpp.
References hal::JsonWriteComplex::JsonWriteObject, and hal::JsonWriteComplex::mChildData.
Referenced by hal::GroupingSerializer::serialize().
|
overrideprotectedvirtual |
Implements hal::JsonWriteComplex.
Definition at line 158 of file json_write_document.cpp.
References hal::JsonWriteData::allocator(), and hal::JsonWriteComplex::mRapidValue.
| JsonWriteArray & hal::JsonWriteArray::operator<< | ( | const std::string & | txt | ) |
Operator to add unnamed text field to array
| [in] | txt | The text content |
Definition at line 132 of file json_write_document.cpp.
References hal::JsonWriteData::allocator(), and hal::JsonWriteComplex::mRapidValue.
| JsonWriteArray & hal::JsonWriteArray::operator<< | ( | int | ivalue | ) |
Operator to add an integer value to array
| [in] | ivalue | The integer value |
Definition at line 138 of file json_write_document.cpp.
References hal::JsonWriteData::allocator(), and hal::JsonWriteComplex::mRapidValue.
|
friend |
Definition at line 184 of file json_write_document.h.
|
friend |
Definition at line 185 of file json_write_document.h.