#include <OCDM.h>
Inheritance diagram for OCDM_Attribute:
Public Member Functions | |
OCDM_Attribute () | |
OCDM_Attribute (const CDM_Object obj) | |
OCDM_Attribute (const class OCDM_Attribute &obj) | |
OCDM_Attribute (const char *name, const OCDM_AttributeValue &AttrVal) | |
OCDM_Attribute (const char *name, const int Type, const char *Value) | |
OCDM_Attribute & | operator= (const class OCDM_Object &obj) |
This is the default assignment operator. | |
const char * | GetName (void) const |
Returns Attribute's name. | |
const char * | GetValueString (void) const |
Returns Attribute's Value String. | |
OCDM_REF (OCDM_AttributeValue) GetValue(void) const | |
int | GetValueType (void) const |
Returns Attribute's Type. | |
const char * | GetValueValue (void) const |
This function will return the value of the Attribute value of the Attribute object in use. | |
void | ReconstructAttribute (void) const |
This function will construct and return a new Attribute object that will be an exact copy of the provided one. | |
void | ReconstructAttribute (int *type) const |
This function will construct and return a new Attribute object that will be an exact copy of the provided one. | |
const char * | objectType (void) const |
OCDM_Attribute | ( | ) |
OCDM_Attribute | ( | const CDM_Object | obj | ) |
OCDM_Attribute | ( | const class OCDM_Attribute & | obj | ) |
OCDM_Attribute | ( | const char * | name, | |
const OCDM_AttributeValue & | AttrVal | |||
) |
Special attention should be given to the Attribute value object (specified by the "Value" parameter) so as not to leak memory. This function internally will always increase the reference count.
The value of the "Name" parameter will not be modified or referenced in any way, as CDM will create and manipulate a local copy of this value.
name:
The name of the OCDM_Attribute object to be created. Attrval:
The value of the Atribute to be created. OCDM_Attribute | ( | const char * | name, | |
const int | Type, | |||
const char * | Value | |||
) |
name:
The name of the OCDM_Attribute object to be created. Type:
The type of the Attribute Value. Value:
The value to be placed in the Attribute.
class OCDM_Attribute& operator= | ( | const class OCDM_Object & | obj | ) | [virtual] |
obj:
the object to be copied. Reimplemented from OCDM_Object.
const char * GetName | ( | void | ) | const |
const char * GetValueString | ( | void | ) | const |
OCDM_REF | ( | OCDM_AttributeValue | ) | const |
int GetValueType | ( | void | ) | const |
const char * GetValueValue | ( | void | ) | const |
void ReconstructAttribute | ( | void | ) | const |
void ReconstructAttribute | ( | int * | type | ) | const |
const char* objectType | ( | void | ) | const [virtual] |
This method returns the type of the object as a string.
Reimplemented from OCDM_Object.