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
The returned value is owned by the caller. It can be freed using CORBA::string_free.
Write operations
The version parameter specifies the new version attribute value for the object.
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();