Unicorn XML Toolkit
Version 1.00.00

Namespace Som
Class CRepository

class CRepository: public CInterface {
public:
    CRepository();
    ~CRepository();
public:
    void AddModule(const XModuleDef &pModule);
    int GetModuleCount();
    XModuleDef GetModule(int nIndex);
    XInterfaceDef FindInterface(
        const CString &strModule,
        const CString &strInterface);
    };

The SOM repository.

The SOM repository is a data structure which contains definitions of SOM modules, interfaces, constants, attributes, and operations. Usually applications create repositories by parsing one or more SOM IDL files.

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

Function Summary
void AddModule (const XModuleDef &pModule);
����������Adds a module definition to the list of modules owned by this repository.
int GetModuleCount ();
����������Returns a number of modules.
XModuleDef GetModule (int nIndex);
����������Returns a module definition at the specified index.
XInterfaceDef FindInterface (const CString &strModule, const CString &strInterface);
����������Looks up an inteface with the specified module and interface name.

Constructor/Destructor Detail

CRepository

CRepository();

Constructs the repository.

~CRepository

~CRepository();

Destroys the repository.

Function Detail

AddModule

void AddModule(const XModuleDef &pModule);

Adds a module definition to the list of modules owned by this repository.

Parameters:
pModule - the module defintion to add

GetModuleCount

int GetModuleCount();

Returns a number of modules.

Returns:
the number of modules

GetModule

XModuleDef GetModule(int nIndex);

Returns a module definition at the specified index.

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

FindInterface

XInterfaceDef FindInterface(
    const CString &strModule,
    const CString &strInterface);

Looks up an inteface with the specified module and interface name.

Parameters:
strModule - the module name
strInterface - the interface name
Returns:
the interface with the specified module and interface 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.