5#include "cdm/properties/SEScalarTime.h"
13 BrainOxygenDeficit = 3,
16 CardiovascularCollapse = 6,
17 CriticalBrainOxygenDeficit = 7,
21 FunctionalIncontinence = 11,
30 HypovolemicShock = 20,
31 IntracranialHypertension = 21,
32 IntracranialHypotension = 22,
33 IrreversibleState = 23,
36 MassiveHemothorax = 26,
37 MaximumPulmonaryVentilationRate = 27,
38 MediumHemothorax = 28,
39 MetabolicAcidosis = 29,
40 MetabolicAlkalosis = 30,
42 MinimalHemothorax = 32,
43 ModerateDehydration = 33,
44 ModerateHyperoxemia = 34,
45 ModerateHypocapnia = 35,
46 MyocardiumOxygenDeficit = 36,
48 NutritionDepleted = 38,
49 RenalHypoperfusion = 39,
50 RespiratoryAcidosis = 40,
51 RespiratoryAlkalosis = 41,
52 SevereDehydration = 42,
53 SevereHyperoxemia = 43,
54 SevereHypocapnia = 44,
56 StartOfCardiacCycle = 46,
63 AnesthesiaMachineOxygenBottleOneExhausted = 1000,
64 AnesthesiaMachineOxygenBottleTwoExhausted = 1001,
65 AnesthesiaMachineReliefValveActive = 1002,
66 MechanicalVentilatorReliefValveActive = 1003,
67 SupplementalOxygenBottleExhausted = 1004,
68 NonRebreatherMaskOxygenBagEmpty = 1005
70extern CDM_DECL
const std::string& eEvent_Name(eEvent m);
87 static bool SerializeToString(std::vector<const SEActiveEvent*>& active, std::string& output, eSerializationFormat m,
Logger* logger);
88 static bool SerializeFromString(
const std::string& src, std::vector<const SEActiveEvent*>& active, eSerializationFormat m,
Logger* logger);
103 static bool SerializeToString(std::vector<const SEEventChange*>& changes, std::string& output, eSerializationFormat m,
Logger* logger);
104 static bool SerializeFromString(
const std::string& src, std::vector<const SEEventChange*>& changes, eSerializationFormat m,
Logger* logger);
124 virtual void OverrideActiveState(eEvent state,
const SEScalarTime& duration);
126 virtual const std::map<eEvent, bool>&
GetEventStates()
const {
return m_EventState; }
127 virtual void SetEvent(eEvent e,
bool active,
const SEScalarTime& time);
128 virtual bool IsEventActive(eEvent e)
const;
129 virtual double GetEventDuration(eEvent e,
const TimeUnit& unit)
const;
130 virtual void UpdateEvents(
const SEScalarTime& timeStep);
131 virtual bool GetActiveEvents(std::vector<const SEActiveEvent*>& active)
const;
Definition: SEEventManager.h:82
SEScalarTime m_Duration
Definition: SEEventManager.h:95
const SEScalarTime & GetDuration() const
Definition: SEEventManager.h:91
eEvent m_Event
Definition: SEEventManager.h:94
eEvent GetEvent() const
Definition: SEEventManager.h:90
Definition: SEEventManager.h:99
eEvent m_Event
Definition: SEEventManager.h:112
SEScalarTime m_SimTime
Definition: SEEventManager.h:113
bool m_Active
Definition: SEEventManager.h:111
bool GetActive() const
Definition: SEEventManager.h:107
const SEScalarTime & GetSimTime() const
Definition: SEEventManager.h:108
eEvent GetEvent() const
Definition: SEEventManager.h:106
Definition: SEEventManager.h:73
virtual void HandleEvent(eEvent e, bool active, const SEScalarTime *simTime=nullptr)=0
virtual ~SEEventHandler()
Definition: SEEventManager.h:76
SEEventHandler()
Definition: SEEventManager.h:75
Definition: SEEventManager.h:117
std::map< eEvent, double > m_EventDuration_s
Definition: SEEventManager.h:147
std::stringstream m_ss
Definition: SEEventManager.h:144
SEEventHandler * m_EventHandler
Definition: SEEventManager.h:145
virtual const std::map< eEvent, bool > & GetEventStates() const
Definition: SEEventManager.h:126
virtual SEEventHandler * GetEventHandler()
Definition: SEEventManager.h:140
std::map< eEvent, bool > m_EventState
Definition: SEEventManager.h:146
Definition: SEScalarTime.h:28
Definition: SEScalarTime.h:8