<
The Pulse Team is excited to announce the Pulse Physiology Engine 4.1.0 release. Upgrade now to get the best in dynamic simulation.
×
SERespiratoryMechanicsConfiguration.h
1 /* Distributed under the Apache License, Version 2.0.
2  See accompanying NOTICE file for details.*/
3 
4 #pragma once
5 #include "cdm/patient/actions/SEPatientAction.h"
7 
9 {
10  friend class PBPatientAction;//friend the serialization class
11 public:
12 
15 
16  virtual void Clear();
17  virtual void Copy(const SERespiratoryMechanicsConfiguration& src, bool /*preserveState*/=false);
18 
19  virtual bool IsValid() const;
20  virtual bool IsActive() const;
21  virtual void Deactivate();
22 
23  bool HasSettings() const;
24  SERespiratoryMechanics& GetSettings();
25  const SERespiratoryMechanics* GetSettings() const;
26 
27  virtual std::string GetSettingsFile() const;
28  virtual void SetSettingsFile(const std::string& fileName);
29  virtual bool HasSettingsFile() const;
30 
31  virtual eAppliedRespiratoryCycle GetAppliedRespiratoryCycle() const;
32  virtual void SetAppliedRespiratoryCycle(eAppliedRespiratoryCycle c);
33 
34  virtual eMergeType GetMergeType() const;
35  virtual void SetMergeType(eMergeType m);
36 
37  virtual void ToString(std::ostream &str) const;
38 
39  virtual const SEScalar* GetScalar(const std::string& name);
40 
41 protected:
42  eAppliedRespiratoryCycle m_AppliedRespiratoryCycle;
43  eMergeType m_MergeType;
44  std::string m_SettingsFile;
46 };
virtual const SEScalar * GetScalar(const std::string &name)=0
Definition: SEPatientAction.h:7
Definition: SEScalar.h:18
eMergeType m_MergeType
Definition: SERespiratoryMechanicsConfiguration.h:43
std::string m_SettingsFile
Definition: SERespiratoryMechanicsConfiguration.h:44
Definition: Logger.h:66
virtual void Clear()
Definition: SEPatientAction.cpp:17
SERespiratoryMechanics * m_Settings
Definition: SERespiratoryMechanicsConfiguration.h:45
Definition: SERespiratoryMechanics.h:7
virtual void Deactivate()
Definition: SEAction.h:34
virtual bool IsValid() const
Definition: SEPatientAction.cpp:22
static SEAction * Copy(const SEAction &, const SESubstanceManager &)
Definition: SEAction.cpp:45
virtual bool IsActive() const
Definition: SEAction.h:32
eAppliedRespiratoryCycle m_AppliedRespiratoryCycle
Definition: SERespiratoryMechanicsConfiguration.h:42
Definition: SERespiratoryMechanicsConfiguration.h:8
Definition: PBPatientActions.h:46
virtual void ToString(std::ostream &str) const =0

Distributed under the Apache License, Version 2.0.

See accompanying NOTICE file for details.