SERespiratoryMechanicsConfiguration.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"
7
9{
10 friend class PBPatientAction;//friend the serialization class
11public:
12
15
16 static constexpr char const* Name = "Respiratory Mechanics Configuration";
17 std::string GetName() const override { return Name; }
18
19 void Clear() override;
20 void Copy(const SERespiratoryMechanicsConfiguration& src, bool /*preserveState*/=false);
21
22 const SEScalar* GetScalar(const std::string& name) override;
23
24 bool IsValid() const override;
25 bool IsActive() const override;
26 void Deactivate() override;
27
28 bool HasSettings() const;
29 SERespiratoryMechanics& GetSettings();
30 const SERespiratoryMechanics* GetSettings() const;
31
32 virtual std::string GetSettingsFile() const;
33 virtual void SetSettingsFile(const std::string& fileName);
34 virtual bool HasSettingsFile() const;
35
36 virtual eAppliedRespiratoryCycle GetAppliedRespiratoryCycle() const;
37 virtual void SetAppliedRespiratoryCycle(eAppliedRespiratoryCycle c);
38
39 virtual eMergeType GetMergeType() const;
40 virtual void SetMergeType(eMergeType m);
41
42protected:
43 eAppliedRespiratoryCycle m_AppliedRespiratoryCycle;
44 eMergeType m_MergeType;
45 std::string m_SettingsFile;
47};
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: 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: SERespiratoryMechanicsConfiguration.h:9
eAppliedRespiratoryCycle m_AppliedRespiratoryCycle
Definition: SERespiratoryMechanicsConfiguration.h:43
std::string GetName() const override
Definition: SERespiratoryMechanicsConfiguration.h:17
SERespiratoryMechanics * m_Settings
Definition: SERespiratoryMechanicsConfiguration.h:46
std::string m_SettingsFile
Definition: SERespiratoryMechanicsConfiguration.h:45
eMergeType m_MergeType
Definition: SERespiratoryMechanicsConfiguration.h:44
Definition: SERespiratoryMechanics.h:8
Definition: SEScalar.h:19

Distributed under the Apache License, Version 2.0.

See accompanying NOTICE file for details.