[Enterprise Extensions only]

StringDef::bound

Overview The bound read and write operations allow the access and update of the bound attribute of a bounded string definition (CORBA::StringDef) within the Interface Repository.
Original interface StringDef Interface
Exceptions CORBA::SystemException


Intended Usage

The bound attribute specifies the maximum number of characters in the string, and must not be zero.

IDL Syntax

  attribute unsigned longbound;

Read operations

Input parameters
None.
Return values
CORBA::ULong

The returned value is the current value of the bound attribute of the string definition (CORBA::StringDef) object.

Write operations

Input parameters
CORBA::ULong bound

The bound parameter is the new value to which the bound attribute of the CORBA::StringDef object is set.

Return values
None.

Example

  // C++
    // assume that 'this_string' has already been initialized
    CORBA::StringDef * this_string;
 
    // change the bound attribute of the string definition
    CORBA::ULong new_bound = 409;
    this_string-> bound (new_bound);
 
    // obtain the bound of a string definition
    CORBA::ULong returned_bound;
    returned_bound = this_string-> bound ();