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

#include <tgCPGLogger.h>

Inheritance diagram for tgCPGLogger:
Collaboration diagram for tgCPGLogger:

Public Member Functions

 tgCPGLogger (std::string fileName)
 
virtual ~tgCPGLogger ()
 
virtual void onStep (BaseSpineCPGControl &subject, double dt)
 
virtual void onAttach (BaseSpineCPGControl &subject)
 
virtual void onSetup (BaseSpineCPGControl &subject)
 
virtual void onTeardown (BaseSpineCPGControl &subject)
 

Detailed Description

Interface for an observer of the CPG values

Definition at line 40 of file tgCPGLogger.h.

Constructor & Destructor Documentation

tgCPGLogger::tgCPGLogger ( std::string  fileName)

Constructor

Parameters
in[fileName, the filename where the data is logged

Construct our data logger

Definition at line 37 of file tgCPGLogger.cpp.

tgCPGLogger::~tgCPGLogger ( )
virtual

Virtual base classes must have a virtual destructor.

Definition at line 44 of file tgCPGLogger.cpp.

Member Function Documentation

virtual void tgObserver< BaseSpineCPGControl >::onAttach ( BaseSpineCPGControl subject)
inlinevirtualinherited

Notify the observers when an attach action has occurred. Will only occur once, typically before setup

Parameters
[in,out]subjectthe subject being observed

Definition at line 55 of file tgObserver.h.

virtual void tgObserver< BaseSpineCPGControl >::onSetup ( BaseSpineCPGControl subject)
inlinevirtualinherited

Notify the observers when a setup action has occurred.

Parameters
[in,out]subjectthe subject being observed

Definition at line 61 of file tgObserver.h.

void tgCPGLogger::onStep ( BaseSpineCPGControl subject,
double  dt 
)
virtual

Notify the observers when a step action has occurred.

Parameters
[in,out]subjectthe subject being observed
[in]thenumber of seconds since the previous call; must be positive

Implements tgObserver< BaseSpineCPGControl >.

Definition at line 47 of file tgCPGLogger.cpp.

virtual void tgObserver< BaseSpineCPGControl >::onTeardown ( BaseSpineCPGControl subject)
inlinevirtualinherited

Notify the observers when a teardown action has occurred.

Parameters
[in,out]subjectthe subject being observed

Definition at line 67 of file tgObserver.h.


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