OpenSim  OpenSim 3.0
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Pages
OpenSim::PropertyHelper Class Reference

This class allows access to property values using template-free methods. More...

#include <OpenSimContext.h>

Static Public Member Functions

static bool getValueBool (const AbstractProperty &p, int index=-1)
static void setValueBool (bool v, AbstractProperty &p, int index=-1)
static void appendValueBool (bool v, AbstractProperty &p)
static int getValueInt (const AbstractProperty &p, int index=-1)
static void setValueInt (int v, AbstractProperty &p, int index=-1)
static void appendValueInt (int v, AbstractProperty &p)
static double getValueDouble (const AbstractProperty &p, int index=-1)
static void setValueDouble (double v, AbstractProperty &p, int index=-1)
static void appendValueDouble (double v, AbstractProperty &p)
static std::string getValueString (const AbstractProperty &p, int index=-1)
static void setValueString (const std::string &v, AbstractProperty &p, int index=-1)
static void appendValueString (const std::string &v, AbstractProperty &p)
static double getValueTransform (const AbstractProperty &p, int index)
static void setValueTransform (double v, AbstractProperty &p, int index)
static double getValueVec3 (const AbstractProperty &p, int index)
static void setValueVec3 (double v, AbstractProperty &p, int index)

Detailed Description

This class allows access to property values using template-free methods.

Note that this will work regardless of whether the given AbstractProperty is the deprecated kind or the new one.

An AbstractProperty represents a (name, list-of-values) pair, possibly with restrictions on the minimum and maximum list length. Basic container methods size(), resize(), clear(), and empty() are available; use resize() before assigning a value to an indexed element.

For properties that contain objects, you can obtain the values directly from the base class via non-templatized methods.

Member Function Documentation

static void OpenSim::PropertyHelper::appendValueBool ( bool  v,
AbstractProperty p 
)
inlinestatic
static void OpenSim::PropertyHelper::appendValueDouble ( double  v,
AbstractProperty p 
)
inlinestatic
static void OpenSim::PropertyHelper::appendValueInt ( int  v,
AbstractProperty p 
)
inlinestatic
static void OpenSim::PropertyHelper::appendValueString ( const std::string &  v,
AbstractProperty p 
)
inlinestatic
static bool OpenSim::PropertyHelper::getValueBool ( const AbstractProperty p,
int  index = -1 
)
inlinestatic
static double OpenSim::PropertyHelper::getValueDouble ( const AbstractProperty p,
int  index = -1 
)
inlinestatic
static int OpenSim::PropertyHelper::getValueInt ( const AbstractProperty p,
int  index = -1 
)
inlinestatic
static std::string OpenSim::PropertyHelper::getValueString ( const AbstractProperty p,
int  index = -1 
)
inlinestatic
static double OpenSim::PropertyHelper::getValueTransform ( const AbstractProperty p,
int  index 
)
inlinestatic
static double OpenSim::PropertyHelper::getValueVec3 ( const AbstractProperty p,
int  index 
)
inlinestatic
static void OpenSim::PropertyHelper::setValueBool ( bool  v,
AbstractProperty p,
int  index = -1 
)
inlinestatic
static void OpenSim::PropertyHelper::setValueDouble ( double  v,
AbstractProperty p,
int  index = -1 
)
inlinestatic
static void OpenSim::PropertyHelper::setValueInt ( int  v,
AbstractProperty p,
int  index = -1 
)
inlinestatic
static void OpenSim::PropertyHelper::setValueString ( const std::string &  v,
AbstractProperty p,
int  index = -1 
)
inlinestatic
static void OpenSim::PropertyHelper::setValueTransform ( double  v,
AbstractProperty p,
int  index 
)
inlinestatic
static void OpenSim::PropertyHelper::setValueVec3 ( double  v,
AbstractProperty p,
int  index 
)
inlinestatic

The documentation for this class was generated from the following file: