![]() |
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.
IDL 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();