Public Member Functions | Public Attributes

cmtk::MetaInformationObject Class Reference
[cmtkBase Library]

Meta-information associated with library objects. More...

#include <cmtkMetaInformationObject.h>

Inheritance diagram for cmtk::MetaInformationObject:
Inheritance graph
[legend]
Collaboration diagram for cmtk::MetaInformationObject:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 MetaInformationObject ()
 Default constructor: do nothing.
 MetaInformationObject (const MetaInformationObject &other)
 Copy constructor: copy meta information when copying higher-level objects.
virtual ~MetaInformationObject ()
 Virtual destructor template.
bool MetaKeyExists (const std::string &key) const
 Check whether a key exists.
const std::string & GetMetaInfo (const std::string &key) const
 Return a meta info value.
void SetMetaInfo (const std::string &key, const std::string &value)
 Set a meta info value.

Public Attributes

std::map< std::string,
std::string > 
m_MetaInformation
 The actual table of meta data: maps keys to values.

Detailed Description

Meta-information associated with library objects.

Definition at line 63 of file cmtkMetaInformationObject.h.


Constructor & Destructor Documentation

cmtk::MetaInformationObject::MetaInformationObject (  ) [inline]

Default constructor: do nothing.

Definition at line 67 of file cmtkMetaInformationObject.h.

cmtk::MetaInformationObject::MetaInformationObject ( const MetaInformationObject other ) [inline]

Copy constructor: copy meta information when copying higher-level objects.

Definition at line 70 of file cmtkMetaInformationObject.h.

virtual cmtk::MetaInformationObject::~MetaInformationObject (  ) [inline, virtual]

Virtual destructor template.

Definition at line 75 of file cmtkMetaInformationObject.h.


Member Function Documentation

const std::string & cmtk::MetaInformationObject::GetMetaInfo ( const std::string &  key ) const

Return a meta info value.

Definition at line 34 of file cmtkMetaInformationObject.cxx.

References m_MetaInformation.

Referenced by cmtk::VolumeIO::Write().

bool cmtk::MetaInformationObject::MetaKeyExists ( const std::string &  key ) const [inline]

Check whether a key exists.

Definition at line 78 of file cmtkMetaInformationObject.h.

Referenced by cmtk::VolumeIO::Write().

void cmtk::MetaInformationObject::SetMetaInfo ( const std::string &  key,
const std::string &  value 
)

Set a meta info value.

Definition at line 40 of file cmtkMetaInformationObject.cxx.

Referenced by cmtk::operator>>().


Member Data Documentation

std::map<std::string,std::string> cmtk::MetaInformationObject::m_MetaInformation [mutable]

The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines