![]() |
|
PhoenixFileParser
1.5.1
Set of tools to ease file parsing
|
#include "ConfigNode.h"
Include dependency graph for parser_json.h:
This graph shows which files directly or indirectly include this file:Go to the source code of this file.
Functions | |
| bool | parser_json (ConfigNode &main, const PPath &fileName) |
| Load a JSON file. | |
| bool | parser_jsonString (ConfigNode &main, const PString &fileContent) |
| Load a JSON string. | |
| PString | toJsonString (const ConfigNode &main, const PString &baseIndentation, const PString &baseNewLine) |
| Convert the current ConfigNode to a JSON string. | |
| bool parser_json | ( | ConfigNode & | main, |
| const PPath & | fileName ) |
Load a JSON file.
| [out] | main | : ConfigNode to be updated |
| fileName | : name of the file to be loaded |
Definition at line 219 of file parser_json.cpp.
References PFileParser::open(), PJsonParserData::parser, parser_json_fileParser(), PFileParser::setEscapeChar(), ConfigNode::setFileName(), PFileParser::setSeparator(), and PFileParser::setWhiteSpace().
Here is the call graph for this function:| bool parser_jsonString | ( | ConfigNode & | main, |
| const PString & | fileContent ) |
Load a JSON string.
| [out] | main | : ConfigNode to be updated |
| fileContent | : string to be loaded |
Definition at line 239 of file parser_json.cpp.
References PJsonParserData::parser, parser_json_fileParser(), PFileParser::setEscapeChar(), PFileParser::setFileContent(), PFileParser::setSeparator(), and PFileParser::setWhiteSpace().
Here is the call graph for this function:| PString toJsonString | ( | const ConfigNode & | main, |
| const PString & | baseIndentation, | ||
| const PString & | baseNewLine ) |
Convert the current ConfigNode to a JSON string.
| main | : ConfigNode to be converted |
| baseIndentation | : indentation to be used |
| baseNewLine | : new line to be used |
Definition at line 300 of file parser_json.cpp.
References toJsonSaveRecurse().
Here is the call graph for this function: