FhSim
3.1.0
Marine systems simulation
Loading...
Searching...
No Matches
CCSVSink.h
1
#ifndef _CCSVSink_H
2
#define _CCSVSink_H
3
57
#include <fhsim/simobject/SimObject.h>
58
#include <fstream>
59
#include <string>
60
61
class
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 override
;
70
void
AcceptedStep(
const
double
dT,
const
double
*
const
adX)
override
;
71
void
FinalSetup(
const
double
T,
const
double
*
const
X, ISimObjectCreator*
const
creator);
72
73
#ifdef FH_VISUALIZATION
75
virtual
void
RenderInit(Ogre::Root*
const
ogreRoot, ISimObjectCreator*
const
creator) { }
76
78
virtual
void
RenderUpdate(
const
double
T,
const
double
*
const
X) { }
79
#endif
80
81
protected
:
82
ISignalPort* m_input;
83
84
std::string m_fname;
85
std::ofstream* m_strp;
86
87
int
m_portWidth;
88
};
89
#endif
CSVSink
Definition
CCSVSink.h:62
CSVSink::CSVSink
CSVSink(std::string sSimObjectName, ISimObjectCreator *pCreator)
Constructor.
CSVSink::OdeFcn
void OdeFcn(const double dT, const double *const adX, double *const adXDot) const override
Calculates the state derivatives.
update_root
webfhsim
reloadrepos
fhsim_base
src
sink
CCSVSink.h
Generated on Tue Sep 15 2026 11:42:14 for FhSim by
1.9.8