VR-Forces 4.6 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Public Types | Public Member Functions | Protected Attributes
makVrv::DtFeatureSpecification Class Reference

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.
DtFeatureSpecificationoperator= (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 AttributeMapattributes () const
 Container with all attributes.

Protected Attributes

AttributeMap myAttributes

Detailed Description

The feature specification contains all the data regarding a feature object.

Feature specifications are often shared between objects.

Member Typedef Documentation

typedef boost::unordered_map<std::string,std::string> makVrv::DtFeatureSpecification::AttributeMap

Constructor & Destructor Documentation

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.

Member Function Documentation

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.

Returns
0 if the attribute was not found.
const std::string* makVrv::DtFeatureSpecification::findAttribute ( const std::string &  key) const
const AttributeMap& makVrv::DtFeatureSpecification::attributes ( ) const

Container with all attributes.

Member Data Documentation

AttributeMap makVrv::DtFeatureSpecification::myAttributes
protected

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

Document ID: Generated on Thu Apr 12 03:15:37 EDT 2018 from SVN revision 187986
Copyright © 2005-2018 VT MÄK. All Rights Reserved (www.mak.com)