SEChestCompressionAutomated.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 SEChestCompressionAutomated(Logger* logger=nullptr);
14
15 static constexpr char const* Name = "Chest Compression Automated";
16 std::string GetName() const override { return Name; }
17
18 void Clear() override;
19 void Copy(const SEChestCompressionAutomated& 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 bool HasAppliedForceFraction() const;
28 virtual SEScalar0To1& GetAppliedForceFraction();
29 virtual double GetAppliedForceFraction() const;
30
31 virtual bool HasCompressionFrequency() const;
32 virtual SEScalarFrequency& GetCompressionFrequency();
33 virtual double GetCompressionFrequency(const FrequencyUnit& unit) const;
34
35 virtual bool HasForce() const;
36 virtual SEScalarForce& GetForce();
37 virtual double GetForce(const ForceUnit& unit) const;
38
39 virtual bool HasDepth() const;
40 virtual SEScalarLength& GetDepth();
41 virtual double GetDepth(const LengthUnit& unit) const;
42
43protected:
48};
Definition: SEScalarForce.h:8
Definition: SEScalarFrequency.h:8
Definition: SEScalarLength.h:8
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: SEChestCompressionAutomated.h:8
SEScalarFrequency * m_CompressionFrequency
Definition: SEChestCompressionAutomated.h:45
SEScalarForce * m_Force
Definition: SEChestCompressionAutomated.h:46
std::string GetName() const override
Definition: SEChestCompressionAutomated.h:16
SEScalarLength * m_Depth
Definition: SEChestCompressionAutomated.h:47
SEScalar0To1 * m_AppliedForceFraction
Definition: SEChestCompressionAutomated.h:44
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: SEScalar0To1.h:8
Definition: SEScalarForce.h:26
Definition: SEScalarFrequency.h:26
Definition: SEScalar.h:19
Definition: SEScalarLength.h:29

Distributed under the Apache License, Version 2.0.

See accompanying NOTICE file for details.