VTK  9.1.0
Functions
omf::helper Namespace Reference

Functions

void PrintMemberNames (const Json::Value &root)
 print names of members of root.
 
bool GetPointFromJSON (const Json::Value &pointJSON, double point[3])
 read a 3d point stored directly in JSON
 
bool GetIntValue (const Json::Value &root, int &value)
 Get int value from Json variable, with existence and type checks.
 
bool GetUIntValue (const Json::Value &root, unsigned int &value)
 Get int value from Json variable, with existence and type checks.
 
bool GetDoubleValue (const Json::Value &root, double &value)
 Get double value from Json variable, with existence and type checks.
 
bool GetStringValue (const Json::Value &root, std::string &value)
 Get string value from Json variable, with existence and type checks.
 
bool GetBoolValue (const Json::Value &root, bool &value)
 Get bool value from Json variable, with existence and type checks.
 
bool GetIntArray (const Json::Value &root, std::vector< int > &value)
 Get int array from Json variable, with existence and type checks.
 
bool GetUIntArray (const Json::Value &root, std::vector< unsigned int > &value)
 Get int array from Json variable, with existence and type checks.
 
bool GetFloatArray (const Json::Value &root, std::vector< float > &value)
 Get float array from Json variable, with existence and type checks.
 
bool GetDoubleArray (const Json::Value &root, std::vector< double > &value)
 Get double array from Json variable, with existence and type checks.
 

Function Documentation

◆ PrintMemberNames()

void omf::helper::PrintMemberNames ( const Json::Value &  root)

print names of members of root.

Just used for debugging

◆ GetPointFromJSON()

bool omf::helper::GetPointFromJSON ( const Json::Value &  pointJSON,
double  point[3] 
)

read a 3d point stored directly in JSON

◆ GetIntValue()

bool omf::helper::GetIntValue ( const Json::Value &  root,
int &  value 
)

Get int value from Json variable, with existence and type checks.

◆ GetUIntValue()

bool omf::helper::GetUIntValue ( const Json::Value &  root,
unsigned int &  value 
)

Get int value from Json variable, with existence and type checks.

◆ GetDoubleValue()

bool omf::helper::GetDoubleValue ( const Json::Value &  root,
double &  value 
)

Get double value from Json variable, with existence and type checks.

◆ GetStringValue()

bool omf::helper::GetStringValue ( const Json::Value &  root,
std::string &  value 
)

Get string value from Json variable, with existence and type checks.

◆ GetBoolValue()

bool omf::helper::GetBoolValue ( const Json::Value &  root,
bool &  value 
)

Get bool value from Json variable, with existence and type checks.

◆ GetIntArray()

bool omf::helper::GetIntArray ( const Json::Value &  root,
std::vector< int > &  value 
)

Get int array from Json variable, with existence and type checks.

◆ GetUIntArray()

bool omf::helper::GetUIntArray ( const Json::Value &  root,
std::vector< unsigned int > &  value 
)

Get int array from Json variable, with existence and type checks.

◆ GetFloatArray()

bool omf::helper::GetFloatArray ( const Json::Value &  root,
std::vector< float > &  value 
)

Get float array from Json variable, with existence and type checks.

◆ GetDoubleArray()

bool omf::helper::GetDoubleArray ( const Json::Value &  root,
std::vector< double > &  value 
)

Get double array from Json variable, with existence and type checks.