![]() |
Overview The bound read and write operations allow the access and update of the bound attribute of a bounded string definition (CORBA::WstringDef) within the Interface Repository. Original interface WstringDef 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 is the current value of the bound attribute of the string definition (CORBA::WstringDef) object.
Write operations
- Input parameters
- CORBA::ULong bound
The bound parameter is the new value to which the bound attribute of the CORBA::WstringDef object is set.
- Return values
- None.
Example
// C++ // assume that 'this_string' has already been initialized CORBA::WstringDef * this_wstring; // 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_wstring-> bound ();
Related reference... | |
CORBA module in Object Request Broker | |
Parent: CORBA module: WstringDef Interface | |