Class with methods to read and write CableProperties from and to json files or strings.
More...
#include <CablePropertiesReaderWriter.h>
Class with methods to read and write CableProperties from and to json files or strings.
Definition at line 30 of file CablePropertiesReaderWriter.h.
◆ readJson()
Read parameters from a file with json data and assign values to CableProperties.
- Parameters
-
| properties | The Material to modify |
| filename | Name of input file |
- Returns
- True if json data could be read and assigned to the CableProperties
◆ readJsonString()
Read parameters from a string with json data and assign values to CableProperties.
- Parameters
-
| properties | The Material to modify |
| jsonContents | json data |
- Returns
- True if json data could be read and assigned to the CableProperties
◆ writeJson()
Read parameters from CableProperties and write result to a CableProperties definition file.
- Parameters
-
| properties | The CableProperties whose values should be read |
| filename | Name of file where data should be written |
- Returns
- True if file could successfully be written
◆ writeJsonString()
Read parameters from CableProperties and write result to a String.
- Parameters
-
| properties | The CableProperties whose values should be read |
| jsonOutput | String that will contain the output |
- Returns
- True if json output could be assigned to the string
The documentation for this class was generated from the following file: