|
Unicorn XML Toolkit Version 1.00.00 |
|||||||||
� PREV CLASS �� NEXT CLASS | FRAMES��NO FRAMES | |||||||||
SUMMARY: � CONSTR �|� FUNCTION �|�DATA | DETAIL: � CONSTR �|� FUNCTION �|�DATA |
class CAttributeDef: public CInterface { public: CAttributeDef(); ~CAttributeDef(); public: void Create( const CString &strName, int nType, CInterfaceDef *pTypeInterface, bool bReadonly); CString GetName(); int GetType(); CInterfaceDef *GetTypeInterface(); bool IsReadonly(); };
The definition of an attribute in a SOM repository.
CInterfaceDef
Constructor/Destructor Summary | |
CAttributeDef
();
����������Constructs the attribute definition. |
|
~CAttributeDef
();
����������Destroys the attribute definition. |
Function Summary | |
void
|
Create
(const CString &strName, int nType, CInterfaceDef *pTypeInterface, bool bReadonly);
����������Creates the attribute definition. |
CString
|
GetName
();
����������Returns a name of the attribute. |
int
|
GetType
();
����������Returns a type code of the attribute. |
CInterfaceDef�*
|
GetTypeInterface
();
����������Returns an interface corresponding to the attribute type. |
bool
|
IsReadonly
();
����������Returns a read-only indicator of the attribute. |
Constructor/Destructor Detail |
CAttributeDef();
Constructs the attribute definition.
~CAttributeDef();
Destroys the attribute definition.
Function Detail |
void Create( const CString &strName, int nType, CInterfaceDef *pTypeInterface, bool bReadonly);
Creates the attribute definition.
strName
- the name of the attributenType
- the type code of the attributepTypeInterface
- if the attribute is of type interface
(
nType
is
typeInterface
), points
to the appropriate interface definition;
otherwise
NULL
bReadonly
-
true
if the attribute
is read-only;
false
otherwiseCString GetName();
Returns a name of the attribute.
int GetType();
Returns a type code of the attribute.
CInterfaceDef *GetTypeInterface();
Returns an interface corresponding to the attribute type.
NULL
if the attribute has type code other than
typeInterface
bool IsReadonly();
Returns a read-only indicator of the attribute.
true
if the attribute is read-only;
false
otherwise
|
Unicorn XML Toolkit Version 1.00.00 |
|||||||||
� PREV CLASS �� NEXT CLASS | FRAMES��NO FRAMES | |||||||||
SUMMARY: � CONSTR �|� FUNCTION �|�DATA | DETAIL: � CONSTR �|� FUNCTION �|�DATA |