SEECMOConfiguration.h
1/* Distributed under the Apache License, Version 2.0.
2 See accompanying NOTICE file for details.*/
3#pragma once
4#include "cdm/system/equipment/ecmo/actions/SEECMOAction.h"
7
8class CDM_DECL SEECMOConfiguration : public SEECMOAction
9{
10 friend class PBEquipmentAction;//friend the serialization class
11public:
12
13 SEECMOConfiguration(Logger* logger=nullptr);
14 virtual ~SEECMOConfiguration();
15
16 static constexpr char const* Name = "Configuration";
17 virtual std::string GetName() const { return Name; }
18
19 virtual void Clear();
20 virtual void Copy(const SEECMOConfiguration& src, const SESubstanceManager& subMgr, bool /*preserveState*/ = false);
21
22 virtual bool IsValid() const;
23 virtual bool IsActive() const;
24 virtual void Deactivate();
25
26 bool HasSettings() const;
27 SEECMOSettings& GetSettings();
28 const SEECMOSettings* GetSettings() const;
29
30 virtual std::string GetSettingsFile() const;
31 virtual void SetSettingsFile(const std::string& fileName);
32 virtual bool HasSettingsFile() const;
33
34 virtual eMergeType GetMergeType() const;
35 virtual void SetMergeType(eMergeType m);
36
37 virtual const SEScalar* GetScalar(const std::string& name);
38
39protected:
40
41 std::string m_SettingsFile;
43 eMergeType m_MergeType;
44};
Definition: Logger.h:71
Definition: PBEquipmentActions.h:41
virtual const SEScalar * GetScalar(const std::string &name)=0
virtual bool IsActive() const
Definition: SEAction.h:39
virtual void Deactivate()
Definition: SEAction.h:41
static SEAction * Copy(const SEAction &, const SESubstanceManager &)
Definition: SEAction.cpp:54
Definition: SEECMOAction.h:7
virtual bool IsValid() const
Definition: SEECMOAction.cpp:22
virtual void Clear()
Definition: SEECMOAction.cpp:17
Definition: SEECMOConfiguration.h:9
std::string m_SettingsFile
Definition: SEECMOConfiguration.h:41
eMergeType m_MergeType
Definition: SEECMOConfiguration.h:43
SEECMOSettings * m_Settings
Definition: SEECMOConfiguration.h:42
virtual std::string GetName() const
Definition: SEECMOConfiguration.h:17
Definition: SEECMOSettings.h:23
Definition: SEScalar.h:19
Definition: SESubstanceManager.h:9

Distributed under the Apache License, Version 2.0.

See accompanying NOTICE file for details.