![]() |
Overview The type_def operation returns a pointer to an IDLType that is representative of the type of the attribute defined by the AttributeDef. Original interface CORBA module: AttributeDef Interface Exceptions CORBA::SystemException
Intended Usage
The type_def attribute within an AttributeDef references an IDLType that identifies the type of attribute. Both read and write type_def operations are supported, the parameters of which are identified below.
IDL Syntax
attribute IDLType type_def;
Read operations
- Input parameters
- none
- Return values
- CORBA::IDLType_ptr
The returned CORBA::IDLType * is a pointer to a copy of the information referenced by the type_def attribute. The object and the associated memory are owned by the caller and can be released by invoking CORBA::release.
Write operations
- Input parameters
- CORBA::IDLType_ptr type_def
The type_def input parameter identifies the new setting for the type_def attribute.
- Return values
- none
Example
// C++ // assume that 'this_attribute' and 'pk_long_def' // have already been initialized CORBA::AttributeDef * this_attribute; CORBA::PrimitiveDef * pk_long_def; // set the type_def attribute of the AttributeDef // to represent a CORBA::Long this_attribute-> type_def (pk_long_def); // retrieve the type_def attribute from the AttributeDef CORBA::IDLType * attributes_type_def; attributes_type_def = this_attribute-> type_def();
Related reference... | |
CORBA module in Object Request Broker | |
Parent: CORBA module: AttributeDef Interface | |
AttributeDef::describe | |
AttributeDef::mode | |