cargo Json interface
More...
|
template<class Cargo > |
void | cargo::loadFromJsonString (const std::string &jsonString, Cargo &visitable) |
| Fills the visitable with data stored in the json string. More...
|
|
template<class Cargo > |
std::string | cargo::saveToJsonString (const Cargo &visitable) |
| Creates a string representation of the visitable in json format. More...
|
|
template<class Cargo > |
void | cargo::loadFromJsonFile (const std::string &filename, Cargo &visitable) |
| Loads the visitable from a json file. More...
|
|
template<class Cargo > |
void | cargo::saveToJsonFile (const std::string &filename, const Cargo &visitable) |
| Saves the visitable in a json file. More...
|
|
cargo Json interface
template<class Cargo >
void cargo::loadFromJsonFile |
( |
const std::string & |
filename, |
|
|
Cargo & |
visitable |
|
) |
| |
Loads the visitable from a json file.
- Parameters
-
filename | path to the file |
visitable | visitable structure to load |
template<class Cargo >
void cargo::loadFromJsonString |
( |
const std::string & |
jsonString, |
|
|
Cargo & |
visitable |
|
) |
| |
Fills the visitable with data stored in the json string.
- Parameters
-
jsonString | data in a json format |
visitable | visitable structure to fill |
template<class Cargo >
void cargo::saveToJsonFile |
( |
const std::string & |
filename, |
|
|
const Cargo & |
visitable |
|
) |
| |
Saves the visitable in a json file.
- Parameters
-
filename | path to the file |
visitable | visitable structure to save |
template<class Cargo >
std::string cargo::saveToJsonString |
( |
const Cargo & |
visitable | ) |
|
Creates a string representation of the visitable in json format.
- Parameters
-
visitable | visitable structure to convert |