FeeServer::ServiceT< T, Trait > Class Template Reference
[Services]

#include <feeserver/fee_servt.hh>

Inheritance diagram for FeeServer::ServiceT< T, Trait >:

Inheritance graph
[legend]
Collaboration diagram for FeeServer::ServiceT< T, Trait >:

Collaboration graph
[legend]

List of all members.


Detailed Description

template<typename T, typename Trait>
class FeeServer::ServiceT< T, Trait >

Class template for simple type services.

Parameters:
T Type of the value to serve
Trait Traits of type T (
See also:
FloatTrait

IntTrait)

Examples:

test_server.cc.


Public Member Functions

 ServiceT (const std::string &name)
virtual ~ServiceT ()
const char * Format () const
size_t Size () const
void * Address ()
void Clear ()
ServiceToperator= (const T &v)
bool Consistency ()
const T & Value () const

Protected Member Functions

unsigned int CheckSum (const T &v) const

Protected Attributes

_value
_old
unsigned int _check_sum
unsigned int _old_check_sum

Constructor & Destructor Documentation

template<typename T, typename Trait>
FeeServer::ServiceT< T, Trait >::ServiceT ( const std::string &  name  )  [inline]

Constructor

template<typename T, typename Trait>
virtual FeeServer::ServiceT< T, Trait >::~ServiceT (  )  [inline, virtual]

Destructor


Member Function Documentation

template<typename T, typename Trait>
const char* FeeServer::ServiceT< T, Trait >::Format (  )  const [inline, virtual]

Get format string used for DIM service declaration

Reimplemented from FeeServer::ServiceBase.

template<typename T, typename Trait>
size_t FeeServer::ServiceT< T, Trait >::Size (  )  const [inline, virtual]

Size of the data

Reimplemented from FeeServer::ServiceBase.

template<typename T, typename Trait>
void* FeeServer::ServiceT< T, Trait >::Address (  )  [inline, virtual]

Get the address of the data served

Reimplemented from FeeServer::ServiceBase.

template<typename T, typename Trait>
void FeeServer::ServiceT< T, Trait >::Clear (  )  [inline, virtual]

Clear updated mark, and assign old to current value

Reimplemented from FeeServer::ServiceBase.

template<typename T, typename Trait>
ServiceT& FeeServer::ServiceT< T, Trait >::operator= ( const T &  v  )  [inline]

Assign from value

template<typename T, typename Trait>
bool FeeServer::ServiceT< T, Trait >::Consistency (  )  [inline, virtual]

Check that data is consistent

Reimplemented from FeeServer::ServiceBase.

template<typename T, typename Trait>
const T& FeeServer::ServiceT< T, Trait >::Value (  )  const [inline]

Get reference to the value

template<typename T, typename Trait>
unsigned int FeeServer::ServiceT< T, Trait >::CheckSum ( const T &  v  )  const [inline, protected]

Calculate the check sum of v


Member Data Documentation

template<typename T, typename Trait>
T FeeServer::ServiceT< T, Trait >::_value [protected]

Current value

template<typename T, typename Trait>
T FeeServer::ServiceT< T, Trait >::_old [protected]

Old value

template<typename T, typename Trait>
unsigned int FeeServer::ServiceT< T, Trait >::_check_sum [protected]

Check sum of value

template<typename T, typename Trait>
unsigned int FeeServer::ServiceT< T, Trait >::_old_check_sum [protected]

Check sum of old value


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

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