- nom
- JSON
- FileReader
Wrapper class for JSON input with JSONCPP. More...
#include <FileReader.hpp>
Public Member Functions | |
| bool | load (const std::string &filename, Value &object, bool parse_comments=false) |
| void | dump_key (const ValueType &object) const |
| Debugging aid; helper method for nom::JSON::FileReader::dump. | |
| void | dump_value (const ValueType &key) const |
| Debugging aid; helper method for nom::JSON::FileReader::dump. | |
| bool | dump (const ValueType &object, int depth=0) const |
Wrapper class for JSON input with JSONCPP.
[TO BE WRITTEN]
The dump methods originate (with my modifications) from:
http://stackoverflow.com/questions/4800605/jsoncpp-iterate-thru-all-the-objects
Definition at line 46 of file FileReader.hpp.
| bool nom::JSON::FileReader::dump | ( | const ValueType & | object, |
| int | depth = 0 |
||
| ) | const |
A convenient, detailed console output dump of the JSON object, as the underlying engine (JSONCPP) sees it.
Definition at line 151 of file FileReader.cpp.
| bool nom::JSON::FileReader::load | ( | const std::string & | filename, |
| Value & | object, | ||
| bool | parse_comments = false |
||
| ) |
Load JSON input from a specified file path
| filename | Absolute file path |
| object | nom::JSON::Value object container for storing parsed JSON file input |
| parse_comments | Disabled by default |
Definition at line 37 of file FileReader.cpp.