Tracer.h
1//-*-C++-*-
2/***************************************************************************
3 *
4 * Copyright (C) 2004 by Willem van Straten
5 * Licensed under the Academic Free License version 2.1
6 *
7 ***************************************************************************/
8
9// psrchive/More/MEAL/MEAL/Tracer.h
10
11#ifndef __MEAL_Tracer_H
12#define __MEAL_Tracer_H
13
14#include "MEAL/Function.h"
15
16namespace MEAL
17{
19 class Tracer : public Reference::Able
20 {
21
22 public:
23
25 Tracer ();
26
28 ~Tracer ();
29
31 virtual void watch (Function*);
32
33 protected:
34
37
39 virtual void attribute_changed (Function::Attribute attribute);
40
42 virtual void report () = 0;
43
44 };
45
46}
47
48#endif
49
Pure virtual base class of all functions.
Definition Function.h:49
Attribute
Function attributes that require the attention of Composite models.
Definition Function.h:167
virtual void attribute_changed(Function::Attribute attribute)
Method called when a Function attribute has changed.
Definition Tracer.C:45
virtual void report()=0
Method called to report state.
virtual void watch(Function *)
Trace changes in the specified function.
Definition Tracer.C:26
Reference::To< Function > model
The function to watch.
Definition Tracer.h:36
~Tracer()
Destructor.
Definition Tracer.C:17
Tracer()
Default constructor.
Definition Tracer.C:13
Namespace in which all modeling and calibration related code is declared.
Definition ExampleComplex2.h:16

Generated using doxygen 1.14.0