AGX Dynamics  2.37.3.2
agxCable::CablePropertiesReaderWriter Class Reference

Class with methods to read and write CableProperties from and to json files or strings. More...

#include <CablePropertiesReaderWriter.h>

Static Public Member Functions

static bool readJson (agxCable::CableProperties *properties, const agx::String &filename)
 Read parameters from a file with json data and assign values to CableProperties. More...
 
static bool readJsonString (agxCable::CableProperties *properties, const agx::String &jsonContents)
 Read parameters from a string with json data and assign values to CableProperties. More...
 
static bool writeJson (const agxCable::CableProperties *properties, const agx::String &filename)
 Read parameters from CableProperties and write result to a CableProperties definition file. More...
 
static bool writeJsonString (const agxCable::CableProperties *properties, agx::String &jsonOutput)
 Read parameters from CableProperties and write result to a String. More...
 

Detailed Description

Class with methods to read and write CableProperties from and to json files or strings.

Definition at line 30 of file CablePropertiesReaderWriter.h.

Member Function Documentation

◆ readJson()

static bool agxCable::CablePropertiesReaderWriter::readJson ( agxCable::CableProperties *  properties,
const agx::String &  filename 
)
static

Read parameters from a file with json data and assign values to CableProperties.

Parameters
propertiesThe Material to modify
filenameName of input file
Returns
True if json data could be read and assigned to the CableProperties

◆ readJsonString()

static bool agxCable::CablePropertiesReaderWriter::readJsonString ( agxCable::CableProperties *  properties,
const agx::String &  jsonContents 
)
static

Read parameters from a string with json data and assign values to CableProperties.

Parameters
propertiesThe Material to modify
jsonContentsjson data
Returns
True if json data could be read and assigned to the CableProperties

◆ writeJson()

static bool agxCable::CablePropertiesReaderWriter::writeJson ( const agxCable::CableProperties *  properties,
const agx::String &  filename 
)
static

Read parameters from CableProperties and write result to a CableProperties definition file.

Parameters
propertiesThe CableProperties whose values should be read
filenameName of file where data should be written
Returns
True if file could successfully be written

◆ writeJsonString()

static bool agxCable::CablePropertiesReaderWriter::writeJsonString ( const agxCable::CableProperties *  properties,
agx::String &  jsonOutput 
)
static

Read parameters from CableProperties and write result to a String.

Parameters
propertiesThe CableProperties whose values should be read
jsonOutputString 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: