Overview | The type operation retrieves a TypeCode pointer representative of specific Interface Repository objects. |
Original interface | CORBA module: IDLType Interface |
Exceptions | CORBA::SystemException |
Intended Usage
The type attribute (a TypeCode *) describes all objects derived from IDLType. The type read operation retrieves a pointer to a copy of the type attribute. Object types that inherit from IDLType and therefore support the type read operation are ArrayDef, SequenceDef, StringDef, WstringDef, PrimitiveDef, UnionDef, StructDef, AliasDef, EnumDef, and InterfaceDef.
There are other Interface Repository objects that do not inherit from IDLType that also have a type method that returns a TypeCode * representative of the specific object. The Interface Repository interfaces that have their own type method include: ConstantDef, ExceptionDef, and AttributeDef.
Syntax
readonly attribute TypeCode type;
Input parameters
None.
Return values
Example
// C++ // assume that 'union_1' has already been initialized CORBA::UnionDef * union_1; // retrieve the TypeCode information which represents 'union_1' . . . CORBA::TypeCode * typecode_ptr; typecode_ptr = union_1-> type();