|
Unicorn XML Toolkit Version 1.00.00 |
|||||||||
� PREV CLASS �� NEXT CLASS | FRAMES��NO FRAMES | |||||||||
SUMMARY: � CONSTR �|� FUNCTION �|�DATA | DETAIL: � CONSTR �|� FUNCTION �|�DATA |
class COperationDef: public CInterface { public: COperationDef(); ~COperationDef(); public: void Create( const CString &strName, int nType, CInterfaceDef *pTypeInterface); void AddParameter(const XParameterDef &pParameter); CString GetName(); int GetType(); CInterfaceDef *GetTypeInterface(); int GetParameterCount(); XParameterDef GetParameter(int nIndex); };
The definition of an operation in a SOM repository.
CParameterDef, CInterfaceDef
Constructor/Destructor Summary | |
COperationDef
();
����������Constructs the operation definition. |
|
~COperationDef
();
����������Destroys the operation definition. |
Function Summary | |
void
|
Create
(const CString &strName, int nType, CInterfaceDef *pTypeInterface);
����������Creates the operation definition. |
void
|
AddParameter
(const XParameterDef &pParameter);
����������Adds a definition of an operation parameter. |
CString
|
GetName
();
����������Returns a name of the operation. |
int
|
GetType
();
����������Returns a type code of the result returned by the operation. |
CInterfaceDef�*
|
GetTypeInterface
();
����������Returns an interface corresponding to the operation result type. |
int
|
GetParameterCount
();
����������Returns the number of parameters of the operation. |
XParameterDef
|
GetParameter
(int nIndex);
����������Returns a parameter definition at the specified index. |
Constructor/Destructor Detail |
COperationDef();
Constructs the operation definition.
~COperationDef();
Destroys the operation definition.
Function Detail |
void Create( const CString &strName, int nType, CInterfaceDef *pTypeInterface);
Creates the operation definition.
strName
- the name of the operationnType
- the type code of the result
returned by the operationpTypeInterface
- if the result is of type interface
(
nType
is
typeInterface
), points
to the appropriate interface definition;
otherwise
NULL
void AddParameter(const XParameterDef &pParameter);
Adds a definition of an operation parameter.
The operation definition owns the list of parameter definitions. The order of parameter definitions in the list is significant. This function adds a parameter definition to the end of the list.
pParameter
- the parameter definitionCString GetName();
Returns a name of the operation.
int GetType();
Returns a type code of the result returned by the operation.
CInterfaceDef *GetTypeInterface();
Returns an interface corresponding to the operation result type.
NULL
if the operation result has type code other than
typeInterface
int GetParameterCount();
Returns the number of parameters of the operation.
XParameterDef GetParameter(int nIndex);
Returns a parameter 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 |