<
The Pulse Team is excited to announce the Pulse Physiology Engine 4.1.0 release. Upgrade now to get the best in dynamic simulation.
×
SEBagValveMaskSqueeze.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/bag_valve_mask/actions/SEBagValveMaskAction.h"
5 class SEBagValveMask;
7 
9 {
10  friend class PBEquipmentAction;//friend the serialization class
11 public:
12 
13  SEBagValveMaskSqueeze(Logger* logger=nullptr);
14  virtual ~SEBagValveMaskSqueeze();
15 
16  virtual void Clear();
17  virtual void Copy(const SEBagValveMaskSqueeze& src);
18 
19  virtual bool IsValid() const;
20  virtual bool IsActive() const;
21  virtual void Deactivate();
22 
23  virtual bool HasSqueezePressure() const;
24  virtual SEScalarPressure& GetSqueezePressure();
25  virtual double GetSqueezePressure(const PressureUnit& unit) const;
26 
27  virtual bool HasSqueezeVolume() const;
28  virtual SEScalarVolume& GetSqueezeVolume();
29  virtual double GetSqueezeVolume(const VolumeUnit& unit) const;
30 
31  virtual bool HasExpiratoryPeriod() const;
32  virtual SEScalarTime& GetExpiratoryPeriod();
33  virtual double GetExpiratoryPeriod(const TimeUnit& unit) const;
34 
35  virtual bool HasInspiratoryPeriod() const;
36  virtual SEScalarTime& GetInspiratoryPeriod();
37  virtual double GetInspiratoryPeriod(const TimeUnit& unit) const;
38 
39  virtual void ToString(std::ostream &str) const;
40 
41  virtual const SEScalar* GetScalar(const std::string& name);
42 
43 protected:
44 
49 };
Definition: SESubstanceManager.h:8
virtual const SEScalar * GetScalar(const std::string &name)=0
Definition: SEScalar.h:18
virtual bool IsValid() const
Definition: SEBagValveMaskAction.cpp:22
Definition: SEScalarVolume.h:7
Definition: SEBagValveMaskAction.h:6
Definition: SEScalarVolume.h:27
Definition: Logger.h:66
Definition: SEScalarPressure.h:28
SEScalarVolume * m_SqueezeVolume
Definition: SEBagValveMaskSqueeze.h:46
Definition: SEScalarTime.h:7
virtual void Deactivate()
Definition: SEAction.h:34
Definition: SEBagValveMask.h:13
Definition: SEScalarPressure.h:7
static SEAction * Copy(const SEAction &, const SESubstanceManager &)
Definition: SEAction.cpp:45
SEScalarTime * m_ExpiratoryPeriod
Definition: SEBagValveMaskSqueeze.h:47
SEScalarTime * m_InspiratoryPeriod
Definition: SEBagValveMaskSqueeze.h:48
virtual bool IsActive() const
Definition: SEAction.h:32
Definition: SEScalarTime.h:27
virtual void ToString(std::ostream &str) const =0
Definition: SEBagValveMaskSqueeze.h:8
Definition: PBEquipmentActions.h:38
SEScalarPressure * m_SqueezePressure
Definition: SEBagValveMaskSqueeze.h:45
virtual void Clear()
Definition: SEBagValveMaskAction.cpp:17

Distributed under the Apache License, Version 2.0.

See accompanying NOTICE file for details.