Overview | The create_string operation is used to create a new StringDef to represent a bounded string. |
Original interface | Repository Interface |
Exceptions | CORBA::SystemException |
Intended Usage
The create_string operation returns a new StringDef with the specified bound, that must be non-zero.
Note: Unbounded strings are represented by using the get_primitive operation to create a PrimitiveDef with a kind of CORBA::pk_string.
Syntax
StringDef create_string (in unsigned long bound);
Input parameters
Return values
Example
// C++ // assume that 'repository_ptr' has already been initialized CORBA::Repository * repository_ptr; // create a bounded string with a bound of 51 CORBA::ULong bound_of_string = 51; CORBA::StringDef * string_def_ptr; string_def_ptr = repository_ptr-> create_string (bound_of_string);