This module contains functions for managing the Interface
Repository (IFR). This documentation should be used in conjunction
with the documentation in chapter 6 of
The following functions are used to initialize the Interface Repository and to obtain the initial reference to the repository.
This function should be called to initialize the IFR. It creates the necessary mnesia-tables. A mnesia schema should exist, and mnesia must be running.
Find the IFR object reference for the Repository. This reference should be used when adding objects to the IFR, and when extracting information from the IFR. The first time this function is called, it will create the repository and all the primitive definitions.
The following functions are the methods of the IFR. The first argument is always an #IFR_objref, i.e. the IFR (pseudo)object on which to apply this method. These functions are useful when the type of IFR object is not know, but they are somewhat slower than the specific functions listed below which only accept a particular type of IFR object as the first argument.
Objref is an IFR object of any kind. Returns the definition kind of the IFR object.
Objref is an IFR object of any kind except IRObject, Contained and Container. Destroys that object and its contents (if any). Returns whatever mnesia:transaction returns.
Objref is an IFR object of any kind that inherits from Contained. Returns the repository id of that object.
Objref is an IFR object of any kind that inherits from Contained. Sets the repository id of that object.
Objref is an IFR object of any kind that inherits from Contained. Returns the name of that object.
Objref is an IFR object of any kind that inherits from Contained. Sets the name of that object.
Objref is an IFR object of any kind that inherits from Contained. Returns the version of that object.
Objref is an IFR object of any kind that inherits from Contained. Sets the version of that object.
Objref is an IFR object of any kind that inherits from Contained. Returns the Container object that the object is defined in.
Objref is an IFR object of any kind that inherits from Contained. Returns the absolute (scoped) name of that object.
Objref is an IFR object of any kind that inherits from Contained. Returns the Repository that is eventually reached by recursively following the object's defined_in attribute.
Objref is an IFR object of any kind that inherits from Contained. Returns a tuple describing the object.
Objref is an IFR object of any kind that inherits from Contained. New_container is an IFR object of any kind that inherits from Container. Removes Objref from its current Container, and adds it to New_container. The name attribute is changed to New_name and the version attribute is changed to New_version.
Objref is an IFR object of any kind that inherits from Container. Returns an IFR object identified by search_name (a scoped name).
Objref is an IFR object of any kind that inherits from Container. Returns the contents of that IFR object.
Objref is an IFR object of any kind that inherits from Container. Returns a list of #IFR_objects with an id matching Search_name.
Objref is an IFR object of any kind that inherits from Container. Returns a list of descriptions of the IFR objects in this Container's contents.
Objref is an IFR object of any kind that inherits from Container. Creates an IFR object of the type ModuleDef.
Objref is an IFR object of any kind that inherits from Container. Creates an IFR object of the type ConstantDef.
Objref is an IFR object of any kind that inherits from Container. Creates an IFR object of the type StructDef.
Objref is an IFR object of any kind that inherits from Container. Creates an IFR object of the type UnionDef.
Objref is an IFR object of any kind that inherits from Container. Creates an IFR object of the type EnumDef.
Objref is an IFR object of any kind that inherits from Container. Creates an IFR object of the type AliasDef.
Objref is an IFR object of any kind that inherits from Container. Creates an IFR object of the type InterfaceDef.
Objref is an IFR object of any kind that inherits from Container. Creates an IFR object of the type ExceptionDef.
Objref is an IFR object of any kind that inherits from IDLType or an IFR object of the kind ConstantDef, ExceptionDef or AttributeDef. Returns the typecode of the IFR object.
Returns an IFR object matching the Search_id.
Returns a PrimitiveDef of the specified kind.
Creates an IFR objref of the type StringDef.
Creates an IFR objref of the type WstringDef.
Creates an IFR objref of the type FixedDef.
Creates an IFR objref of the type SequenceDef.
Creates an IFR objref of the type ArrayDef.
Creates an IFR objref of the type IDLType.
Objref is an IFR object of the kind ConstantDef or AttributeDef. Returns an IFR object of the type IDLType describing the type of the IFR object.
Objref is an IFR object of the kind ConstantDef or AttributeDef. Sets the type_def of the IFR Object.
Returns the value attribute of an IFR Object of the type ConstantDef.
Sets the value attribute of an IFR Object of the type ConstantDef.
Objref is an IFR object the kind StructDef, UnionDef, EnumDef or ExceptionDef. For StructDef, UnionDef and ExceptionDef: Returns a list of structmember records that are the constituent parts of the object. For EnumDef: Returns a list of strings describing the enumerations.
Objref is an IFR object the kind StructDef, UnionDef, EnumDef or ExceptionDef. For StructDef, UnionDef and ExceptionDef: Members is a list of structmember records. For EnumDef: Members is a list of strings describing the enumerations. Sets the members attribute, which are the constituent parts of the exception.
Returns the discriminator typecode of an IFR object of the type UnionDef.
Returns an IFR object of the type IDLType describing the discriminator type of an IFR object of the type UnionDef.
Sets the attribute discriminator_type_def, an IFR object of the type IDLType describing the discriminator type of an IFR object of the type UnionDef.
Returns an IFR object of the type IDLType describing the original type.
Sets the original_type_def attribute which describes the original type.
Returns an atom describing the primitive type (See CORBA 2.0 p 6-21).
Objref is an IFR object the kind StringDef or SequenceDef. For StringDef: returns the maximum number of characters in the string. For SequenceDef: Returns the maximum number of elements in the sequence. Zero indicates an unbounded sequence.
Objref is an IFR object the kind StringDef or SequenceDef. For StringDef: Sets the maximum number of characters in the string. Bound must not be zero. For SequenceDef: Sets the maximum number of elements in the sequence. Zero indicates an unbounded sequence.
Objref is an IFR object the kind SequenceDef or ArrayDef. Returns the typecode of the elements in the IFR object.
Objref is an IFR object the kind SequenceDef or ArrayDef. Returns an IFR object of the type IDLType describing the type of the elements in Objref.
Objref is an IFR object the kind SequenceDef or ArrayDef. Sets the element_type_def attribute, an IFR object of the type IDLType describing the type of the elements in Objref.
Returns the number of elements in the array.
Sets the number of elements in the array.
Objref is an IFR object the kind AttributeDef or OperationDef. For AttributeDef: Return is an atom ('ATTR_NORMAL' or 'ATTR_READONLY') specifying the read/write access for this attribute. For OperationDef: Return is an atom ('OP_NORMAL' or 'OP_ONEWAY') specifying the mode of the operation.
Objref is an IFR object the kind AttributeDef or OperationDef. For AttributeDef: Sets the read/write access for this attribute. Mode is an atom ('ATTR_NORMAL' or 'ATTR_READONLY'). For OperationDef: Sets the mode of the operation. Mode is an atom ('OP_NORMAL' or 'OP_ONEWAY').
Returns a typecode describing the type of the value returned by the operation.
Returns an IFR object of the type IDLType describing the type of the result.
Sets the type_def attribute, an IFR Object of the type IDLType describing the result.
Returns a list of parameter description records, which describes the parameters of the OperationDef.
Sets the params attribute, a list of parameter description records.
Returns a list of context identifiers for the operation.
Sets the context attribute for the operation.
Returns a list of exception types that can be raised by this operation.
Sets the exceptions attribute for this operation.
Returns a list of InterfaceDefs from which this InterfaceDef inherits.
Sets the BaseInterfaces attribute.
Returns true if the InterfaceDef either is identical to or inherits from Interface_id.
Returns a full inter face description record describing the InterfaceDef.
Creates an IFR object of the type AttributeDef contained in this InterfaceDef.
Creates an IFR object of the type OperationDef contained in this InterfaceDef.