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