SEBagValveMaskAutomated.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 SEBagValveMaskAutomated(Logger* logger=nullptr);
15
16 static constexpr char const* Name = "Automated";
17 std::string GetName() const override { return Name; }
18
19 void Clear() override;
20 virtual void Copy(const SEBagValveMaskAutomated& src);
21
22 bool IsValid() const override;
23 bool IsActive() const override;
24 void Deactivate() override;
25
26 virtual bool HasBreathFrequency() const;
27 virtual SEScalarFrequency& GetBreathFrequency();
28 virtual double GetBreathFrequency(const FrequencyUnit& unit) const;
29
30 virtual bool HasInspiratoryExpiratoryRatio() const;
31 virtual SEScalar& GetInspiratoryExpiratoryRatio();
32 virtual double GetInspiratoryExpiratoryRatio() const;
33
34 virtual bool HasSqueezePressure() const;
35 virtual SEScalarPressure& GetSqueezePressure();
36 virtual double GetSqueezePressure(const PressureUnit& unit) const;
37
38 virtual bool HasSqueezeVolume() const;
39 virtual SEScalarVolume& GetSqueezeVolume();
40 virtual double GetSqueezeVolume(const VolumeUnit& unit) const;
41
42 const SEScalar* GetScalar(const std::string& name) override;
43
44protected:
45
50};
Definition: SEScalarFrequency.h:8
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: SEBagValveMaskAutomated.h:9
SEScalarVolume * m_SqueezeVolume
Definition: SEBagValveMaskAutomated.h:49
SEScalar * m_InspiratoryExpiratoryRatio
Definition: SEBagValveMaskAutomated.h:47
SEScalarPressure * m_SqueezePressure
Definition: SEBagValveMaskAutomated.h:48
std::string GetName() const override
Definition: SEBagValveMaskAutomated.h:17
SEScalarFrequency * m_BreathFrequency
Definition: SEBagValveMaskAutomated.h:46
Definition: SEBagValveMask.h:14
void Deactivate() override
Definition: SEEquipmentAction.h:19
bool IsActive() const override
Definition: SEEquipmentAction.h:18
Definition: SEScalarFrequency.h:26
Definition: SEScalar.h:19
Definition: SEScalarPressure.h:29
Definition: SEScalarVolume.h:28
Definition: SESubstanceManager.h:9
Definition: SEScalarVolume.h:8

Distributed under the Apache License, Version 2.0.

See accompanying NOTICE file for details.