Thin RAII wrapper over a Poco JSON value (object/array/scalar). 更多...
#include <JsonDocument.h>
Public 成员函数 | |
| JsonDocument () | |
| Creates an empty document. | |
| JsonDocument (Poco::Dynamic::Var root) | |
| Takes ownership of an existing Poco JSON root value. | |
| JsonDocument (JsonDocument &&) noexcept | |
| JsonDocument & | operator= (JsonDocument &&) noexcept |
| JsonDocument (const JsonDocument &)=delete | |
| ~JsonDocument ()=default | |
| bool | empty () const |
| True when the root value is empty. | |
| bool | isObject () const |
| Root type predicates. | |
| bool | isArray () const |
| Poco::Dynamic::Var & | root () |
| Underlying Poco dynamic value. | |
| const Poco::Dynamic::Var & | root () const |
| Poco::JSON::Object::Ptr | object () |
| Root as JSON object/array (may be null when the type differs). | |
| Poco::JSON::Array::Ptr | array () |
详细描述
Thin RAII wrapper over a Poco JSON value (object/array/scalar).
在文件 JsonDocument.h 第 11 行定义.
构造及析构函数说明
◆ JsonDocument() [1/4]
| eve::data::JsonDocument::JsonDocument | ( | ) |
Creates an empty document.
在文件 JsonDocument.cpp 第 6 行定义.
◆ JsonDocument() [2/4]
|
explicit |
Takes ownership of an existing Poco JSON root value.
在文件 JsonDocument.cpp 第 8 行定义.
◆ JsonDocument() [3/4]
|
defaultnoexcept |
◆ JsonDocument() [4/4]
|
delete |
◆ ~JsonDocument()
|
default |
成员函数说明
◆ array()
| Poco::JSON::Array::Ptr eve::data::JsonDocument::array | ( | ) |
在文件 JsonDocument.cpp 第 27 行定义.
引用了 isArray().
◆ empty()
| bool eve::data::JsonDocument::empty | ( | ) | const |
True when the root value is empty.
在文件 JsonDocument.cpp 第 13 行定义.
◆ isArray()
| bool eve::data::JsonDocument::isArray | ( | ) | const |
在文件 JsonDocument.cpp 第 17 行定义.
被这些函数引用 array().
◆ isObject()
| bool eve::data::JsonDocument::isObject | ( | ) | const |
Root type predicates.
在文件 JsonDocument.cpp 第 15 行定义.
被这些函数引用 eve::particles::applyConfigDocument(), eve::map::applyConfigDocument() , 以及 object().
◆ object()
| Poco::JSON::Object::Ptr eve::data::JsonDocument::object | ( | ) |
Root as JSON object/array (may be null when the type differs).
在文件 JsonDocument.cpp 第 22 行定义.
引用了 isObject().
被这些函数引用 eve::particles::applyConfigDocument() , 以及 eve::map::applyConfigDocument().
◆ operator=()
|
defaultnoexcept |
◆ root() [1/2]
| Poco::Dynamic::Var & eve::data::JsonDocument::root | ( | ) |
Underlying Poco dynamic value.
在文件 JsonDocument.cpp 第 19 行定义.
被这些函数引用 eve::data::DataModule::encodeJson().
◆ root() [2/2]
| const Poco::Dynamic::Var & eve::data::JsonDocument::root | ( | ) | const |
在文件 JsonDocument.cpp 第 20 行定义.
该类的文档由以下文件生成:
- src/modules/data/JsonDocument.h
- src/modules/data/JsonDocument.cpp