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.

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 ();
 
    

Related reference
CORBA module



Searchable topic ID:   rcor_modst1
Last updated: Jun 21, 2007 8:07:48 PM CDT    WebSphere Business Integration Server Foundation, Version 5.0.2
http://publib.boulder.ibm.com/infocenter/wasinfo/index.jsp?topic=/com.ibm.wasee.doc/info/ee/corba/ref/rcor_modst1.html

Library | Support | Terms of Use | Feedback