|
AGX Dynamics 2.42.3.1
|
Class with methods to read and write CombustionEngineParameters to and from JSON files or JSON formatted strings. More...
#include <CombustionEngineParametersReaderWriter.h>
Static Public Member Functions | |
| static bool | readJson (agxDriveTrain::CombustionEngineParameters *parameters, const agx::String &filename) |
| Read parameters from a file with json format and assign values to a CombustionEngineParameters object. | |
| static bool | readJsonString (agxDriveTrain::CombustionEngineParameters *parameters, const agx::String &jsonContents) |
| Read parameters from a string with JSON data and assign values to a CombustionEngineParameters object. | |
| static bool | writeJson (const agxDriveTrain::CombustionEngineParameters *parameters, const agx::String &filename) |
| Read parameters from CombustionEngineParameters and write result to a CombustionEngineParameters definition file in JSON format. | |
| static bool | writeJsonString (const agxDriveTrain::CombustionEngineParameters *parameters, agx::String &jsonOutput) |
| Read parameters from a CombustionEngineParameters object and write result to a string in JSON format. | |
Class with methods to read and write CombustionEngineParameters to and from JSON files or JSON formatted strings.
Definition at line 29 of file CombustionEngineParametersReaderWriter.h.
|
static |
Read parameters from a file with json format and assign values to a CombustionEngineParameters object.
| parameters | - The CombustionEngineParameters to modify |
| filename | - Name of input file |
|
static |
Read parameters from a string with JSON data and assign values to a CombustionEngineParameters object.
| parameters | - The CombustionEngineParameters object to be updated |
| jsonContents | - String with JSON data |
|
static |
Read parameters from CombustionEngineParameters and write result to a CombustionEngineParameters definition file in JSON format.
| parameters | - The CombustionEngineParameters whose values should be read |
| filename | - Name of file where JSON data should be written |
|
static |
Read parameters from a CombustionEngineParameters object and write result to a string in JSON format.
| parameters | - The CombustionEngineParameters whose values should be read |
| jsonOutput | - String in json format that will contain the output |