Marine systems simulation
CSelector.h
1#ifndef CSelector_H
2#define CSelector_H
3
56#include "SimObject.h"
57
58#include <string>
59
60class CSelector : public SimObject
61{
62 public:
64 CSelector(std::string sSimObjectName, ISimObjectCreator* pCreator);
65 ~CSelector();
66
67 virtual void OdeFcn(const double dT, const double* const adX, double* const adXDot, const bool bIsMajorTimeStep) { }
68
69 const double* Output(const double T, const double* const X);
70
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 double* m_Signal;
84
85 int NumOutputs;
89};
90
91
92#endif
Definition: CSelector.h:61
CSelector(std::string sSimObjectName, ISimObjectCreator *pCreator)
The constructor sets the pointer to the output object and the parser object.
int * m_OutputIndex
The number of input ports.
Definition: CSelector.h:86
int m_iPortWidth
Definition: CSelector.h:88