Overview | The defined_in operation returns the Container object of a Contained object. |
Original interface | CORBA module: Contained Interface |
Exceptions | CORBA::SystemException |
Intended Usage
Contained objects have a defined_in attribute that identifies the Container within which they are defined. Objects can be contained either because they are defined within the containing object (for example, an interface is defined within a module) or because they are inherited by the containing object (for example, an operation may be contained by an interface because the interface inherits the operation from another interface). If an object is contained through inheritance, the defined_in attribute identifies the InterfaceDef from which the object is inherited.
The defined_in operation is read-only and returns a pointer to a copy of the Container object identified by the defined_in attribute.
Syntax
readonly attribute Container defined_in;
Input parameters
None
Return values
Example
// C++ // assume the interface_def_ptr has already been initialized CORBA::InterfaceDef * interface_def_ptr; // the following call returns the defined_in Container * for the interface CORBA::Container * defined_in_container; defined_in_container = interface_def_ptr-> defined_in ();