![]() |
HAL
|
#include <json_write_document.h>
Public Member Functions | |
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 rapidjson::Document::AllocatorType & | allocator () |
Protected Attributes | |
std::string | mTagname |
JsonWriteComplex * | mParent |
Friends | |
class | JsonWriteComplex |
The JsonWriteData class represents a simple data field which gets assigned using the operator=
Definition at line 47 of file json_write_document.h.
hal::JsonWriteData::JsonWriteData | ( | const std::string & | tag, |
JsonWriteComplex * | parent | ||
) |
Constructor
[in] | tag | JSON tag name |
[in] | parent | Parent instance |
Definition at line 18 of file json_write_document.cpp.
|
inlinevirtual |
Definition at line 65 of file json_write_document.h.
|
protectedvirtual |
Reimplemented in hal::JsonWriteDocument.
Definition at line 23 of file json_write_document.cpp.
References hal::JsonWriteDocument::allocator(), and mParent.
Referenced by hal::JsonWriteObject::add_member(), hal::JsonWriteObject::finalize(), hal::JsonWriteArray::finalize(), hal::JsonWriteArray::operator<<(), and operator=().
JsonWriteData & hal::JsonWriteData::operator= | ( | const std::string & | txt | ) |
Assign text string to JSON field
[in] | txt | The text content |
Definition at line 39 of file json_write_document.cpp.
References hal::JsonWriteObject::add_member(), allocator(), mParent, and mTagname.
JsonWriteData & hal::JsonWriteData::operator= | ( | double | value | ) |
Assign int value to JSON field.
[in] | value | - The numerical content (floating point). |
Definition at line 63 of file json_write_document.cpp.
References hal::JsonWriteObject::add_member(), allocator(), mParent, and mTagname.
JsonWriteData & hal::JsonWriteData::operator= | ( | int | ivalue | ) |
Assign int value to JSON field
[in] | ivalue | The numerical content |
Definition at line 47 of file json_write_document.cpp.
References hal::JsonWriteObject::add_member(), allocator(), mParent, and mTagname.
JsonWriteData & hal::JsonWriteData::operator= | ( | uint64_t | u64Value | ) |
Assign unsigned 64 bit value to JSON field.
[in] | u64Value | - The numerical content. |
Definition at line 55 of file json_write_document.cpp.
References hal::JsonWriteObject::add_member(), allocator(), mParent, and mTagname.
|
friend |
Definition at line 49 of file json_write_document.h.
|
protected |
Definition at line 53 of file json_write_document.h.
Referenced by allocator(), hal::JsonWriteComplex::close(), and operator=().
|
protected |
Definition at line 52 of file json_write_document.h.
Referenced by hal::JsonWriteObject::finalize(), hal::JsonWriteDocument::finalize(), and operator=().