#include <PropertyObj.h>
Public Member Functions | |
PropertyObj () | |
Default Constructor. | |
PropertyObj (const std::string &aName, const Object &aValue) | |
PropertyObj (const PropertyObj &aProperty) | |
Copy constructor. | |
virtual Property * | copy () const |
Construct and return a copy of this property. | |
virtual | ~PropertyObj () |
Destructor. | |
PropertyObj & | operator= (const PropertyObj &aProperty) |
Assign this property to another. | |
virtual bool | isValidObject (const Object *obj) const |
virtual const char * | getTypeAsString () const |
Get the type of this property as a string. | |
virtual Object & | getValueObj () |
Get a reference to the value of this property. | |
virtual const Object & | getValueObj () const |
Get a constant reference to the value of this property. | |
virtual const std::string & | toString () |
Get a constant String represeting the value of this property. | |
void | setMatchName (bool aMatchName) |
bool | getMatchName () const |
PropertyObj::PropertyObj | ( | ) |
Default Constructor.
OpenSim::PropertyObj::PropertyObj | ( | const std::string & | aName, | |
const Object & | aValue | |||
) |
PropertyObj::PropertyObj | ( | const PropertyObj & | aProperty | ) |
Copy constructor.
aProperty | Property to be copied. |
PropertyObj::~PropertyObj | ( | ) | [virtual] |
Destructor.
Property * PropertyObj::copy | ( | ) | const [virtual] |
Construct and return a copy of this property.
The property is allocated using the new operator, so the caller is responsible for deleting the returned object.
Implements OpenSim::Property.
bool OpenSim::PropertyObj::getMatchName | ( | ) | const [inline] |
const char * PropertyObj::getTypeAsString | ( | ) | const [virtual] |
Get the type of this property as a string.
Reimplemented from OpenSim::Property.
const Object & PropertyObj::getValueObj | ( | ) | const [virtual] |
Get a constant reference to the value of this property.
Reimplemented from OpenSim::Property.
Object & PropertyObj::getValueObj | ( | ) | [virtual] |
Get a reference to the value of this property.
Note that the returned reference can be used to change the value of this property.
Reimplemented from OpenSim::Property.
virtual bool OpenSim::PropertyObj::isValidObject | ( | const Object * | obj | ) | const [inline, virtual] |
Reimplemented from OpenSim::Property.
PropertyObj & PropertyObj::operator= | ( | const PropertyObj & | aProperty | ) |
Assign this property to another.
aProperty | Property to which to assign this property. |
Reimplemented from OpenSim::Property.
void OpenSim::PropertyObj::setMatchName | ( | bool | aMatchName | ) | [inline] |
const string & PropertyObj::toString | ( | ) | [virtual] |
Get a constant String represeting the value of this property.
Implements OpenSim::Property.