Contained::version

Overview The version read and write operations allow access and update of the version attribute of an Interface Repository Object.
Original interface CORBA module: Contained Interface
Exceptions CORBA::SystemException


Intended Usage

The version attribute distinguishes an object from the other versions. Both Read and Write methods are supported, with parameters listed below.

Syntax

  void version (CORBA::VersionSpec versionspec)
  CORBA::VersionSpec version;

Read operations

Input parameters
none
Return values
CORBA::VersionSpec

The returned value is owned by the caller. It can be freed using CORBA::string_free.

Write operations

Input parameters
CORBA::Versionspec version

The version parameter specifies the new version attribute value for the object.

Return values
none

Example

  // C++
     // assume that this interface has already been initialized.
     CORBA::InterfaceDef * this_interface;
     // change the version of this interface
     this_interface-> version (<<2.0>>);
     // retrieve the version from the interface
     CORBA::VersionSpec returned_version;
     returned_version = this_interface-> version();

Related reference
CORBA module



Searchable topic ID:   rcor_modct7
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_modct7.html

Library | Support | Terms of Use | Feedback