SEChangeEnvironmentalConditions.h
1/* Distributed under the Apache License, Version 2.0.
2 See accompanying NOTICE file for details.*/
3#pragma once
4#include "cdm/system/environment/actions/SEEnvironmentAction.h"
7
9{
10 friend class PBEnvironmentAction;//friend the serialization class
11public:
12
15
16 static constexpr char const* Name = "Change Environmental Conditions";
17 std::string GetName() const override { return Name; }
18
19 void Clear() override;
20 virtual void Copy(const SEChangeEnvironmentalConditions& src, const SESubstanceManager& subMgr, bool /*preserveState*/=false);
21
22 bool IsValid() const override;
23 bool IsActive() const override;
24 void Deactivate() override;
25
26 virtual bool HasEnvironmentalConditions() const;
27 virtual SEEnvironmentalConditions& GetEnvironmentalConditions();
28 virtual const SEEnvironmentalConditions* GetEnvironmentalConditions() const;
29
30 virtual std::string GetEnvironmentalConditionsFile() const;
31 virtual void SetEnvironmentalConditionsFile(const std::string& fileName);
32 virtual bool HasEnvironmentalConditionsFile() const;
33
34 virtual eMergeType GetMergeType() const;
35 virtual void SetMergeType(eMergeType m);
36
37 const SEScalar* GetScalar(const std::string& name) override;
38
39protected:
40
43 eMergeType m_MergeType;
44};
Definition: Logger.h:71
Definition: PBEnvironmentActions.h:12
virtual const SEScalar * GetScalar(const std::string &name)=0
static SEAction * Copy(const SEAction &, const SESubstanceManager &)
Definition: SEAction.cpp:53
Definition: SEChangeEnvironmentalConditions.h:9
std::string m_EnvironmentalConditionsFile
Definition: SEChangeEnvironmentalConditions.h:41
eMergeType m_MergeType
Definition: SEChangeEnvironmentalConditions.h:43
std::string GetName() const override
Definition: SEChangeEnvironmentalConditions.h:17
SEEnvironmentalConditions * m_EnvironmentalConditions
Definition: SEChangeEnvironmentalConditions.h:42
Definition: SEEnvironmentAction.h:7
void Clear() override
Definition: SEEnvironmentAction.h:17
bool IsValid() const override
Definition: SEEnvironmentAction.h:18
void Deactivate() override
Definition: SEEnvironmentAction.h:22
bool IsActive() const override
Definition: SEEnvironmentAction.h:21
Definition: SEEnvironmentalConditions.h:16
Definition: SEScalar.h:19
Definition: SESubstanceManager.h:9

Distributed under the Apache License, Version 2.0.

See accompanying NOTICE file for details.