Restoring of nom::Value objects from JSON documents using the JsonCpp library.
More...
#include <JsonCppDeserializer.hpp>
|
| | JsonCppDeserializer (void) |
| | Default constructor; initialize the parser to strict mode compliance.
|
|
| ~JsonCppDeserializer (void) |
| | Destructor.
|
| | JsonCppDeserializer (uint32 options) |
| | Construct a parser with a feature set enumeration.
|
| Value | deserialize (const std::string &source) |
| | Parse JSON data as a nom::Value object.
|
| bool | load (const std::string &filename, Value &output) |
| | Convenience method provided to store JSON-formatted data from a file.
|
|
|
bool | read (const Json::Value &source, Value &dest) const |
| bool | read_value (const Json::Value &object, Value &dest) const |
| bool | read_array (const Json::Value &object, Value &dest) const |
| | Internal helper method for un-serialization of array nodes.
|
| bool | read_object (const Json::Value &object, Value &dest) const |
| | Internal helper method for un-serialization of object nodes.
|
Restoring of nom::Value objects from JSON documents using the JsonCpp library.
[TO BE WRITTEN]
- Todo
- Additional error handling via Json::Reader::getFormattedErrorMessage
Definition at line 57 of file JsonCppDeserializer.hpp.
◆ JsonCppDeserializer() [1/2]
| nom::JsonCppDeserializer::JsonCppDeserializer |
( |
void | | ) |
|
Default constructor; initialize the parser to strict mode compliance.
◆ JsonCppDeserializer() [2/2]
| nom::JsonCppDeserializer::JsonCppDeserializer |
( |
uint32 | options | ) |
|
Construct a parser with a feature set enumeration.
◆ deserialize()
| Value nom::JsonCppDeserializer::deserialize |
( |
const std::string & | source | ) |
|
|
virtual |
◆ load()
| bool nom::JsonCppDeserializer::load |
( |
const std::string & | filename, |
|
|
Value & | output ) |
|
virtual |
Convenience method provided to store JSON-formatted data from a file.
- Parameters
-
| filename | Absolute file path to data to deserialize from. |
| output | nom::Value container to store resulting data in. |
- Note
- Implements IDeserializer interface.
Implements nom::IValueDeserializer.
◆ read_array()
| bool nom::JsonCppDeserializer::read_array |
( |
const Json::Value & | object, |
|
|
Value & | dest ) const |
|
private |
Internal helper method for un-serialization of array nodes.
- Todo
- Err handling where used in code
◆ read_object()
| bool nom::JsonCppDeserializer::read_object |
( |
const Json::Value & | object, |
|
|
Value & | dest ) const |
|
private |
Internal helper method for un-serialization of object nodes.
- Todo
- Err handling where used in code
◆ read_value()
| bool nom::JsonCppDeserializer::read_value |
( |
const Json::Value & | object, |
|
|
Value & | dest ) const |
|
private |
- Todo
- Err handling where used in code
◆ options_
| uint32 nom::JsonCppDeserializer::options_ |
|
private |
The documentation for this class was generated from the following file: