Utility class for reading and writing Materials.
More...
#include <MaterialReaderWriter.h>
Utility class for reading and writing Materials.
Definition at line 30 of file MaterialReaderWriter.h.
◆ readJson() [1/2]
Read parameters from a file with json data and assign values to a Material.
- Parameters
-
- Returns
- True if json data could be read and assigned to the Material
◆ readJson() [2/2]
Read parameters from a file with json data and assign values to a ContactMaterial.
- Parameters
-
- Returns
- True if json data could be read and assigned to the ContactMaterial
◆ readJsonString() [1/2]
Read parameters from a string with json data and assign values to a Material.
- Parameters
-
| material | The Material to modify |
| jsonContents | json data |
- Returns
- True if json data could be read and assigned to the Material
◆ readJsonString() [2/2]
Read parameters from a string with json data and assign values to a ContactMaterial.
- Parameters
-
- Returns
- True if json data could be read and assigned to the ContactMaterial
◆ writeJson() [1/2]
Read parameters from a Material and write result to a Material definition file.
- Parameters
-
| material | The Material whose values should be read |
| filename | Name of file where data should be written |
- Returns
- True if file could successfully be written
◆ writeJson() [2/2]
Read parameters from a ContactMaterial and write result to a ContactMaterial definition file.
- Parameters
-
| contactMaterial | The ContactMaterial whose values should be read |
| filename | Name of file where data should be written |
- Returns
- True if file could successfully be written
◆ writeJsonString() [1/2]
Read parameters from a Material and write result to a String.
- Parameters
-
| material | The Material whose values should be read |
| jsonOutput | String that will contain the output |
- Returns
- True if json output could be assigned to the string
◆ writeJsonString() [2/2]
Read parameters from a ContactMaterial and write result to a String.
- Parameters
-
| contactMaterial | The ContactMaterial 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: