<
The Pulse Team is excited to announce the Pulse Physiology Engine 4.1.0 release. Upgrade now to get the best in dynamic simulation.
×
SEChestOcclusiveDressing.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 
8 {
9  friend class PBPatientAction;//friend the serialization class
10 public:
11 
12  SEChestOcclusiveDressing(Logger* logger=nullptr);
13  virtual ~SEChestOcclusiveDressing();
14 
15  virtual void Clear(); //clear memory
16  virtual void Copy(const SEChestOcclusiveDressing& src, bool /*preserveState*/=false);
17 
18  virtual bool IsValid() const;
19  virtual bool IsActive() const;
20  virtual void Deactivate();
21 
22  virtual eSwitch GetState() const { return m_State; }
23  virtual void SetState(eSwitch s) { m_State = (s == eSwitch::NullSwitch) ? eSwitch::Off : s; }
24 
25  virtual eSide GetSide() const;
26  virtual void SetSide(eSide LeftOrRight);
27  virtual bool HasSide() const;
28  virtual void InvalidateSide();
29 
30  virtual void ToString(std::ostream &str) const;
31 
32  virtual const SEScalar* GetScalar(const std::string& name);
33 
34 protected:
35  eSide m_Side;
36  eSwitch m_State;
37 
38 };
virtual const SEScalar * GetScalar(const std::string &name)=0
Definition: SEPatientAction.h:7
Definition: SEScalar.h:18
virtual void SetState(eSwitch s)
Definition: SEChestOcclusiveDressing.h:23
Definition: Logger.h:66
virtual void Clear()
Definition: SEPatientAction.cpp:17
virtual eSwitch GetState() const
Definition: SEChestOcclusiveDressing.h:22
eSide m_Side
Definition: SEChestOcclusiveDressing.h:35
Definition: SEChestOcclusiveDressing.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
eSwitch m_State
Definition: SEChestOcclusiveDressing.h:36
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.