Overview | The bound read and write operation provide the means to access and update the bound attribute of a sequence definition (CORBA::SequenceDef) within the Interface Repository. |
Original interface | SequenceDef Interface |
Exceptions | CORBA::SystemException |
Intended Usage
The bound attribute specifies the maximum number of elements in the sequence. A bound of zero indicates an unbounded sequence. Read and write bound operations are supported with parameters as defined below.
Syntax
attribute unsigned longbound;
Read operations
The returned value is the current value of the bound attribute of the sequence definition (CORBA::SequenceDef) object.
Write operations
The bound parameter is the new value to which the bound attribute of the CORBA::SequenceDef object is set.
Example
// C++ // assume that 'this_sequence' has already been initialized CORBA::SequenceDef * this_sequence; // change the bound attribute of the sequence definition CORBA::ULong new_bound = 409; this_sequence-> bound (new_bound); // obtain the bound of a sequence definition CORBA::ULong returned_bound; returned_bound = this_sequence-> bound ();