NTRT Simulator  Version: Master
 All Classes Namespaces Files Functions Variables Typedefs Friends Pages
tgDataObserver Class Reference

#include <tgDataObserver.h>

Public Member Functions

 tgDataObserver (std::string filePrefix)
 
virtual ~tgDataObserver ()
 
virtual void onSetup (tgModel &model)
 
virtual void onStep (tgModel &model, double dt)
 

Detailed Description

A class that dispatches data loggers. Should be included by observers, since they will know when to step this, and we don't have any model specific information here.

Definition at line 42 of file tgDataObserver.h.

Constructor & Destructor Documentation

tgDataObserver::~tgDataObserver ( )
virtual

A class with virtual member functions must have a virtual destructor.

Definition at line 53 of file tgDataObserver.cpp.

Member Function Documentation

void tgDataObserver::onSetup ( tgModel model)
virtual
Todo:
move functions to constructor when possible
Todo:
move functions to constructor when possible

Definition at line 60 of file tgDataObserver.cpp.

Here is the call graph for this function:

void tgDataObserver::onStep ( tgModel model,
double  dt 
)
virtual

Dispatch the visitors to the given model and log data

Parameters
[in]thenumber of seconds since the previous call; must be positive

Definition at line 159 of file tgDataObserver.cpp.

Here is the call graph for this function:


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