SEConsciousRespiration.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"
7 class SEForcedExhale;
8 class SEForcedInhale;
9 class SEBreathHold;
10 class SEUseInhaler;
11 
12 class CDM_DECL SEConsciousRespiration : public SEPatientAction
13 {
14  friend class PBPatientAction;//friend the serialization class
15 public:
16 
18  virtual ~SEConsciousRespiration();
19 
20  virtual void Clear(); //clear memory
21  virtual void Copy(const SEConsciousRespiration& src);
22 
23  virtual bool IsValid() const;
24  virtual bool IsActive() const;
25 
26  // Get the active command
27  virtual SEConsciousRespirationCommand* GetActiveCommand();
29  virtual void RemoveActiveCommand();
30 
31  virtual SEForcedExhale& AddForcedExhale();
32  virtual SEForcedInhale& AddForcedInhale();
33  virtual SEBreathHold& AddBreathHold();
34  virtual SEUseInhaler& AddUseInhaler();
35 
36  virtual void ToString(std::ostream &str) const;
37 protected:
38 
40  std::vector<SEConsciousRespirationCommand*> m_Commands;
41 };
Definition: SEPatientAction.h:7
Definition: SEForcedInhale.h:7
virtual void Clear()
Definition: SEPatientAction.cpp:17
static void Copy(const SEAcuteStress &src, SEAcuteStress &dst)
Definition: PBPatientActions.cpp:76
Definition: SEForcedExhale.h:7
Definition: SEUseInhaler.h:8
Definition: SEConsciousRespiration.h:12
virtual bool IsValid() const
Definition: SEPatientAction.cpp:22
Definition: SEConsciousRespirationCommand.h:7
virtual bool IsActive() const
Definition: SEAction.h:21
Definition: SEBreathHold.h:7
Definition: PBPatientActions.h:38
virtual void ToString(std::ostream &str) const =0
std::vector< SEConsciousRespirationCommand * > m_Commands
Definition: SEConsciousRespiration.h:40
bool m_ClearCommands
Definition: SEConsciousRespiration.h:39