<
The Pulse Team is excited to announce the Pulse Physiology Engine 4.1.0 release. Upgrade now to get the best in dynamic simulation.
×
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"
5 class SEBagValveMask;
7 
9 {
10  friend class PBEquipmentAction;//friend the serialization class
11 public:
12 
13  SEBagValveMaskConfiguration(Logger* logger=nullptr);
14  virtual ~SEBagValveMaskConfiguration();
15 
16  virtual void Clear();
17  virtual void Copy(const SEBagValveMaskConfiguration& src, const SESubstanceManager& subMgr, bool /*preserveState*/ = false);
18 
19  virtual bool IsValid() const;
20  virtual bool IsActive() const;
21  virtual void Deactivate();
22 
23  bool HasConfiguration() const;
24  SEBagValveMask& GetConfiguration();
25  const SEBagValveMask* GetConfiguration() const;
26 
27  virtual std::string GetConfigurationFile() const;
28  virtual void SetConfigurationFile(const std::string& fileName);
29  virtual bool HasConfigurationFile() const;
30 
31  virtual eMergeType GetMergeType() const;
32  virtual void SetMergeType(eMergeType m);
33 
34  virtual void ToString(std::ostream &str) const;
35 
36  virtual const SEScalar* GetScalar(const std::string& name);
37 
38 protected:
39 
40  std::string m_ConfigurationFile;
42  eMergeType m_MergeType;
43 };
Definition: SESubstanceManager.h:8
virtual const SEScalar * GetScalar(const std::string &name)=0
Definition: SEScalar.h:18
virtual bool IsValid() const
Definition: SEBagValveMaskAction.cpp:22
Definition: SEBagValveMaskAction.h:6
Definition: Logger.h:66
Definition: SEBagValveMaskConfiguration.h:8
std::string m_ConfigurationFile
Definition: SEBagValveMaskConfiguration.h:40
virtual void Deactivate()
Definition: SEAction.h:34
Definition: SEBagValveMask.h:13
static SEAction * Copy(const SEAction &, const SESubstanceManager &)
Definition: SEAction.cpp:45
eMergeType m_MergeType
Definition: SEBagValveMaskConfiguration.h:42
virtual bool IsActive() const
Definition: SEAction.h:32
virtual void ToString(std::ostream &str) const =0
Definition: PBEquipmentActions.h:38
SEBagValveMask * m_Configuration
Definition: SEBagValveMaskConfiguration.h:41
virtual void Clear()
Definition: SEBagValveMaskAction.cpp:17

Distributed under the Apache License, Version 2.0.

See accompanying NOTICE file for details.