[Previous] [Contents] [Next] [IONA Technologies]


Repository


Contents

Repository::describe_contents()
Repository::lookup_id()
Repository::loadIDLAll()
Repository::loadIDLFile()



Synopsis:

The interface Repository inherits from interface Container and provides global access to the Interface Repository. It can be used to look up any definition (either defined in the global name space or within an interface or module) by name or id.

A reference to a Repository object can be found by binding to it as follows:

CORBA:

Notes:

CORBA defined.

See Also:



Repository::describe_contents()


Synopsis:

The operation describe_contents() is inherited from interface Container. It returns a sequence of Container::Description structures; one such structure for each top level item in the repository. The structure is defined as:

Each structure has the following members:

     contained_object
    
The object reference, of type Contained, of the contained top level object. The describe() function can be called on an object reference, of type Contained, to get further information on a top level item. (The contained_object member of the Container::Description structure is related to the RepositoryId id member of the RepositoryDescription structure: the former is returned by passing the latter as a parameter to a call to lookup_id() on the repository.)

     name
    
The name "RepositoryDescription".

     value
    
A description, of type any, of the top level object. The TypeCode of the any will be a _tc_RepositoryDescription. The value of the any will be a pointer to a structure of type:

     // IDL
     struct RepositoryDescription {
     	Identifier name;
     	RepositoryId id;
     	RepositoryId defined_in;
     };
    

Notes:

CORBA defined.

See Also:



Repository::lookup_id()


Synopsis:

Description:

Returns a Contained object (module, interface, typedef and so on) given its RepositoryId.

Notes:

CORBA defined.



Repository::loadIDLAll()


Synopsis:

Description:

Requests the IR to load all files from the IR data directory. Note that the Interface Repository will load a file only once; attempts to re-load a file will be ignored.

Notes:

Orbix specific.

See Also:



Repository::loadIDLFile()


Synopsis:

Description:

Requests the IR to load the file specified in fileName from the IR data directory. Note that the Interface Repository will load a file only once; attempts to re-load a file will be ignored.

Exceptions:

Raises the exception invalidLoad if fileName does not exist.

Notes:

Orbix specific.

See Also:



[Roadmap] [Utilities] [Compiling] [Configuration]
[Class Reference] [IR Reference] [Daemon Reference] [IDL Grammar] [System Exceptions]
[Index]