Marine systems simulation
CDemux.h
1#ifndef CDemux_H
2#define CDemux_H
3
61#include "SimObject.h"
62
63#include <string>
64
65class CDemux : public SimObject
66{
67 public:
69 CDemux(std::string sSimObjectName, ISimObjectCreator* pCreator);
70
73 void OdeFcn(const double dT, const double* const adX, double* const adXDot, const bool bIsMajorTimeStep) { }
74
75 const double* Output(const double T, const double* const X, const int Index);
76
77#ifdef FH_VISUALIZATION
79 virtual void RenderInit(Ogre::Root* const ogreRoot, ISimObjectCreator* const creator) { }
80
82 virtual void RenderUpdate(const double T, const double* const X) { }
83#endif
84
85 protected:
86 ISignalPort* m_Input;
87
88 double* m_Signal;
89
90
91 int* m_OutputWidth;
94};
95
96
97#endif
Definition: CDemux.h:66
CDemux(std::string sSimObjectName, ISimObjectCreator *pCreator)
The constructor sets the pointer to the output object and the parser object.
int m_iNumOutput
The number of input ports.
Definition: CDemux.h:92
~CDemux()
The destructor.
int m_inputWidth
The width of the Demux object input and output ports.
Definition: CDemux.h:93