VR-Forces 4.0.4 Class Documentation
Public Types | Public Member Functions | Protected Attributes
makVrv::DtFeatureSpecification Class Reference

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

List of all members.

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

CTOR, creators an empty specification.

Copy CTOR, creates a copy of the provided specification.

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

Container with all attributes.


Member Data Documentation


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

Document ID: Generated on Fri Jun 29 16:33:32 EDT 2012 from SVN revision 116588
Copyright © 2005-2012 VT MÄK Inc. All Rights Reserved (www.mak.com)