MeVisLabToolboxReference
ml::omAttribute Class Reference

Manages the attribute data and takes care of allocation and deallocation. More...

#include <ObjMgr/mlObjMgrAttribute.h>

Inheritance diagram for ml::omAttribute:
ml::omData

List of all members.

Public Member Functions

 omAttribute ()
 omAttribute (const omAttribute &attr)
virtual ~omAttribute ()
bool isContainerValid () const
 Returns true if attribute container for data is valid.
const omIDTypegetID () const
 Get method for info ID.
omAttributesVectorparent ()
 Writable parent access.
const omAttributesVectorparent () const
 Read-Only parent access.
omFlagsflags ()
 Writable flags access.
const omFlagsflags () const
 Read-Only flags access.
void createDataType (const std::string &typeName)
 Create data-type.
void createDataType (const RuntimeType *type)
void createDataType (const std::string &typeName, const std::string &value)
 Create data-type and assign value using a string argument.
void createDataType (const RuntimeType *type, const std::string &value)
omAttributeoperator= (const omAttribute &attr)
 Assignment operator.
virtual void assign (const omAttribute &attr)
 ATTRIBUTE_OP_HEADER (MLint32)
 These macros declare operators and methods to access the internal attribute data: omAttribute &operator =(const dataType &value); operator dataType() const; as well as: void set_dataType(const dataType &value); (e.g.
 ATTRIBUTE_OP_HEADER (bool)
 ATTRIBUTE_OP_HEADER (double)
 ATTRIBUTE_OP_HEADER (vec3)
 ATTRIBUTE_OP_HEADER (vec4)
 ATTRIBUTE_OP_HEADER (mat4)
 ATTRIBUTE_OP_HEADER (std_string)
 ATTRIBUTE_OP_HEADER (std_MLint32Vec)
 ATTRIBUTE_OP_HEADER (omMessage)
 ATTRIBUTE_OP_HEADER (std_vec3Vec)
 ATTRIBUTE_OP_HEADER (BasePtr)
omAttributeoperator= (const char *value)
 This operator assigns a 'char *' to this attribute.
void markContainerValid (bool trueOrFalse)

Protected Attributes

omFlags _flags
 Special flags.
omAttributesVector_parent
bool _isContainerValid
omIDType _id
 ID of attribute.

Friends

class omAttributesVector

Detailed Description

Manages the attribute data and takes care of allocation and deallocation.

Definition at line 48 of file mlObjMgrAttribute.h.


Constructor & Destructor Documentation

ml::omAttribute::omAttribute ( )
ml::omAttribute::omAttribute ( const omAttribute attr)
virtual ml::omAttribute::~omAttribute ( ) [virtual]

Member Function Documentation

virtual void ml::omAttribute::assign ( const omAttribute attr) [inline, virtual]

Definition at line 114 of file mlObjMgrAttribute.h.

ml::omAttribute::ATTRIBUTE_OP_HEADER ( vec3  )
ml::omAttribute::ATTRIBUTE_OP_HEADER ( vec4  )
ml::omAttribute::ATTRIBUTE_OP_HEADER ( BasePtr  )
ml::omAttribute::ATTRIBUTE_OP_HEADER ( mat4  )
ml::omAttribute::ATTRIBUTE_OP_HEADER ( std_string  )
ml::omAttribute::ATTRIBUTE_OP_HEADER ( std_MLint32Vec  )
ml::omAttribute::ATTRIBUTE_OP_HEADER ( omMessage  )
ml::omAttribute::ATTRIBUTE_OP_HEADER ( std_vec3Vec  )
ml::omAttribute::ATTRIBUTE_OP_HEADER ( MLint32  )

These macros declare operators and methods to access the internal attribute data: omAttribute &operator =(const dataType &value); operator dataType() const; as well as: void set_dataType(const dataType &value); (e.g.

void set_std_string(const std_string &value); ) dataType get_dataType() const; (e.g. MLint32 get_MLint32() const; )

ml::omAttribute::ATTRIBUTE_OP_HEADER ( bool  )
ml::omAttribute::ATTRIBUTE_OP_HEADER ( double  )
void ml::omAttribute::createDataType ( const RuntimeType type) [inline]

Reimplemented from ml::omData.

Definition at line 104 of file mlObjMgrAttribute.h.

void ml::omAttribute::createDataType ( const std::string &  typeName,
const std::string &  value 
)

Create data-type and assign value using a string argument.

void ml::omAttribute::createDataType ( const RuntimeType type,
const std::string &  value 
)
void ml::omAttribute::createDataType ( const std::string &  typeName) [inline]

Create data-type.

Reimplemented from ml::omData.

Definition at line 101 of file mlObjMgrAttribute.h.

omFlags& ml::omAttribute::flags ( ) [inline]

Writable flags access.

Definition at line 92 of file mlObjMgrAttribute.h.

const omFlags& ml::omAttribute::flags ( ) const [inline]

Read-Only flags access.

Definition at line 96 of file mlObjMgrAttribute.h.

const omIDType& ml::omAttribute::getID ( ) const [inline]

Get method for info ID.

Definition at line 78 of file mlObjMgrAttribute.h.

bool ml::omAttribute::isContainerValid ( ) const [inline]

Returns true if attribute container for data is valid.

Definition at line 73 of file mlObjMgrAttribute.h.

void ml::omAttribute::markContainerValid ( bool  trueOrFalse) [inline]

Definition at line 143 of file mlObjMgrAttribute.h.

omAttribute& ml::omAttribute::operator= ( const omAttribute attr)

Assignment operator.

omAttribute& ml::omAttribute::operator= ( const char *  value) [inline]

This operator assigns a 'char *' to this attribute.

Reimplemented from ml::omData.

Definition at line 137 of file mlObjMgrAttribute.h.

const omAttributesVector* ml::omAttribute::parent ( ) const [inline]

Read-Only parent access.

Definition at line 87 of file mlObjMgrAttribute.h.

omAttributesVector* ml::omAttribute::parent ( ) [inline]

Writable parent access.

Definition at line 83 of file mlObjMgrAttribute.h.


Friends And Related Function Documentation

friend class omAttributesVector [friend]

Definition at line 52 of file mlObjMgrAttribute.h.


Member Data Documentation

Special flags.

Definition at line 57 of file mlObjMgrAttribute.h.

ID of attribute.

Definition at line 64 of file mlObjMgrAttribute.h.

Definition at line 61 of file mlObjMgrAttribute.h.

Definition at line 59 of file mlObjMgrAttribute.h.


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