SEBagValveMaskConfiguration.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/bag_valve_mask/actions/SEBagValveMaskAction.h"
7
9{
10 friend class PBEquipmentAction;//friend the serialization class
11public:
12
13 SEBagValveMaskConfiguration(Logger* logger=nullptr);
15
16 static constexpr char const* Name = "Configuration";
17 virtual std::string GetName() const override { return Name; }
18
19 virtual void Clear() override;
20 virtual void Copy(const SEBagValveMaskConfiguration& src, const SESubstanceManager& subMgr, bool /*preserveState*/ = false);
21
22 virtual bool IsValid() const override;
23 virtual bool IsActive() const override;
24 virtual void Deactivate() override;
25
26 bool HasConfiguration() const;
27 SEBagValveMask& GetConfiguration();
28 const SEBagValveMask* GetConfiguration() const;
29
30 virtual std::string GetConfigurationFile() const;
31 virtual void SetConfigurationFile(const std::string& fileName);
32 virtual bool HasConfigurationFile() const;
33
34 virtual eMergeType GetMergeType() const;
35 virtual void SetMergeType(eMergeType m);
36
37 virtual const SEScalar* GetScalar(const std::string& name) override;
38
39protected:
40
43 eMergeType m_MergeType;
44};
Definition: Logger.h:71
Definition: PBEquipmentActions.h:41
virtual const SEScalar * GetScalar(const std::string &name)=0
static SEAction * Copy(const SEAction &, const SESubstanceManager &)
Definition: SEAction.cpp:53
Definition: SEBagValveMaskAction.h:7
void Clear() override
Definition: SEBagValveMaskAction.cpp:17
bool IsValid() const override
Definition: SEBagValveMaskAction.cpp:22
Definition: SEBagValveMaskConfiguration.h:9
std::string m_ConfigurationFile
Definition: SEBagValveMaskConfiguration.h:41
SEBagValveMask * m_Configuration
Definition: SEBagValveMaskConfiguration.h:42
eMergeType m_MergeType
Definition: SEBagValveMaskConfiguration.h:43
virtual std::string GetName() const override
Definition: SEBagValveMaskConfiguration.h:17
Definition: SEBagValveMask.h:14
void Deactivate() override
Definition: SEEquipmentAction.h:19
bool IsActive() const override
Definition: SEEquipmentAction.h:18
Definition: SEScalar.h:19
Definition: SESubstanceManager.h:9

Distributed under the Apache License, Version 2.0.

See accompanying NOTICE file for details.