SECardiovascularMechanicsModification.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 = "Cardiovascular Mechanics Modification";
17 std::string GetName() const override { return Name; }
18
19 void Clear() override;
20 void Copy(const SECardiovascularMechanicsModification& src, bool /*preserveState*/=false);
21
22 const SEScalar* GetScalar(const std::string& name) override;
23
24 void Activate() override;
25 bool IsValid() const override;
26 bool IsActive() const override;
27 void Deactivate() override;
28
29 bool GetIncremental() const;
30 void SetIncremental(bool b);
31
32 bool HasModifiers() const;
34 const SECardiovascularMechanicsModifiers* GetModifiers() const;
35
36 virtual std::string GetModifiersFile() const;
37 virtual void SetModifiersFile(const std::string& fileName);
38 virtual bool HasModifiersFile() const;
39
40protected:
41 std::string m_ModifiersFile;
44};
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: SECardiovascularMechanicsModification.h:9
bool m_Incremental
Definition: SECardiovascularMechanicsModification.h:43
std::string m_ModifiersFile
Definition: SECardiovascularMechanicsModification.h:41
std::string GetName() const override
Definition: SECardiovascularMechanicsModification.h:17
SECardiovascularMechanicsModifiers * m_Modifiers
Definition: SECardiovascularMechanicsModification.h:42
Definition: SECardiovascularMechanicsModifiers.h:9
Definition: SEPatientAction.h:8
void Deactivate() override
Definition: SEPatientAction.h:23
void Clear() override
Definition: SEPatientAction.h:18
void Activate() override
Definition: SEPatientAction.h:21
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.