<
The Pulse Team is excited to announce the Pulse Physiology Engine 4.1.0 release. Upgrade now to get the best in dynamic simulation.
×
SEConsciousRespiration.h
1 /* Distributed under the Apache License, Version 2.0.
2  See accompanying NOTICE file for details.*/
3 
4 #pragma once
5 #include "cdm/patient/actions/SEPatientAction.h"
7 class SEForcedExhale;
8 class SEForcedInhale;
9 class SEForcedPause;
10 class SEUseInhaler;
11 
12 class CDM_DECL SEConsciousRespiration : public SEPatientAction
13 {
14  friend class PBPatientAction;//friend the serialization class
15 public:
16 
17  SEConsciousRespiration(Logger* logger=nullptr);
18  virtual ~SEConsciousRespiration();
19 
20  virtual void Clear(); //clear memory
21  virtual void Copy(const SEConsciousRespiration& src, bool /*preserveState*/=false);
22 
23  virtual bool IsValid() const;
24  virtual bool IsActive() const;
25  virtual void Deactivate();
26 
27  virtual bool StartImmediately() const;
28  virtual void SetStartImmediately(bool b);
29 
30  // Get the active command
31  virtual bool HasCommands() const;
32  virtual SEConsciousRespirationCommand* GetActiveCommand();
34  virtual void RemoveActiveCommand();
35 
36  virtual SEForcedExhale& AddForcedExhale();
37  virtual SEForcedInhale& AddForcedInhale();
38  virtual SEForcedPause& AddForcedPause();
39  virtual SEUseInhaler& AddUseInhaler();
40 
41  virtual void ToString(std::ostream &str) const;
42 
43  virtual const SEScalar* GetScalar(const std::string& name);
44 
45 protected:
46 
48  std::vector<SEConsciousRespirationCommand*> m_Commands;
49 };
virtual const SEScalar * GetScalar(const std::string &name)=0
Definition: SEPatientAction.h:7
Definition: SEScalar.h:18
Definition: SEForcedInhale.h:7
Definition: Logger.h:66
virtual void Clear()
Definition: SEPatientAction.cpp:17
Definition: SEForcedExhale.h:7
Definition: SEUseInhaler.h:8
Definition: SEConsciousRespiration.h:12
virtual void Deactivate()
Definition: SEAction.h:34
virtual bool IsValid() const
Definition: SEPatientAction.cpp:22
static SEAction * Copy(const SEAction &, const SESubstanceManager &)
Definition: SEAction.cpp:45
Definition: SEConsciousRespirationCommand.h:7
Definition: SEForcedPause.h:7
virtual bool IsActive() const
Definition: SEAction.h:32
Definition: PBPatientActions.h:46
virtual void ToString(std::ostream &str) const =0
bool m_StartImmediately
Definition: SEConsciousRespiration.h:47
std::vector< SEConsciousRespirationCommand * > m_Commands
Definition: SEConsciousRespiration.h:48

Distributed under the Apache License, Version 2.0.

See accompanying NOTICE file for details.