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
11public:
12
13 SEMechanicalVentilatorHold(Logger* logger=nullptr);
15
16 static constexpr char const* Name = "Hold";
17 std::string GetName() const override { return Name; }
18
19 void Clear() override;
20 virtual void Copy(const SEMechanicalVentilatorHold& src, bool /*preserveState*/ = false);
21
22 bool IsValid() const override;
23 bool IsActive() const override;
24 void Deactivate() override;
25
26 virtual eSwitch GetState() const;
27 virtual void SetState(eSwitch name);
28
29 virtual eAppliedRespiratoryCycle GetAppliedRespiratoryCycle() const;
30 virtual void SetAppliedRespiratoryCycle(eAppliedRespiratoryCycle c);
31
32 const SEScalar* GetScalar(const std::string& name) override;
33
34protected:
35 eAppliedRespiratoryCycle m_AppliedRespiratoryCycle;
36 eSwitch m_State;
37};
Definition: Logger.h:71
Definition: PBEquipmentActions.h:41
virtual const SEScalar * GetScalar(const std::string &name)=0
static SEAction * Copy(const SEAction &, const SESubstanceManager &)
Definition: SEAction.cpp:53
void Deactivate() override
Definition: SEEquipmentAction.h:19
bool IsActive() const override
Definition: SEEquipmentAction.h:18
Definition: SEMechanicalVentilatorAction.h:7
bool IsValid() const override
Definition: SEMechanicalVentilatorAction.cpp:22
void Clear() override
Definition: SEMechanicalVentilatorAction.cpp:17
Definition: SEMechanicalVentilatorHold.h:9
eSwitch m_State
Definition: SEMechanicalVentilatorHold.h:36
std::string GetName() const override
Definition: SEMechanicalVentilatorHold.h:17
eAppliedRespiratoryCycle m_AppliedRespiratoryCycle
Definition: SEMechanicalVentilatorHold.h:35
Definition: SEMechanicalVentilator.h:10
Definition: SEScalar.h:19
Definition: SESubstanceManager.h:9

Distributed under the Apache License, Version 2.0.

See accompanying NOTICE file for details.