|
Unicorn XML Toolkit Version 1.00.00 |
|||||||||
� PREV CLASS �� NEXT CLASS | FRAMES��NO FRAMES | |||||||||
SUMMARY: � CONSTR �|� FUNCTION �|�DATA | DETAIL: � CONSTR �|� FUNCTION �|�DATA |
class CInterfaceDef: public CInterface { public: CInterfaceDef(); ~CInterfaceDef(); public: void Create(const CString &strName, CModuleDef *pModule); void AddConstant(const XConstantDef &pConstant); void AddAttribute(const XAttributeDef &pAttribute); void AddOperation(const XOperationDef &pOperation); CString GetName(); CString GetQualifiedName(); int GetConstantCount(); XConstantDef GetConstant(int nIndex); int GetAttributeCount(); XAttributeDef GetAttribute(int nIndex); int GetOperationCount(); XOperationDef GetOperation(int nIndex); };
The definition of an interface in a SOM repository.
CConstantDef, CAttributeDef, COperationDef, CModuleDef
Constructor/Destructor Summary | |
CInterfaceDef
();
����������Constructs the interface definition. |
|
~CInterfaceDef
();
����������Destroys the interface definition. |
Function Summary | |
void
|
Create
(const CString &strName, CModuleDef *pModule);
����������Creates the interface definition. |
void
|
AddConstant
(const XConstantDef &pConstant);
����������Adds a constant definition to the list of constant definitions specified by the interface. |
void
|
AddAttribute
(const XAttributeDef &pAttribute);
����������Adds an attribute definition to the list of attribute definitions specified by the interface. |
void
|
AddOperation
(const XOperationDef &pOperation);
����������Adds an operation definition to the list of operation definitions specified by the interface. |
CString
|
GetName
();
����������Returns a name of the interface |
CString
|
GetQualifiedName
();
����������Returns a qualified name of the interface. |
int
|
GetConstantCount
();
����������Returns a number of constant definitions. |
XConstantDef
|
GetConstant
(int nIndex);
����������Returns a constant definition at the specified index. |
int
|
GetAttributeCount
();
����������Returns a number of attribute definitions. |
XAttributeDef
|
GetAttribute
(int nIndex);
����������Returns an attribute definition at the specified index. |
int
|
GetOperationCount
();
����������Returns a number of operation definitions. |
XOperationDef
|
GetOperation
(int nIndex);
����������Returns an operation definition at the specified index. |
Constructor/Destructor Detail |
CInterfaceDef();
Constructs the interface definition.
~CInterfaceDef();
Destroys the interface definition.
Function Detail |
void Create(const CString &strName, CModuleDef *pModule);
Creates the interface definition.
strName
- the name of the interfacepModule
- the definition of a module
declaring this interfacevoid AddConstant(const XConstantDef &pConstant);
Adds a constant definition to the list of constant definitions specified by the interface.
pConstant
- the constant definition to addvoid AddAttribute(const XAttributeDef &pAttribute);
Adds an attribute definition to the list of attribute definitions specified by the interface.
pAttribute
- the attribute definition to addvoid AddOperation(const XOperationDef &pOperation);
Adds an operation definition to the list of operation definitions specified by the interface.
pOperation
- the operation definition to addCString GetName();
Returns a name of the interface
CString GetQualifiedName();
Returns a qualified name of the interface.
The qualified name has the format
module_name::interface_name
, where
module_name
is the name of the module which
declares the interface, and
interface_name
is the name of the interface.
int GetConstantCount();
Returns a number of constant definitions.
XConstantDef GetConstant(int nIndex);
Returns a constant definition at the specified index.
nIndex
- the index (zero-based)int GetAttributeCount();
Returns a number of attribute definitions.
XAttributeDef GetAttribute(int nIndex);
Returns an attribute definition at the specified index.
nIndex
- the index (zero-based)int GetOperationCount();
Returns a number of operation definitions.
XOperationDef GetOperation(int nIndex);
Returns an operation definition at the specified index.
nIndex
- the index (zero-based)
|
Unicorn XML Toolkit Version 1.00.00 |
|||||||||
� PREV CLASS �� NEXT CLASS | FRAMES��NO FRAMES | |||||||||
SUMMARY: � CONSTR �|� FUNCTION �|�DATA | DETAIL: � CONSTR �|� FUNCTION �|�DATA |