Overview | The create_array operation is used to create a new array definition (ArrayDef). |
Original interface | Repository Interface |
Exceptions | CORBA::SystemException |
Intended Usage
The create_array operation returns a new ArrayDef with the specified length and element_type.
Syntax
ArrayDef create_array ( in unsigned long length, in IDLType element_type );
Input parameters
Return values
Example
// C++ // create_array // assume that 'repository_ptr' and 'struct_1' // have already been initialized CORBA::Repository * repository_ptr; CORBA::StructDef * struct_1; // create an array definition with a bound of 409 // and array element type of 'struct_1" CORBA::ArrayDef * array_def_ptr; CORBA::ULong array_length = 409; array_def_ptr = repository_ptr-> create_array (array_length, struct_1);