SEAnesthesiaMachineOxygenWallPortPressureLoss.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#include "cdm/properties/SEScalar.h"
6
8{
9 friend class PBEquipmentAction;//friend the serialization class
10public:
13
14 static constexpr char const* Name = "Oxygen Wall Port Pressure Loss";
15 std::string GetName() const override { return Name; }
16
17 void Clear() override;
18 virtual void Copy(const SEAnesthesiaMachineOxygenWallPortPressureLoss& src, bool /*preserveState*/=false);
19
20 bool IsValid() const override;
21 bool IsActive() const override;
22 void Deactivate() override;
23
24 virtual eSwitch GetState() const;
25 virtual void SetState(eSwitch state);
26
27 const SEScalar* GetScalar(const std::string& name) override;
28
29protected:
30
32};
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: SEAnesthesiaMachineOxygenWallPortPressureLoss.h:8
SEScalarEnum< eSwitch > m_State
Definition: SEAnesthesiaMachineOxygenWallPortPressureLoss.h:31
std::string GetName() const override
Definition: SEAnesthesiaMachineOxygenWallPortPressureLoss.h:15
void Deactivate() override
Definition: SEEquipmentAction.h:19
bool IsActive() const override
Definition: SEEquipmentAction.h:18
Definition: SEScalar.h:19

Distributed under the Apache License, Version 2.0.

See accompanying NOTICE file for details.