<
The Pulse Team is excited to announce the Pulse Physiology Engine 4.1.0 release. Upgrade now to get the best in dynamic simulation.
×
SETensionPneumothorax.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"
6 
7 class CDM_DECL SETensionPneumothorax : public SEPatientAction
8 {
9  friend class PBPatientAction;//friend the serialization class
10 public:
11 
12  SETensionPneumothorax(Logger* logger=nullptr);
13  virtual ~SETensionPneumothorax();
14 
15  virtual void Clear(); //clear memory
16  virtual void Copy(const SETensionPneumothorax& src, bool /*preserveState*/=false);
17 
18  virtual bool IsValid() const;
19  virtual bool IsActive() const;
20  virtual void Deactivate();
21 
22  virtual eGate GetType() const;
23  virtual void SetType(eGate name);
24  virtual bool HasType() const;
25  virtual void InvalidateType();
26 
27  virtual eSide GetSide() const;
28  virtual void SetSide(eSide name);
29  virtual bool HasSide() const;
30  virtual void InvalidateSide();
31 
32  virtual bool HasSeverity() const;
33  virtual SEScalar0To1& GetSeverity();
34  virtual double GetSeverity() const;
35 
36  virtual void ToString(std::ostream &str) const;
37 
38  virtual const SEScalar* GetScalar(const std::string& name);
39 
40 protected:
41  eGate m_Type;
42  eSide m_Side;
44 
45 };
virtual const SEScalar * GetScalar(const std::string &name)=0
Definition: SEPatientAction.h:7
Definition: SEScalar.h:18
Definition: Logger.h:66
virtual void Clear()
Definition: SEPatientAction.cpp:17
eSide m_Side
Definition: SETensionPneumothorax.h:42
SEScalar0To1 * m_Severity
Definition: SETensionPneumothorax.h:43
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
Definition: PBPatientActions.h:46
Definition: SETensionPneumothorax.h:7
virtual void ToString(std::ostream &str) const =0
eGate m_Type
Definition: SETensionPneumothorax.h:41
Definition: SEScalar0To1.h:7

Distributed under the Apache License, Version 2.0.

See accompanying NOTICE file for details.