Public Types | |
enum | Type { UNKNOW, INTEGER, DOUBLE, STRING } |
Public Member Functions | |
ShapeAttribute () | |
ShapeAttribute (const char *name) | |
ShapeAttribute (const char *name, int value) | |
ShapeAttribute (const char *name, double value) | |
ShapeAttribute (const char *name, const char *value) | |
Note, ShapeAttribute takes a copy of both name and value, the calling code should manage its own clean up of the original strings. | |
ShapeAttribute (const ShapeAttribute &sa) | |
~ShapeAttribute () | |
ShapeAttribute & | operator= (const ShapeAttribute &sa) |
const std::string & | getName () const |
const Type | getType () const |
int | getInt () const |
double | getDouble () const |
const char * | getString () const |
int | compare (const osgSim::ShapeAttribute &sa) const |
return -1 if *this < *rhs, 0 if *this==*rhs, 1 if *this>*rhs. |
osgSim::ShapeAttribute::ShapeAttribute | ( | ) |
osgSim::ShapeAttribute::ShapeAttribute | ( | const char * | name | ) |
osgSim::ShapeAttribute::ShapeAttribute | ( | const char * | name, | |
int | value | |||
) |
osgSim::ShapeAttribute::ShapeAttribute | ( | const char * | name, | |
double | value | |||
) |
osgSim::ShapeAttribute::ShapeAttribute | ( | const char * | name, | |
const char * | value | |||
) |
Note, ShapeAttribute takes a copy of both name and value, the calling code should manage its own clean up of the original strings.
osgSim::ShapeAttribute::ShapeAttribute | ( | const ShapeAttribute & | sa | ) |
osgSim::ShapeAttribute::~ShapeAttribute | ( | ) |
ShapeAttribute& osgSim::ShapeAttribute::operator= | ( | const ShapeAttribute & | sa | ) |
const std::string& osgSim::ShapeAttribute::getName | ( | ) | const [inline] |
const Type osgSim::ShapeAttribute::getType | ( | ) | const [inline] |
int osgSim::ShapeAttribute::getInt | ( | ) | const [inline] |
double osgSim::ShapeAttribute::getDouble | ( | ) | const [inline] |
const char* osgSim::ShapeAttribute::getString | ( | ) | const [inline] |
int osgSim::ShapeAttribute::compare | ( | const osgSim::ShapeAttribute & | sa | ) | const |
return -1 if *this < *rhs, 0 if *this==*rhs, 1 if *this>*rhs.