SEEngineTracker Class Reference
#include <SEEngineTracker.h>
Inherits Loggable.
Public Member Functions | |
SEEngineTracker (SEPatient &, SEActionManager &, SESubstanceManager &, SECompartmentManager &, Logger *logger=nullptr) | |
virtual | ~SEEngineTracker () |
void | Clear () |
DataTrack & | GetDataTrack () |
SEActionManager & | GetActionManager () |
SESubstanceManager & | GetSubstanceManager () |
SEDataRequestManager & | GetDataRequestManager () |
void | AddSystem (SESystem &system) |
void | ResetFile () |
bool | ConnectRequest (SEDataRequest &dr, SEDataRequestScalar &ds) |
virtual bool | SetupRequests () |
virtual void | LogRequestedValues () |
virtual void | TrackData (double currentTime_s) |
virtual void | PullData (double currentTime_s) |
virtual bool | TrackRequest (SEDataRequest &dr) |
virtual void | ForceConnection () |
void | SetTrackMode (TrackMode m) |
TrackMode | GetTrackMode () |
double | GetValue (const SEDataRequest &dr) const |
Public Member Functions inherited from Loggable | |
Loggable (Logger *logger=nullptr) | |
Loggable (std::string const &logfile) | |
virtual | ~Loggable () |
virtual Logger * | GetLogger () const |
virtual void | SetLogger (Logger &logger) |
virtual void | Debug (std::string const &msg) const |
virtual void | Debug (std::stringstream &msg) const |
virtual void | Debug (std::ostream &msg) const |
virtual void | Info (std::string const &msg) const |
virtual void | Info (std::stringstream &msg) const |
virtual void | Info (const std::stringstream &msg) const |
virtual void | Info (std::ostream &msg) const |
virtual void | Warning (std::string const &msg) const |
virtual void | Warning (std::stringstream &msg) const |
virtual void | Warning (std::ostream &msg) const |
virtual void | Error (std::string const &msg) const |
virtual void | Error (std::stringstream &msg) const |
virtual void | Error (std::ostream &msg) const |
virtual void | Fatal (std::string const &msg) const |
virtual void | Fatal (std::stringstream &msg) const |
virtual void | Fatal (std::ostream &msg) const |
Protected Member Functions | |
const SEDataRequestScalar * | GetScalar (const SEDataRequest &dr) const |
Protected Attributes | |
TrackMode | m_Mode = TrackMode::CSV |
bool | m_ForceConnection |
double | m_LastPullTime_s |
DataTrack * | m_DataTrack |
std::stringstream | m_ss |
std::ofstream | m_ResultsStream |
SEDataRequestManager * | m_DataRequestMgr |
SEPatient & | m_Patient |
SEActionManager & | m_ActionMgr |
SESubstanceManager & | m_SubMgr |
SECompartmentManager & | m_CmptMgr |
SEEnvironment * | m_Environment = nullptr |
std::vector< SESystem * > | m_PhysiologySystems |
SESystem * | m_AnesthesiaMachine = nullptr |
SESystem * | m_ECG = nullptr |
SESystem * | m_Inhaler = nullptr |
SESystem * | m_MechanicalVentilator = nullptr |
std::map< const SEDataRequest *, SEDataRequestScalar * > | m_Request2Scalar |
Protected Attributes inherited from Loggable | |
bool | myLogger |
Logger * | m_Logger |
Constructor & Destructor Documentation
◆ SEEngineTracker()
SEEngineTracker::SEEngineTracker | ( | SEPatient & | p, |
SEActionManager & | a, | ||
SESubstanceManager & | s, | ||
SECompartmentManager & | c, | ||
Logger * | logger = nullptr |
||
) |
◆ ~SEEngineTracker()
|
virtual |
Member Function Documentation
◆ AddSystem()
void SEEngineTracker::AddSystem | ( | SESystem & | system | ) |
◆ Clear()
void SEEngineTracker::Clear | ( | ) |
◆ ConnectRequest()
bool SEEngineTracker::ConnectRequest | ( | SEDataRequest & | dr, |
SEDataRequestScalar & | ds | ||
) |
◆ ForceConnection()
|
inlinevirtual |
◆ GetActionManager()
|
inline |
◆ GetDataRequestManager()
|
inline |
◆ GetDataTrack()
DataTrack & SEEngineTracker::GetDataTrack | ( | ) |
◆ GetScalar()
|
protected |
◆ GetSubstanceManager()
|
inline |
◆ GetTrackMode()
|
inline |
◆ GetValue()
double SEEngineTracker::GetValue | ( | const SEDataRequest & | dr | ) | const |
◆ LogRequestedValues()
|
virtual |
◆ PullData()
|
virtual |
◆ ResetFile()
void SEEngineTracker::ResetFile | ( | ) |
◆ SetTrackMode()
|
inline |
◆ SetupRequests()
|
virtual |
◆ TrackData()
|
virtual |
◆ TrackRequest()
|
virtual |
Member Data Documentation
◆ m_ActionMgr
|
protected |
◆ m_AnesthesiaMachine
|
protected |
◆ m_CmptMgr
|
protected |
◆ m_DataRequestMgr
|
protected |
◆ m_DataTrack
|
protected |
◆ m_ECG
|
protected |
◆ m_Environment
|
protected |
◆ m_ForceConnection
|
protected |
◆ m_Inhaler
|
protected |
◆ m_LastPullTime_s
|
protected |
◆ m_MechanicalVentilator
|
protected |
◆ m_Mode
|
protected |
◆ m_Patient
|
protected |
◆ m_PhysiologySystems
|
protected |
◆ m_Request2Scalar
|
protected |
◆ m_ResultsStream
|
protected |
◆ m_ss
|
protected |
◆ m_SubMgr
|
protected |