SEChestOcclusiveDressing.h
1/* Distributed under the Apache License, Version 2.0.
2 See accompanying NOTICE file for details.*/
3
4#pragma once
5#include "cdm/patient/actions/SEPatientAction.h"
6
8{
9 friend class PBPatientAction;//friend the serialization class
10public:
11
12 SEChestOcclusiveDressing(Logger* logger=nullptr);
14
15 static constexpr char const* Name = "Chest Occlusive Dressing";
16 std::string GetName() const override { return Name; }
17
18 void Clear() override;
19 void Copy(const SEChestOcclusiveDressing& src, bool /*preserveState*/=false);
20
21 const SEScalar* GetScalar(const std::string& name) override;
22
23 bool IsValid() const override;
24 bool IsActive() const override;
25 void Deactivate() override;
26
27 virtual eSwitch GetState() const { return m_State; }
28 virtual void SetState(eSwitch s) { m_State = (s == eSwitch::NullSwitch) ? eSwitch::Off : s; }
29
30 virtual eSide GetSide() const;
31 virtual void SetSide(eSide LeftOrRight);
32 virtual bool HasSide() const;
33 virtual void InvalidateSide();
34
35protected:
36 eSide m_Side;
37 eSwitch m_State;
38
39};
Definition: Logger.h:71
Definition: PBPatientActions.h:52
virtual const SEScalar * GetScalar(const std::string &name)=0
static SEAction * Copy(const SEAction &, const SESubstanceManager &)
Definition: SEAction.cpp:53
Definition: SEChestOcclusiveDressing.h:8
virtual void SetState(eSwitch s)
Definition: SEChestOcclusiveDressing.h:28
eSwitch m_State
Definition: SEChestOcclusiveDressing.h:37
std::string GetName() const override
Definition: SEChestOcclusiveDressing.h:16
virtual eSwitch GetState() const
Definition: SEChestOcclusiveDressing.h:27
eSide m_Side
Definition: SEChestOcclusiveDressing.h:36
Definition: SEPatientAction.h:8
void Deactivate() override
Definition: SEPatientAction.h:23
void Clear() override
Definition: SEPatientAction.h:18
bool IsValid() const override
Definition: SEPatientAction.h:19
bool IsActive() const override
Definition: SEPatientAction.h:22
Definition: SEScalar.h:19

Distributed under the Apache License, Version 2.0.

See accompanying NOTICE file for details.