NTRT Simulator
Version: Master
|
#include <tgCPGJSONLogger.h>
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) |
Interface for an observer of the CPG values
Definition at line 40 of file tgCPGJSONLogger.h.
tgCPGJSONLogger::tgCPGJSONLogger | ( | std::string | fileName | ) |
Constructor
in[ | fileName, the filename where the data is logged |
Construct our data logger
Definition at line 37 of file tgCPGJSONLogger.cpp.
|
virtual |
Virtual base classes must have a virtual destructor.
Definition at line 44 of file tgCPGJSONLogger.cpp.
|
inlinevirtualinherited |
Notify the observers when an attach action has occurred. Will only occur once, typically before setup
[in,out] | subject | the subject being observed |
Definition at line 55 of file tgObserver.h.
|
inlinevirtualinherited |
Notify the observers when a setup action has occurred.
[in,out] | subject | the subject being observed |
Definition at line 61 of file tgObserver.h.
|
virtual |
Notify the observers when a step action has occurred.
[in,out] | subject | the subject being observed |
[in] | the | number of seconds since the previous call; must be positive |
Implements tgObserver< JSONCPGControl >.
Definition at line 47 of file tgCPGJSONLogger.cpp.
|
inlinevirtualinherited |
Notify the observers when a teardown action has occurred.
[in,out] | subject | the subject being observed |
Definition at line 67 of file tgObserver.h.