7enum class eMergeType { Append = 0, Replace };
8extern CDM_DECL
const std::string& eMergeType_Name(eMergeType m);
10enum class eAppliedRespiratoryCycle { Expiratory=0, Inspiratory, Instantaneous };
11extern CDM_DECL
const std::string& eAppliedRespiratoryCycle_Name(eAppliedRespiratoryCycle m);
25 static constexpr char const* ActionType =
"Action";
35 virtual bool IsValid()
const {
return true; }
40 virtual bool IsActive()
const {
return !m_Active ? false : IsValid(); }
43 virtual std::string GetComment()
const;
44 virtual void SetComment(
const std::string& comment);
45 virtual bool HasComment()
const;
46 virtual void InvalidateComment();
50 static std::string PrettyPrint(
const std::string& str);
52 virtual std::string ToJSON()
const;
53 virtual std::string ToString()
const;
60inline std::ostream& operator<< (std::ostream& out,
const SEAction& a)
Definition: PBActions.h:15
static bool SerializeToString(const SEAction &a, std::string &dst, eSerializationFormat fmt=eSerializationFormat::JSON)
Definition: PBActions.cpp:150
static SEAction * Copy(const SEAction &a, const SESubstanceManager &subMgr)
Definition: PBActions.cpp:142
static SEAction * SerializeFromString(const std::string &src, eSerializationFormat fmt, const SESubstanceManager &subMgr)
Definition: PBActions.cpp:155
Definition: SEAction.h:14
virtual const SEScalar * GetScalar(const std::string &name)=0
virtual void Activate()
Definition: SEAction.h:39
virtual bool IsValid() const
Definition: SEAction.h:35
virtual bool IsActive() const
Definition: SEAction.h:40
std::string m_Comment
Definition: SEAction.h:57
virtual void Deactivate()
Definition: SEAction.h:41
SEAction(const SEAction &)=delete
virtual std::string ToString() const
Definition: SEAction.cpp:65
virtual std::string GetActionType() const
Definition: SEAction.h:26
virtual std::string GetName() const =0
Definition: SEScalar.h:19
Definition: SESubstanceManager.h:9