#include <OCDM.h>
Inheritance diagram for OCDM_AttributeSet:
Public Member Functions | |
OCDM_AttributeSet () | |
OCDM_AttributeSet (const CDM_Object obj) | |
OCDM_AttributeSet (const class OCDM_AttributeSet &obj) | |
OCDM_AttributeSet (const char *name, const OCDM_AttributeValue &AttrVal) | |
This is the constructor function of the OCDM_AttributeSet class. | |
OCDM_AttributeSet & | operator= (const class OCDM_Object &obj) |
This is the default assignment operator. | |
OCDM_INDEX_OPERATOR_REF (OCDM_Attribute) operator[](const long index) const | |
void | AddAttribute (const OCDM_Attribute &Attr) |
This function will append the given Attribute (the value of the "Attribute" parameter) to the Attribute set object in use. | |
OCDM_BOOL | AttributeExists (const char *name) const |
This function will return true if an Attribute with the specified name exists in the Attribute set. | |
OCDM_REF (OCDM_Attribute) GetAttribute(const char *name) const | |
int | RemoveAttribute (const char *name) |
This function will remove all Attributes having the provided name from the Attribute set. The number of removed Annotations will be returned. | |
const char * | objectType (void) const |
OCDM_AttributeSet | ( | ) | [inline] |
OCDM_AttributeSet | ( | const CDM_Object | obj | ) | [inline] |
OCDM_AttributeSet | ( | const class OCDM_AttributeSet & | obj | ) | [inline] |
OCDM_AttributeSet | ( | const char * | name, | |
const OCDM_AttributeValue & | AttrVal | |||
) |
name:
The name of the OCDM_AttributeSet object to be created. Attrval:
The value of the Atribute to be created.
class OCDM_AttributeSet& operator= | ( | const class OCDM_Object & | obj | ) | [inline, virtual] |
obj:
the object to be copied. Reimplemented from OCDM_Object.
OCDM_INDEX_OPERATOR_REF | ( | OCDM_Attribute | ) | const |
void AddAttribute | ( | const OCDM_Attribute & | Attr | ) |
Attr:
The Attribute object to be appended to the attribute set.OCDM_BOOL AttributeExists | ( | const char * | name | ) | const |
name:
The Attribute name to be found.OCDM_REF | ( | OCDM_Attribute | ) | const |
int RemoveAttribute | ( | const char * | name | ) |
Name:
The name of the OCDM_Attribute object to be removed.const char* objectType | ( | void | ) | const [inline, virtual] |
This method returns the type of the object as a string.
Reimplemented from OCDM_Object.