SEAnesthesiaMachineMaskLeak.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/anesthesia_machine/actions/SEAnesthesiaMachineAction.h"
5
7{
8 friend class PBEquipmentAction;//friend the serialization class
9public:
10
11 SEAnesthesiaMachineMaskLeak(Logger* logger=nullptr);
13
14 static constexpr char const* Name = "Mask Leak";
15 std::string GetName() const override { return Name; }
16
17 void Clear() override;
18 virtual void Copy(const SEAnesthesiaMachineMaskLeak& src, bool /*preserveState*/=false);
19
20 bool IsValid() const override;
21 bool IsActive() const override;
22 void Deactivate() override;
23
24 virtual bool HasSeverity() const;
25 virtual SEScalar0To1& GetSeverity();
26 virtual double GetSeverity() const;
27
28 const SEScalar* GetScalar(const std::string& name) override;
29
30protected:
31
33};
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
Definition: SEAnesthesiaMachineAction.h:7
bool IsValid() const override
Definition: SEAnesthesiaMachineAction.cpp:22
void Clear() override
Definition: SEAnesthesiaMachineAction.cpp:17
Definition: SEAnesthesiaMachineMaskLeak.h:7
std::string GetName() const override
Definition: SEAnesthesiaMachineMaskLeak.h:15
SEScalar0To1 * m_Severity
Definition: SEAnesthesiaMachineMaskLeak.h:32
void Deactivate() override
Definition: SEEquipmentAction.h:19
bool IsActive() const override
Definition: SEEquipmentAction.h:18
Definition: SEScalar0To1.h:8
Definition: SEScalar.h:19

Distributed under the Apache License, Version 2.0.

See accompanying NOTICE file for details.