Unicorn XML Toolkit
Version 1.00.00

Namespace Som
Class CModuleDef

class CModuleDef: public CInterface {
public:
    CModuleDef();
    ~CModuleDef();
public:
    void Create(const CString &strName);
    void AddInterface(const XInterfaceDef &pInterface);
    CString GetName();
    int GetInterfaceCount();
    XInterfaceDef GetInterface(int nIndex);
    XInterfaceDef FindInterface(const CString &strInterface);
    };

The definition of a module in a SOM repository.

Since:
1.00.00
Version:
1.00.00
Author:
Alexey Gokhberg
See Also:
CInterfaceDef
Constructor/Destructor Summary
CModuleDef ();
����������Constructs the module definition.
~CModuleDef ();
����������Destroys the module definition.

Function Summary
void Create (const CString &strName);
����������Creates the module definition.
void AddInterface (const XInterfaceDef &pInterface);
����������Adds an interface definition to the list of interface definitions specified by the module.
CString GetName ();
����������Returns a name of the module.
int GetInterfaceCount ();
����������Returns a number of interface definitions
XInterfaceDef GetInterface (int nIndex);
����������Returns an interface definition at the specified index.
XInterfaceDef FindInterface (const CString &strInterface);
����������Looks up an interface with the specified name.

Constructor/Destructor Detail

CModuleDef

CModuleDef();

Constructs the module definition.

~CModuleDef

~CModuleDef();

Destroys the module definition.

Function Detail

Create

void Create(const CString &strName);

Creates the module definition.

Parameters:
strName - the name of the module

AddInterface

void AddInterface(const XInterfaceDef &pInterface);

Adds an interface definition to the list of interface definitions specified by the module.

Parameters:
pInterface - an interface definition to add

GetName

CString GetName();

Returns a name of the module.

Returns:
the name of the module

GetInterfaceCount

int GetInterfaceCount();

Returns a number of interface definitions

Returns:
the number of interface definitions

GetInterface

XInterfaceDef GetInterface(int nIndex);

Returns an interface definition at the specified index.

Parameters:
nIndex - the index (zero-based)
Returns:
the interface definition at the specified index

FindInterface

XInterfaceDef FindInterface(const CString &strInterface);

Looks up an interface with the specified name.

Parameters:
strInterface - the name of the interface to look up
Returns:
the interface with the specified name; NULL if none was found

Unicorn XML Toolkit
Version 1.00.00


This document was created using Unicorn DOC++.

Copyright 1999-2001 Unicorn Enterprises SA.
All Rights Reserved.