Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Class Members

ztt::dcs::FeeItemInfo Class Reference

#include <FeeItemInfo.hpp>

Inheritance diagram for ztt::dcs::FeeItemInfo:

ztt::dcs::FeeInfo List of all members.

Detailed Description

Class, to subscribe and get access to the FEE - Item - service. It inheritates from FeeInfo to get the DimInfo features, and to enable a polymorph access to the service data. Create objects of FeeItemInfo to get a connection to a given FEE Item on the server. The value is also updated after a certain timeout.

See also:
FeeInfo for more details
Author:
Christian Kofler, Sebastian Bablok
Date:
2003-08-27


Public Member Functions

 FeeItemInfo (char *name, float noLink, DimInfoHandler *pHandler)
 !!this constructor causes errors on DCS-Board when using DIM-Timer!!!

virtual ~FeeItemInfo ()
virtual bool retrieveServiceValue ()
virtual void initialize ()
float & getRefFloatValue ()
void setCorrespondingFedService (boost::shared_ptr< DimService > pService)
void setFeeGroupChannel (boost::shared_ptr< FeeGroupedChannel > groupedChannel)

Public Attributes

char * name


Constructor & Destructor Documentation

ztt::dcs::FeeItemInfo::FeeItemInfo char *  name,
float  noLink,
DimInfoHandler *  pHandler
[inline]
 

!!this constructor causes errors on DCS-Board when using DIM-Timer!!!

Constructor for the FeeItemInfo, without service request after time intervals. This constructor calls implictly the FeeInfo - constructor and with that the DimInfo constructor, so you subsrcibe to the inserted FEE - Item - Service (name).

Parameters:
name name of the service, to subscribe to
noLink value to be shown, when no connection to this service is available
pHandler pointer to the DimInfoHandler

virtual ztt::dcs::FeeItemInfo::~FeeItemInfo  )  [inline, virtual]
 

Destructor for the FeeItemInfo objects


Member Function Documentation

float & ztt::dcs::FeeItemInfo::getRefFloatValue  )  [inline]
 

Getter for the reference to the service value.

Returns:
reference to the current value of this service

virtual void ztt::dcs::FeeItemInfo::initialize  )  [virtual]
 

Function to set the initial value of this ItemInfo. A possible "No link" at start up can be determined this way. This function should be called once after constructing this object.

Implements ztt::dcs::FeeInfo.

virtual bool ztt::dcs::FeeItemInfo::retrieveServiceValue  )  [virtual]
 

Function, to be executed when new data from the FEE - Item - Service is available. It retrieves the data of the FeeServer from the DIM framework. It stores the value in the object itself. To get the value the the getValue function.

Returns:
true, if service is available, false in case of "no link"

Implements ztt::dcs::FeeInfo.

void ztt::dcs::FeeItemInfo::setCorrespondingFedService boost::shared_ptr< DimService >  pService  )  [inline]
 

Sets the pointer to the corresponding Service on the FED-Server.

Parameters:
pService pointer to the corresponding Service.


Member Data Documentation

char* ztt::dcs::FeeItemInfo::name
 

name store the service name of each server. Is used to assign the services of a server to a broadcastchannel. Used in FedServer


The documentation for this class was generated from the following file:
Generated on Fri Mar 30 02:54:34 2007 for InterComLayer by doxygen 1.3.5