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

#include <tgCPGJSONLogger.h>

Inheritance diagram for tgCPGJSONLogger:
Collaboration diagram for tgCPGJSONLogger:

Public Member Functions

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

Detailed Description

Interface for an observer of the CPG values

Definition at line 40 of file tgCPGJSONLogger.h.

Constructor & Destructor Documentation

tgCPGJSONLogger::tgCPGJSONLogger ( std::string  fileName)

Constructor

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

Construct our data logger

Definition at line 37 of file tgCPGJSONLogger.cpp.

tgCPGJSONLogger::~tgCPGJSONLogger ( )
virtual

Virtual base classes must have a virtual destructor.

Definition at line 44 of file tgCPGJSONLogger.cpp.

Member Function Documentation

virtual void tgObserver< JSONCPGControl >::onAttach ( JSONCPGControl 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< JSONCPGControl >::onSetup ( JSONCPGControl 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 tgCPGJSONLogger::onStep ( JSONCPGControl 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< JSONCPGControl >.

Definition at line 47 of file tgCPGJSONLogger.cpp.

virtual void tgObserver< JSONCPGControl >::onTeardown ( JSONCPGControl 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: