SERespiratoryMechanicsModification.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 Modification";
17 std::string GetName() const override { return Name; }
18
19 void Clear() override;
20 void Copy(const SERespiratoryMechanicsModification& 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 GetIncremental() const;
29 void SetIncremental(bool b);
30
31 bool HasModifiers() const;
32 SERespiratoryMechanicsModifiers& GetModifiers();
33 const SERespiratoryMechanicsModifiers* GetModifiers() const;
34
35 virtual std::string GetModifiersFile() const;
36 virtual void SetModifiersFile(const std::string& fileName);
37 virtual bool HasModifiersFile() const;
38
39protected:
40 std::string m_ModifiersFile;
43};
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: SERespiratoryMechanicsModification.h:9
std::string GetName() const override
Definition: SERespiratoryMechanicsModification.h:17
bool m_Incremental
Definition: SERespiratoryMechanicsModification.h:42
SERespiratoryMechanicsModifiers * m_Modifiers
Definition: SERespiratoryMechanicsModification.h:41
std::string m_ModifiersFile
Definition: SERespiratoryMechanicsModification.h:40
Definition: SERespiratoryMechanicsModifiers.h:9
Definition: SEScalar.h:19

Distributed under the Apache License, Version 2.0.

See accompanying NOTICE file for details.