Class for static purpose only (i.e. not constructible) that handles reading .json files. Once a file read, it can also rewrite its data in a file. However this functionnality is not used for now.
More...
|
| static std::unique_ptr< Node > | loadFromFile (std::string const &nameFile) |
| | Reads a .json file and returns a tree containing all the JSON structure in ther file. More...
|
| |
| static void | saveToFile (std::string const &nameFile, Node *tree) |
| | Writes a tree into a file in json format. More...
|
| |
| static void | saveToFile (std::string const &nameFile, std::unique_ptr< Node > const &tree) |
| | Writes a tree into a file in json format. More...
|
| |
| static std::unique_ptr< Node > | loadFromFile (std::string const &nameFile) |
| | Reads a .json file and returns a tree containing all the JSON structure in ther file. More...
|
| |
| static void | saveToFile (std::string const &nameFile, Node *tree) |
| | Writes a tree into a file in json format. More...
|
| |
| static void | saveToFile (std::string const &nameFile, std::unique_ptr< Node > const &tree) |
| | Writes a tree into a file in json format. More...
|
| |
|
| static int | readLineNumber () |
| |
| static void | readingError (std::string const &error) |
| | Displays an error message when a bad structure is encountered in reading. More...
|
| |
|
static void | unexpectedEndOfFile () |
| | Raises an error when the end of the file is reached while reading.
|
| |
| static char | readSeparator () |
| | Reads the next separator ('{', '[', ':', ...) ignoring spaces and line break. More...
|
| |
| static std::string | readString () |
| | Reads a string (parameter between "") once the first " has been read. More...
|
| |
| static char | readBoolean (char first, std::string &strBool) |
| | Reads a boolean, "treu" of "false", into a std::string. More...
|
| |
| static char | readNumber (char first, std::string &strNumber) |
| | Reads a number, double or int, into a std::string. More...
|
| |
| static char | getBooleanLeaf (Child &child, std::string const &specifier, char first) |
| | Constructs a Leaf that stores a boolean read in the file. More...
|
| |
| static char | getNumberLeaf (Child &child, std::string const &specifier, char first) |
| | Constructs a Leaf that stores a number read in the file. More...
|
| |
| static char | getStringLeaf (Child &child, std::string const &specifier) |
| | Constructs a Leaf that stores a string read in the file. More...
|
| |
| static char | readNode (Child &child, std::string const &specifier) |
| | Constructs a Node read in the file. More...
|
| |
| static char | readList (Child &child, std::string const &specifier) |
| | Constructs a List read in the file. More...
|
| |
| static char | readObject (Child &child, std::string const &specifier) |
| | Constructs a Object read in the file. More...
|
| |
| static char | readObject (Child &child, std::string const &specifier, char first) |
| | Constructs a Object read in the file. More...
|
| |
| static void | writeToFileWithIndent (std::string const &str) |
| | Writes a string into the file (when writing) with the indentation level indent. More...
|
| |
| static void | writeToFile (Object *object, bool writeSpec=true) |
| | Writes an Object into the file (when writing). More...
|
| |
| static int | readLineNumber () |
| |
| static void | readingError (std::string const &error) |
| | Displays an error message when a bad structure is encountered in reading. More...
|
| |
|
static void | unexpectedEndOfFile () |
| | Raises an error when the end of the file is reached while reading.
|
| |
| static char | readSeparator () |
| | Reads the next separator ('{', '[', ':', ...) ignoring spaces and line break. More...
|
| |
| static std::string | readString () |
| | Reads a string (parameter between "") once the first " has been read. More...
|
| |
| static char | readBoolean (char first, std::string &strBool) |
| | Reads a boolean, "treu" of "false", into a std::string. More...
|
| |
| static char | readNumber (char first, std::string &strNumber) |
| | Reads a number, double or int, into a std::string. More...
|
| |
| static char | getBooleanLeaf (Child &child, std::string const &specifier, char first) |
| | Constructs a Leaf that stores a boolean read in the file. More...
|
| |
| static char | getNumberLeaf (Child &child, std::string const &specifier, char first) |
| | Constructs a Leaf that stores a number read in the file. More...
|
| |
| static char | getStringLeaf (Child &child, std::string const &specifier) |
| | Constructs a Leaf that stores a string read in the file. More...
|
| |
| static char | readNode (Child &child, std::string const &specifier) |
| | Constructs a Node read in the file. More...
|
| |
| static char | readList (Child &child, std::string const &specifier) |
| | Constructs a List read in the file. More...
|
| |
| static char | readObject (Child &child, std::string const &specifier) |
| | Constructs a Object read in the file. More...
|
| |
| static char | readObject (Child &child, std::string const &specifier, char first) |
| | Constructs a Object read in the file. More...
|
| |
| static void | writeToFileWithIndent (std::string const &str) |
| | Writes a string into the file (when writing) with the indentation level indent. More...
|
| |
| static void | writeToFile (Object *object, bool writeSpec=true) |
| | Writes an Object into the file (when writing). More...
|
| |
Class for static purpose only (i.e. not constructible) that handles reading .json files. Once a file read, it can also rewrite its data in a file. However this functionnality is not used for now.