26 #include "tgCPGJSONLogger.h"
52 std::ofstream tgOutput;
53 tgOutput.open(m_fileName.c_str(), std::ios::app);
55 tgOutput << time <<
",";
65 tgOutput << subject.getCPGValue(i) <<
",";
68 catch (std::invalid_argument e)
71 tgOutput << std::endl;
An adaptation of JSONCPGControl that utilizes JSON for parameters.
tgCPGJSONLogger(std::string fileName)
virtual ~tgCPGJSONLogger()
virtual void onStep(JSONCPGControl &subject, double dt)