Overview | The get_primitive operation is used to get a PrimitiveDef object with the specified kind attribute. |
Original interface | Repository Interface |
Exceptions | CORBA::SystemException |
Intended Usage
The get_primitive operation returns a reference to a PrimitiveDef with the specified kind attribute. All PrimitiveDefs are immutable and owned by the Repository.
Syntax
PrimitiveDef get_primitive (in PrimitiveKind kind);
Input parameters
Return values
Example
// C++ // assume 'repository_ptr' has already been initialized CORBA::Repository * repository_ptr; // create a PrimitiveDef to represent a CORBA::Long data type CORBA::PrimitiveDef * pk_long_def; pk_long_def = repository_ptr-> get_primitive (CORBA::pk_long);