Marine systems simulation
CDivide.h
1#ifndef CDivide_H
2#define CDivide_H
3
58#include "SimObject.h"
59
60#include <assert.h>
61#include <string>
62
63class CDivide : public SimObject
64{
65 public:
67 CDivide(std::string sSimObjectName, ISimObjectCreator* pCreator);
68 ~CDivide();
69 virtual void OdeFcn(const double dT, const double* const adX, double* const adXDot, const bool bIsMajorTimeStep) { }
70
71 const double* Output(const double T, const double* const X);
72
73
74#ifdef FH_VISUALIZATION
76 virtual void RenderInit(Ogre::Root* const ogreRoot, ISimObjectCreator* const creator) { }
77
79 virtual void RenderUpdate(const double T, const double* const X) { }
80#endif
81
82 protected:
83 ISignalPort* m_Input1;
84 ISignalPort* m_Input2;
85
86 double* m_Signal;
88};
89
90
91#endif
Definition: CDivide.h:64
CDivide(std::string sSimObjectName, ISimObjectCreator *pCreator)
Constructor.
int m_iPortWidth
The width of the input and output ports.
Definition: CDivide.h:87