OSB_CORBA::DeviceWriter_i Class Reference

Inheritance diagram for OSB_CORBA::DeviceWriter_i:

Inheritance graph
[legend]
Collaboration diagram for OSB_CORBA::DeviceWriter_i:

Collaboration graph
[legend]
List of all members.

Detailed Description

Servant for CORBA interface DeviceWriter.

Definition at line 59 of file device_i.h.

Public Member Functions

Static Public Attributes

Protected Member Functions


Constructor & Destructor Documentation

OSB_CORBA::DeviceWriter_i::DeviceWriter_i ( OSB_LIB::Device::Oid  dvcId,
Locators srvtLoc 
)

Constructor with object id, access to POA and servant locator and the controlling servant.


Member Function Documentation

virtual OSB_LIB::Device& OSB_CORBA::DeviceWriter_i::device (  )  [protected, pure virtual]

Write access to the device.

Implemented in OSB_CORBA::UimCardWriter_i.

virtual bool OSB_CORBA::DeviceWriter_i::maintainList ( bool  isNew  )  const [protected, pure virtual]

Store the device in the appropriate device list.

Parameters:
isNew Flag if the device was just created (true) or updated (false).
Returns:
true if successful, else false.
The standard implementation of the function just replaces the device in the list:
          bool UimCardWriter_i::maintainList(
              bool // not used: isNew
          ) const
          {
              return drmgr_.replaceUim(uim_);
          }

Implemented in OSB_CORBA::UimCardWriter_i.

void OSB_CORBA::DeviceWriter_i::setPool ( const corba::imgmt::PoolId &  poolId  )  throw (OsbCorbaException)

Set the inventory pool.

Parameters:
poolId The new inventory pool of the device.
Exceptions:
OsbCorbaException if changing to pool is not allowed: currently none.
Callers must use updData() to save the change.

void OSB_CORBA::DeviceWriter_i::setStatus ( DeviceStatus  newStatus  )  throw (OsbCorbaException)

Set the device status.

Parameters:
newStatus New status of the device.
Exceptions:
OsbCorbaException if the current status is assigned.
OsbCorbaException if newStatus is assigned or quarantine.
Callers must use updStatus() to save the changed status.

void OSB_CORBA::DeviceWriter_i::updData ( bool  noWait  )  throw (OsbCorbaException)

Update the device data to the database.

Parameters:
noWait Don't wait if locked by another session?
Exceptions:
OsbCorbaException if the update of the device data to the dabase fails.
Note:
The function does not destroy the servant, callers should call destroy() once it is no more needed.

void OSB_CORBA::DeviceWriter_i::updStatus ( bool  noWait  )  throw (OsbCorbaException)

Update the device status to the database.

Parameters:
noWait Don't wait if locked by another session?
Exceptions:
OsbCorbaException if the update of the device status to the dabase fails.
Note:
The function does not destroy the servant, callers should call destroy() once it is no more needed.


Member Data Documentation

const std::string OSB_CORBA::DeviceWriter_i::IFC [static]

Name of the interface.

Reimplemented from OSB_CORBA::Device_i.

Reimplemented in OSB_CORBA::UimCardWriter_i.

Definition at line 65 of file device_i.h.


The documentation for this class was generated from the following file:
Generated on Sat Sep 2 14:27:52 2006 for OSB Library by  doxygen 1.4.7