parsing connections from JSON file
More...
#include <ConnectionsParser.hpp>
|
| template<class T > |
| static ParametersConnections | Parse (json &jsonConnections, T ¶meters) |
| | Parsing json object to ParametersConnetions. More...
|
| |
|
| static bool | HasArray (json &connection) |
| | checks if one of the item in json is an array More...
|
| |
| static void | GetConnection (json &jsonConnection, Connection &connection, double &value) |
| | Get the Connection object. More...
|
| |
| static Connections | GetAllConnections (json ¶meterConnections, double defaultValue) |
| | Get the all Connections objects from json object. More...
|
| |
parsing connections from JSON file
◆ GetAllConnections()
| static Connections ConnectionsParser::GetAllConnections |
( |
json & |
parameterConnections, |
|
|
double |
defaultValue |
|
) |
| |
|
inlinestaticprivate |
Get the all Connections objects from json object.
- Parameters
-
| parameterConnections | json object to parse |
| defaultValue | default value of the connection |
- Returns
- Connections
◆ GetConnection()
| static void ConnectionsParser::GetConnection |
( |
json & |
jsonConnection, |
|
|
Connection & |
connection, |
|
|
double & |
value |
|
) |
| |
|
inlinestaticprivate |
Get the Connection object.
- Parameters
-
| jsonConnection | json object to unpack |
| connection | parsed Connection |
| value | parsed value |
◆ HasArray()
| static bool ConnectionsParser::HasArray |
( |
json & |
connection | ) |
|
|
inlinestaticprivate |
checks if one of the item in json is an array
- Parameters
-
- Returns
- true array item exists
-
false array item does not exist
◆ Parse()
template<class T >
| static ParametersConnections ConnectionsParser::Parse |
( |
json & |
jsonConnections, |
|
|
T & |
parameters |
|
) |
| |
|
inlinestatic |
Parsing json object to ParametersConnetions.
- Template Parameters
-
- Parameters
-
| jsonConnections | |
| parameters | |
- Returns
- ParametersConnections
The documentation for this class was generated from the following file: