<
The Pulse Team is excited to announce the Pulse Physiology Engine 4.1.0 release. Upgrade now to get the best in dynamic simulation.
×
SEMechanicalVentilatorHold.h
1 /* Distributed under the Apache License, Version 2.0.
2  See accompanying NOTICE file for details.*/
3 #pragma once
4 #include "cdm/system/equipment/mechanical_ventilator/actions/SEMechanicalVentilatorAction.h"
7 
9 {
10  friend class PBEquipmentAction;//friend the serialization class
11 public:
12 
13  SEMechanicalVentilatorHold(Logger* logger=nullptr);
14  virtual ~SEMechanicalVentilatorHold();
15 
16  virtual void Clear();
17  virtual void Copy(const SEMechanicalVentilatorHold& src, bool /*preserveState*/ = false);
18 
19  virtual bool IsValid() const;
20  virtual bool IsActive() const;
21  virtual void Deactivate();
22 
23  virtual eSwitch GetState() const;
24  virtual void SetState(eSwitch name);
25 
26  virtual eAppliedRespiratoryCycle GetAppliedRespiratoryCycle() const;
27  virtual void SetAppliedRespiratoryCycle(eAppliedRespiratoryCycle c);
28 
29  virtual void ToString(std::ostream &str) const;
30 
31  virtual const SEScalar* GetScalar(const std::string& name);
32 
33 protected:
34  eAppliedRespiratoryCycle m_AppliedRespiratoryCycle;
35  eSwitch m_State;
36 };
Definition: SESubstanceManager.h:8
Definition: SEMechanicalVentilatorAction.h:6
virtual const SEScalar * GetScalar(const std::string &name)=0
Definition: SEScalar.h:18
virtual void Clear()
Definition: SEMechanicalVentilatorAction.cpp:17
eAppliedRespiratoryCycle m_AppliedRespiratoryCycle
Definition: SEMechanicalVentilatorHold.h:34
Definition: Logger.h:66
Definition: SEMechanicalVentilator.h:9
Definition: SEMechanicalVentilatorHold.h:8
virtual void Deactivate()
Definition: SEAction.h:34
static SEAction * Copy(const SEAction &, const SESubstanceManager &)
Definition: SEAction.cpp:45
eSwitch m_State
Definition: SEMechanicalVentilatorHold.h:35
virtual void ToString(std::ostream &str) const =0
virtual bool IsActive() const
Definition: SEAction.h:32
Definition: PBEquipmentActions.h:38
virtual bool IsValid() const
Definition: SEMechanicalVentilatorAction.cpp:22

Distributed under the Apache License, Version 2.0.

See accompanying NOTICE file for details.