FeeServer::Item Class Reference
[Services]

#include <feeserver/fee_item.hh>

Collaboration diagram for FeeServer::Item:

Collaboration graph
[legend]

List of all members.


Detailed Description

Service item. This class ties a ServiceBase object to a DIM service object. This is a class used only internally to the fee server core .

Public Member Functions

 Item (const std::string &server, ServiceBase &service)
virtual ~Item ()
const std::string & Name () const
bool Update (bool force=false)
void SetDeadband (float v)
float GetDeadband () const

Protected Member Functions

 Item (const Item &)
Itemoperator= (const Item &)

Protected Attributes

ServiceBase_service
DimService * _dim_service

Constructor & Destructor Documentation

FeeServer::Item::Item ( const std::string &  server,
ServiceBase service 
)

Constructor

Parameters:
server Server name
service Underlying service

FeeServer::Item::~Item (  )  [virtual]

Destructor

FeeServer::Item::Item ( const Item  )  [protected]

Not implemented


Member Function Documentation

const std::string & FeeServer::Item::Name (  )  const

Returns:
Name of the service

bool FeeServer::Item::Update ( bool  force = false  ) 

Update the DIM service if the underlying service is changed, or if the force flag is true.

Returns:
true in case of success, false otherwise

if (!force || !_service.Updated()) return true;

void FeeServer::Item::SetDeadband ( float  v  ) 

Set the dead-band

float FeeServer::Item::GetDeadband (  )  const

Get the dead-band

Item& FeeServer::Item::operator= ( const Item  )  [protected]

Not implemented


Member Data Documentation

Reference to service

DimService* FeeServer::Item::_dim_service [protected]

Our DIM service


The documentation for this class was generated from the following files:

Generated on Thu Jun 26 17:02:30 2008 for FeeServer++ 0.9 by  doxygen 1.5.6