SourceForge.net Logo

DAQpp::ParameterObserver< T, C > Class Template Reference

This class is a sort of bridge between a parameter Observer and your class having the Parameter. More...

#include <Parameter.h>

Inheritance diagram for DAQpp::ParameterObserver< T, C >:

Inheritance graph
[legend]
Collaboration diagram for DAQpp::ParameterObserver< T, C >:

Collaboration graph
[legend]

List of all members.

Public Types

typedef void(C::* method_type )(const T &)

Public Member Functions

 ParameterObserver (C *m, void(C::*f)(const T &), DAQpp::Par< T > *p=0)
void set_par (DAQpp::Par< T > *p)
const C * get_module () const
void update (Observable *o, Argument *arg)
 virtual function to connect to an Observable

Private Attributes

C * module
void(C::* func )(const T &)
DAQpp::Par< T > * par


Detailed Description

template<typename T, typename C>
class DAQpp::ParameterObserver< T, C >

This class is a sort of bridge between a parameter Observer and your class having the Parameter.

The class is an observer of a given parameter that will call a given method of your class when the parameter changed. That method should only accept one argument, which is the new value of the Parameter.


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

Generated on Mon Apr 21 10:00:04 2008 for DAQ++ by  doxygen 1.5.5