Marine systems simulation
CCSVSink.h
1#ifndef _CCSVSink_H
2#define _CCSVSink_H
3
57#include <SimObject.h>
58#include <fstream>
59#include <string>
60
61class CSVSink : public SimObject
62{
63 public:
65 CSVSink(std::string sSimObjectName, ISimObjectCreator* pCreator);
66 ~CSVSink();
67
69 void OdeFcn(const double dT, const double* const adX, double* const adXDot, const bool bIsMajorTimeStep);
70 void FinalSetup(const double T, const double* const X, ISimObjectCreator* const creator);
71
72#ifdef FH_VISUALIZATION
74 virtual void RenderInit(Ogre::Root* const ogreRoot, ISimObjectCreator* const creator) { }
75
77 virtual void RenderUpdate(const double T, const double* const X) { }
78#endif
79
80 protected:
81 ISignalPort* m_input;
82
83 std::string m_fname;
84 std::ofstream* m_strp;
85
86 int m_portWidth;
87};
88#endif
Definition: CCSVSink.h:62
CSVSink(std::string sSimObjectName, ISimObjectCreator *pCreator)
Constructor.
void OdeFcn(const double dT, const double *const adX, double *const adXDot, const bool bIsMajorTimeStep)
Calculates the state derivatives.