#include <feeserver/fee_item.hh>
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 &) | |
Item & | operator= (const Item &) |
Protected Attributes | |
ServiceBase & | _service |
DimService * | _dim_service |
FeeServer::Item::Item | ( | const std::string & | server, | |
ServiceBase & | service | |||
) |
Constructor
server | Server name | |
service | Underlying service |
FeeServer::Item::~Item | ( | ) | [virtual] |
Destructor
FeeServer::Item::Item | ( | const Item & | ) | [protected] |
Not implemented
const std::string & FeeServer::Item::Name | ( | ) | const |
bool FeeServer::Item::Update | ( | bool | force = false |
) |
Update the DIM service if the underlying service is changed, or if the force flag is true
.
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
ServiceBase& FeeServer::Item::_service [protected] |
Reference to service
DimService* FeeServer::Item::_dim_service [protected] |
Our DIM service