AGX Dynamics  2.35.0.1
agxModel::BeamModelPropertiesReaderWriter Class Reference

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

#include <BeamModelPropertiesReaderWriter.h>

Static Public Member Functions

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

Detailed Description

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

Definition at line 30 of file BeamModelPropertiesReaderWriter.h.

Member Function Documentation

◆ readJson()

static bool agxModel::BeamModelPropertiesReaderWriter::readJson ( agxModel::BeamModelProperties *  properties,
const agx::String &  filename 
)
static

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

Parameters
propertiesThe Material to modify
filenameName of input file

◆ readJsonString()

static bool agxModel::BeamModelPropertiesReaderWriter::readJsonString ( agxModel::BeamModelProperties *  properties,
const agx::String &  jsonContents 
)
static

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

Parameters
propertiesThe Material to modify
jsonContentsjson data

◆ writeJson()

static bool agxModel::BeamModelPropertiesReaderWriter::writeJson ( const agxModel::BeamModelProperties *  properties,
const agx::String &  filename 
)
static

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

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

◆ writeJsonString()

static bool agxModel::BeamModelPropertiesReaderWriter::writeJsonString ( const agxModel::BeamModelProperties *  properties,
agx::String &  jsonOutput 
)
static

Read parameters from BeamModelProperties and write result to a String.

Parameters
propertiesThe BeamModelProperties 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: