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"
7
9{
10 friend class PBEquipmentAction;//friend the serialization class
11public:
12
13 SEBagValveMaskSqueeze(Logger* logger=nullptr);
14 virtual ~SEBagValveMaskSqueeze();
15
16 static constexpr char const* Name = "Squeeze";
17 std::string GetName() const override { return Name; }
18
19 void Clear() override;
20 virtual void Copy(const SEBagValveMaskSqueeze& src);
21
22 bool IsValid() const override;
23 bool IsActive() const override;
24 void Deactivate() override;
25
26 virtual bool HasSqueezePressure() const;
27 virtual SEScalarPressure& GetSqueezePressure();
28 virtual double GetSqueezePressure(const PressureUnit& unit) const;
29
30 virtual bool HasSqueezeVolume() const;
31 virtual SEScalarVolume& GetSqueezeVolume();
32 virtual double GetSqueezeVolume(const VolumeUnit& unit) const;
33
34 virtual bool HasExpiratoryPeriod() const;
35 virtual SEScalarTime& GetExpiratoryPeriod();
36 virtual double GetExpiratoryPeriod(const TimeUnit& unit) const;
37
38 virtual bool HasInspiratoryPeriod() const;
39 virtual SEScalarTime& GetInspiratoryPeriod();
40 virtual double GetInspiratoryPeriod(const TimeUnit& unit) const;
41
42 const SEScalar* GetScalar(const std::string& name) override;
43
44protected:
45
50};
Definition: Logger.h:71
Definition: PBEquipmentActions.h:41
Definition: SEScalarPressure.h:8
virtual const SEScalar * GetScalar(const std::string &name)=0
static SEAction * Copy(const SEAction &, const SESubstanceManager &)
Definition: SEAction.cpp:53
Definition: SEBagValveMaskAction.h:7
void Clear() override
Definition: SEBagValveMaskAction.cpp:17
bool IsValid() const override
Definition: SEBagValveMaskAction.cpp:22
Definition: SEBagValveMask.h:14
Definition: SEBagValveMaskSqueeze.h:9
SEScalarVolume * m_SqueezeVolume
Definition: SEBagValveMaskSqueeze.h:47
std::string GetName() const override
Definition: SEBagValveMaskSqueeze.h:17
SEScalarPressure * m_SqueezePressure
Definition: SEBagValveMaskSqueeze.h:46
SEScalarTime * m_ExpiratoryPeriod
Definition: SEBagValveMaskSqueeze.h:48
SEScalarTime * m_InspiratoryPeriod
Definition: SEBagValveMaskSqueeze.h:49
void Deactivate() override
Definition: SEEquipmentAction.h:19
bool IsActive() const override
Definition: SEEquipmentAction.h:18
Definition: SEScalar.h:19
Definition: SEScalarPressure.h:29
Definition: SEScalarTime.h:28
Definition: SEScalarVolume.h:28
Definition: SESubstanceManager.h:9
Definition: SEScalarTime.h:8
Definition: SEScalarVolume.h:8

Distributed under the Apache License, Version 2.0.

See accompanying NOTICE file for details.