Repository::get_primitive

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

kind
The kind parameter indicates the kind of PrimitiveDef that is to be created. The valid values for kind include CORBA::pk_null, CORBA::pk_void, CORBA::pk_short, CORBA::pk_long, CORBA::pk_ushort, CORBA::pk_ulong, CORBA::pk_float, CORBA::pk_double, CORBA::pk_longlong, CORBA::pk_ulonglong,CORBA::pk_boolean, CORBA::pk_char, CORBA::pk_wchar, CORBA::pk_octet, CORBA::pk_any, CORBA::pk_TypeCode, CORBA::pk_Principal, CORBA::pk_string, CORBA::pk_wstring, and CORBA::pk_objref.

Return values

PrimitiveDef_ptr
The return value is a pointer to the new PrimitiveDef.

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);

Related reference
CORBA module



Searchable topic ID:   rcor_modre5
Last updated: Jun 21, 2007 8:07:48 PM CDT    WebSphere Business Integration Server Foundation, Version 5.0.2
http://publib.boulder.ibm.com/infocenter/wasinfo/index.jsp?topic=/com.ibm.wasee.doc/info/ee/corba/ref/rcor_modre5.html

Library | Support | Terms of Use | Feedback