VR-Forces Developer's Guide
 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. 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 ()
 
DtFeatureSpecificationoperator= (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 AttributeMapattributes () const
 

Protected Attributes

AttributeMap myAttributes
 

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 Tue Sep 24 19:28:17 EDT 2024 from SVN revision 269799
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)