SECardiacArrest.h
1 /* Distributed under the Apache License, Version 2.0.
2  See accompanying NOTICE file for details.*/
3 
4 #pragma once
5 #include "patient/actions/SEPatientAction.h"
6 
7 class CDM_DECL SECardiacArrest : public SEPatientAction
8 {
9  friend class PBPatientAction;//friend the serialization class
10 public:
11 
13  virtual ~SECardiacArrest();
14 
15  virtual void Clear(); //clear memory
16  virtual void Copy(const SECardiacArrest& src);
17 
18  virtual bool IsValid() const;
19  virtual bool IsActive() const;
20 
21  virtual eSwitch GetState() const { return m_State; }
22  virtual void SetState(eSwitch s) { m_State = (s == eSwitch::NullSwitch) ? eSwitch::Off : s; }
23 
24  virtual void ToString(std::ostream &str) const;
25 
26 protected:
27  eSwitch m_State;
28 
29 };
Definition: SEPatientAction.h:7
virtual void SetState(eSwitch s)
Definition: SECardiacArrest.h:22
virtual void Clear()
Definition: SEPatientAction.cpp:17
static void Copy(const SEAcuteStress &src, SEAcuteStress &dst)
Definition: PBPatientActions.cpp:76
virtual eSwitch GetState() const
Definition: SECardiacArrest.h:21
eSwitch m_State
Definition: SECardiacArrest.h:27
virtual bool IsValid() const
Definition: SEPatientAction.cpp:22
virtual bool IsActive() const
Definition: SEAction.h:21
Definition: PBPatientActions.h:38
Definition: SECardiacArrest.h:7
virtual void ToString(std::ostream &str) const =0