Marine systems simulation
CMux.h
1#ifndef CMux_H
2#define CMux_H
3
67#include "SimObject.h"
68
69#include <string>
70
71class CMux : public SimObject
72{
73 public:
75 CMux(std::string sSimObjectName, ISimObjectCreator* pCreator);
76 ~CMux();
77
78 virtual void OdeFcn(const double dT, const double* const adX, double* const adXDot, const bool bIsMajorTimeStep) { }
79
80 const double* Output(const double T, const double* const X);
81
82
83#ifdef FH_VISUALIZATION
85 virtual void RenderInit(Ogre::Root* const ogreRoot, ISimObjectCreator* const creator) { }
86
88 virtual void RenderUpdate(const double T, const double* const X) { }
89#endif
90
91 protected:
92 ISignalPort** m_Input;
93
94 double* m_Signal;
95
96
97 int* m_InputWidth;
101};
102
103
104#endif
Definition: CMux.h:72
int m_iPortWidth
Definition: CMux.h:100
int m_NumInput
The number of input ports.
Definition: CMux.h:98
CMux(std::string sSimObjectName, ISimObjectCreator *pCreator)
The constructor sets the pointer to the output object and the parser object.