Template class inherited from Object that stores a parameter of a .json file. This class does not have any child or structure, simply contains final values (double, int, string, ...).
More...
#include <jsonObject.h>
|
|
Type | argument |
| | Argument of the Leaf. Final position on JSON tree, contains the int, double, string, ..., needed further in the program.
|
| |
|
|
std::string | specifier |
| | String that represents the specifier of the object. For example: "name": "electron" is an object of which the specifier is the string "name".
|
| |
template<typename Type>
class JSON::Leaf< Type >
Template class inherited from Object that stores a parameter of a .json file. This class does not have any child or structure, simply contains final values (double, int, string, ...).
- Template Parameters
-
| Type | Type of the parameter read in the .json file. |
◆ Leaf() [1/2]
Constructor with two paramters. The specifier and the argument of the Leaf.
- Parameters
-
| specifier | Name of the Leaf's specifier. |
| t_argument | Argument of the Leaf (can be an int, a double, a string...). |
◆ Leaf() [2/2]
Constructor with two paramters. The specifier and the argument of the Leaf.
- Parameters
-
| specifier | Name of the Leaf's specifier. |
| t_argument | Argument of the Leaf (can be an int, a double, a string...). |
◆ getArgument() [1/2]
Returns a std::string representing the argument of the Leaf.
- Returns
- The std::string corresponding to the argument.
Implements JSON::AbstractLeaf.
◆ getArgument() [2/2]
Returns a std::string representing the argument of the Leaf.
- Returns
- The std::string corresponding to the argument.
Implements JSON::AbstractLeaf.
◆ getTypedArgument() [1/2]
Returns the bare argument with its own type, not a string (like the function getArgument() does).
- Returns
- argument.
◆ getTypedArgument() [2/2]
Returns the bare argument with its own type, not a string (like the function getArgument() does).
- Returns
- argument.
The documentation for this class was generated from the following file:
- /home/uhlrich/Bureau/MARTY/newlife/marty-dev/jsonparser/include/jsonObject.h