![]() |
VR-Forces 5.0.1 Developer's Guide
|
The feature specification contains all the data regarding a feature object. Feature specifications are often shared between objects.
Public Types | |
| typedef boost::unordered_map < std::string, std::string > | AttributeMap |
Public Member Functions | |
| DtFeatureSpecification () | |
| DtFeatureSpecification (const DtFeatureSpecification &) | |
| ~DtFeatureSpecification () | |
| DtFeatureSpecification & | operator= (const DtFeatureSpecification &) |
| bool | operator== (const DtFeatureSpecification &other) const |
| bool | operator!= (const DtFeatureSpecification &other) const |
| void | addAttribute (const std::string &key, const std::string &value) |
| void | removeAttribute (const std::string &key) |
| std::string * | findAttribute (const std::string &key) |
| const std::string * | findAttribute (const std::string &key) const |
| const AttributeMap & | attributes () const |
Protected Attributes | |
| AttributeMap | myAttributes |
| typedef boost::unordered_map<std::string,std::string> makVrv::DtFeatureSpecification::AttributeMap |
| makVrv::DtFeatureSpecification::DtFeatureSpecification | ( | ) |
CTOR, creators an empty specification.
| makVrv::DtFeatureSpecification::DtFeatureSpecification | ( | const DtFeatureSpecification & | ) |
Copy CTOR, creates a copy of the provided specification.
| makVrv::DtFeatureSpecification::~DtFeatureSpecification | ( | ) |
DTOR for cleaning up memory.
| DtFeatureSpecification& makVrv::DtFeatureSpecification::operator= | ( | const DtFeatureSpecification & | ) |
Assignment operator for assigning on feature spec to the value of an- other.
| bool makVrv::DtFeatureSpecification::operator== | ( | const DtFeatureSpecification & | other | ) | const |
Equality test, if the two feature specs are equivalent.
| bool makVrv::DtFeatureSpecification::operator!= | ( | const DtFeatureSpecification & | other | ) | const |
Inequality test, if the two feature specs are not equivalent.
| void makVrv::DtFeatureSpecification::addAttribute | ( | const std::string & | key, |
| const std::string & | value | ||
| ) |
Adds an attribute.
| void makVrv::DtFeatureSpecification::removeAttribute | ( | const std::string & | key | ) |
Removes an attribute.
| std::string* makVrv::DtFeatureSpecification::findAttribute | ( | const std::string & | key | ) |
Searches for an attribute.
| const std::string* makVrv::DtFeatureSpecification::findAttribute | ( | const std::string & | key | ) | const |
| const AttributeMap& makVrv::DtFeatureSpecification::attributes | ( | ) | const |
Container with all attributes.
|
protected |