SEMechanicalVentilatorPressureControl Class Reference

#include <SEMechanicalVentilatorPressureControl.h>

Inherits SEMechanicalVentilatorMode.

Public Member Functions

 SEMechanicalVentilatorPressureControl (Logger *logger=nullptr)
 
virtual ~SEMechanicalVentilatorPressureControl ()
 
virtual std::string GetName () const override
 
void Clear () override
 
virtual void Copy (const SEMechanicalVentilatorPressureControl &src, bool=false)
 
virtual bool ToSettings (SEMechanicalVentilatorSettings &s, const SESubstanceManager &subMgr) override
 
bool IsValid () const override
 
bool IsActive () const override
 
void Deactivate () override
 
virtual eMechanicalVentilator_PressureControlMode GetMode () const
 
virtual void SetMode (eMechanicalVentilator_PressureControlMode c)
 
virtual bool HasFractionInspiredOxygen () const
 
virtual SEScalar0To1GetFractionInspiredOxygen ()
 
virtual double GetFractionInspiredOxygen () const
 
virtual bool HasInspirationPatientTriggerFlow () const
 
virtual SEScalarVolumePerTimeGetInspirationPatientTriggerFlow ()
 
virtual double GetInspirationPatientTriggerFlow (const VolumePerTimeUnit &unit) const
 
virtual bool HasInspirationPatientTriggerPressure () const
 
virtual SEScalarPressureGetInspirationPatientTriggerPressure ()
 
virtual double GetInspirationPatientTriggerPressure (const PressureUnit &unit) const
 
virtual bool HasInspirationWaveform () const
 
virtual eDriverWaveform GetInspirationWaveform () const
 
virtual void SetInspirationWaveform (eDriverWaveform w)
 
virtual bool HasInspiratoryPeriod () const
 
virtual SEScalarTimeGetInspiratoryPeriod ()
 
virtual double GetInspiratoryPeriod (const TimeUnit &unit) const
 
virtual bool HasInspiratoryPressure () const
 
virtual SEScalarPressureGetInspiratoryPressure ()
 
virtual double GetInspiratoryPressure (const PressureUnit &unit) const
 
virtual bool HasPositiveEndExpiratoryPressure () const
 
virtual SEScalarPressureGetPositiveEndExpiratoryPressure ()
 
virtual double GetPositiveEndExpiratoryPressure (const PressureUnit &unit) const
 
virtual bool HasRespirationRate () const
 
virtual SEScalarFrequencyGetRespirationRate ()
 
virtual double GetRespirationRate (const FrequencyUnit &unit) const
 
virtual bool HasSlope () const
 
virtual SEScalarTimeGetSlope ()
 
virtual double GetSlope (const TimeUnit &unit) const
 
const SEScalarGetScalar (const std::string &name) override
 
- Public Member Functions inherited from SEMechanicalVentilatorMode
 SEMechanicalVentilatorMode (Logger *logger)
 
virtual ~SEMechanicalVentilatorMode ()
 
void Clear () override
 
bool IsValid () const override
 
bool IsActive () const override
 
virtual bool ToSettings (SEMechanicalVentilatorSettings &s, const SESubstanceManager &subMgr)
 
virtual eSwitch GetConnection () const
 
virtual void SetConnection (eSwitch c)
 
- Public Member Functions inherited from SEMechanicalVentilatorAction
 SEMechanicalVentilatorAction (Logger *logger)
 
virtual ~SEMechanicalVentilatorAction ()
 
std::string GetActionType () const override
 
void Clear () override
 
bool IsValid () const override
 
- Public Member Functions inherited from SEEquipmentAction
 SEEquipmentAction (Logger *logger)
 
virtual ~SEEquipmentAction ()
 
void Clear () override
 
bool IsValid () const override
 
void Activate () override
 
bool IsActive () const override
 
void Deactivate () override
 
- Public Member Functions inherited from SEAction
 SEAction (Logger *logger)
 
virtual ~SEAction ()
 
 SEAction (const SEAction &)=delete
 
SEActionoperator= (const SEAction &)=delete
 
virtual std::string GetName () const =0
 
virtual std::string GetActionType () const
 
virtual void Clear ()
 
virtual bool SerializeToString (std::string &dst, eSerializationFormat fmt) const
 
virtual bool IsValid () const
 
virtual void Activate ()
 
virtual bool IsActive () const
 
virtual void Deactivate ()
 
virtual std::string GetComment () const
 
virtual void SetComment (const std::string &comment)
 
virtual bool HasComment () const
 
virtual void InvalidateComment ()
 
virtual const SEScalarGetScalar (const std::string &name)=0
 
virtual std::string ToJSON () const
 
virtual std::string ToString () const
 
- Public Member Functions inherited from Loggable
 Loggable (Logger *logger=nullptr)
 
 Loggable (std::string const &logfile)
 
virtual ~Loggable ()
 
virtual LoggerGetLogger () const
 
virtual void SetLogger (Logger &logger)
 
virtual void Debug (std::string const &msg) const
 
virtual void Debug (std::stringstream &msg) const
 
virtual void Debug (std::ostream &msg) const
 
virtual void Info (std::string const &msg) const
 
virtual void Info (std::stringstream &msg) const
 
virtual void Info (const std::stringstream &msg) const
 
virtual void Info (std::ostream &msg) const
 
virtual void Warning (std::string const &msg) const
 
virtual void Warning (std::stringstream &msg) const
 
virtual void Warning (std::ostream &msg) const
 
virtual void Error (std::string const &msg) const
 
virtual void Error (std::stringstream &msg) const
 
virtual void Error (std::ostream &msg) const
 
virtual void Fatal (std::string const &msg) const
 
virtual void Fatal (std::stringstream &msg) const
 
virtual void Fatal (std::ostream &msg) const
 

Static Public Attributes

static constexpr char const * Name = "Pressure Control"
 
- Static Public Attributes inherited from SEMechanicalVentilatorAction
static constexpr char const * ActionType = "Mechanical Ventilator"
 
- Static Public Attributes inherited from SEAction
static constexpr char const * ActionType = "Action"
 

Protected Attributes

eMechanicalVentilator_PressureControlMode m_Mode
 
SEScalar0To1m_FractionInspiredOxygen
 
SEScalarVolumePerTimem_InspirationPatientTriggerFlow
 
SEScalarPressurem_InspirationPatientTriggerPressure
 
eDriverWaveform m_InspirationWaveform
 
SEScalarTimem_InspiratoryPeriod
 
SEScalarPressurem_InspiratoryPressure
 
SEScalarPressurem_PositiveEndExpiratoryPressure
 
SEScalarFrequencym_RespirationRate
 
SEScalarTimem_Slope
 
- Protected Attributes inherited from SEMechanicalVentilatorMode
eSwitch m_Connection
 
- Protected Attributes inherited from SEAction
bool m_Active = true
 
std::string m_Comment
 
- Protected Attributes inherited from Loggable
bool myLogger
 
Loggerm_Logger
 

Friends

class PBEquipmentAction
 

Additional Inherited Members

- Static Public Member Functions inherited from SEAction
static SEActionCopy (const SEAction &, const SESubstanceManager &)
 
static SEActionSerializeFromString (const std::string, eSerializationFormat fmt, const SESubstanceManager &)
 
static std::string PrettyPrint (const std::string &str)
 

Constructor & Destructor Documentation

◆ SEMechanicalVentilatorPressureControl()

SEMechanicalVentilatorPressureControl::SEMechanicalVentilatorPressureControl ( Logger logger = nullptr)

◆ ~SEMechanicalVentilatorPressureControl()

SEMechanicalVentilatorPressureControl::~SEMechanicalVentilatorPressureControl ( )
virtual

Member Function Documentation

◆ Clear()

void SEMechanicalVentilatorPressureControl::Clear ( )
overridevirtual

Reimplemented from SEMechanicalVentilatorMode.

◆ Copy()

void SEMechanicalVentilatorPressureControl::Copy ( const SEMechanicalVentilatorPressureControl src,
bool  = false 
)
virtual

◆ Deactivate()

void SEMechanicalVentilatorPressureControl::Deactivate ( )
overridevirtual

Reimplemented from SEAction.

◆ GetFractionInspiredOxygen() [1/2]

SEScalar0To1 & SEMechanicalVentilatorPressureControl::GetFractionInspiredOxygen ( )
virtual

◆ GetFractionInspiredOxygen() [2/2]

double SEMechanicalVentilatorPressureControl::GetFractionInspiredOxygen ( ) const
virtual

◆ GetInspirationPatientTriggerFlow() [1/2]

SEScalarVolumePerTime & SEMechanicalVentilatorPressureControl::GetInspirationPatientTriggerFlow ( )
virtual

◆ GetInspirationPatientTriggerFlow() [2/2]

double SEMechanicalVentilatorPressureControl::GetInspirationPatientTriggerFlow ( const VolumePerTimeUnit unit) const
virtual

◆ GetInspirationPatientTriggerPressure() [1/2]

SEScalarPressure & SEMechanicalVentilatorPressureControl::GetInspirationPatientTriggerPressure ( )
virtual

◆ GetInspirationPatientTriggerPressure() [2/2]

double SEMechanicalVentilatorPressureControl::GetInspirationPatientTriggerPressure ( const PressureUnit unit) const
virtual

◆ GetInspirationWaveform()

eDriverWaveform SEMechanicalVentilatorPressureControl::GetInspirationWaveform ( ) const
virtual

◆ GetInspiratoryPeriod() [1/2]

SEScalarTime & SEMechanicalVentilatorPressureControl::GetInspiratoryPeriod ( )
virtual

◆ GetInspiratoryPeriod() [2/2]

double SEMechanicalVentilatorPressureControl::GetInspiratoryPeriod ( const TimeUnit unit) const
virtual

◆ GetInspiratoryPressure() [1/2]

SEScalarPressure & SEMechanicalVentilatorPressureControl::GetInspiratoryPressure ( )
virtual

◆ GetInspiratoryPressure() [2/2]

double SEMechanicalVentilatorPressureControl::GetInspiratoryPressure ( const PressureUnit unit) const
virtual

◆ GetMode()

eMechanicalVentilator_PressureControlMode SEMechanicalVentilatorPressureControl::GetMode ( ) const
virtual

◆ GetName()

virtual std::string SEMechanicalVentilatorPressureControl::GetName ( ) const
inlineoverridevirtual

Implements SEAction.

◆ GetPositiveEndExpiratoryPressure() [1/2]

SEScalarPressure & SEMechanicalVentilatorPressureControl::GetPositiveEndExpiratoryPressure ( )
virtual

◆ GetPositiveEndExpiratoryPressure() [2/2]

double SEMechanicalVentilatorPressureControl::GetPositiveEndExpiratoryPressure ( const PressureUnit unit) const
virtual

◆ GetRespirationRate() [1/2]

SEScalarFrequency & SEMechanicalVentilatorPressureControl::GetRespirationRate ( )
virtual

◆ GetRespirationRate() [2/2]

double SEMechanicalVentilatorPressureControl::GetRespirationRate ( const FrequencyUnit unit) const
virtual

◆ GetScalar()

const SEScalar * SEMechanicalVentilatorPressureControl::GetScalar ( const std::string &  name)
overridevirtual

Implements SEAction.

◆ GetSlope() [1/2]

SEScalarTime & SEMechanicalVentilatorPressureControl::GetSlope ( )
virtual

◆ GetSlope() [2/2]

double SEMechanicalVentilatorPressureControl::GetSlope ( const TimeUnit unit) const
virtual

◆ HasFractionInspiredOxygen()

bool SEMechanicalVentilatorPressureControl::HasFractionInspiredOxygen ( ) const
virtual

◆ HasInspirationPatientTriggerFlow()

bool SEMechanicalVentilatorPressureControl::HasInspirationPatientTriggerFlow ( ) const
virtual

◆ HasInspirationPatientTriggerPressure()

bool SEMechanicalVentilatorPressureControl::HasInspirationPatientTriggerPressure ( ) const
virtual

◆ HasInspirationWaveform()

bool SEMechanicalVentilatorPressureControl::HasInspirationWaveform ( ) const
virtual

◆ HasInspiratoryPeriod()

bool SEMechanicalVentilatorPressureControl::HasInspiratoryPeriod ( ) const
virtual

◆ HasInspiratoryPressure()

bool SEMechanicalVentilatorPressureControl::HasInspiratoryPressure ( ) const
virtual

◆ HasPositiveEndExpiratoryPressure()

bool SEMechanicalVentilatorPressureControl::HasPositiveEndExpiratoryPressure ( ) const
virtual

◆ HasRespirationRate()

bool SEMechanicalVentilatorPressureControl::HasRespirationRate ( ) const
virtual

◆ HasSlope()

bool SEMechanicalVentilatorPressureControl::HasSlope ( ) const
virtual

◆ IsActive()

bool SEMechanicalVentilatorPressureControl::IsActive ( ) const
overridevirtual

Reimplemented from SEMechanicalVentilatorMode.

◆ IsValid()

bool SEMechanicalVentilatorPressureControl::IsValid ( ) const
overridevirtual

Test if the action has all data it needs

Reimplemented from SEMechanicalVentilatorMode.

◆ SetInspirationWaveform()

void SEMechanicalVentilatorPressureControl::SetInspirationWaveform ( eDriverWaveform  w)
virtual

◆ SetMode()

void SEMechanicalVentilatorPressureControl::SetMode ( eMechanicalVentilator_PressureControlMode  c)
virtual

◆ ToSettings()

bool SEMechanicalVentilatorPressureControl::ToSettings ( SEMechanicalVentilatorSettings s,
const SESubstanceManager subMgr 
)
overridevirtual

Reimplemented from SEMechanicalVentilatorMode.

Friends And Related Function Documentation

◆ PBEquipmentAction

friend class PBEquipmentAction
friend

Member Data Documentation

◆ m_FractionInspiredOxygen

SEScalar0To1* SEMechanicalVentilatorPressureControl::m_FractionInspiredOxygen
protected

◆ m_InspirationPatientTriggerFlow

SEScalarVolumePerTime* SEMechanicalVentilatorPressureControl::m_InspirationPatientTriggerFlow
protected

◆ m_InspirationPatientTriggerPressure

SEScalarPressure* SEMechanicalVentilatorPressureControl::m_InspirationPatientTriggerPressure
protected

◆ m_InspirationWaveform

eDriverWaveform SEMechanicalVentilatorPressureControl::m_InspirationWaveform
protected

◆ m_InspiratoryPeriod

SEScalarTime* SEMechanicalVentilatorPressureControl::m_InspiratoryPeriod
protected

◆ m_InspiratoryPressure

SEScalarPressure* SEMechanicalVentilatorPressureControl::m_InspiratoryPressure
protected

◆ m_Mode

eMechanicalVentilator_PressureControlMode SEMechanicalVentilatorPressureControl::m_Mode
protected

◆ m_PositiveEndExpiratoryPressure

SEScalarPressure* SEMechanicalVentilatorPressureControl::m_PositiveEndExpiratoryPressure
protected

◆ m_RespirationRate

SEScalarFrequency* SEMechanicalVentilatorPressureControl::m_RespirationRate
protected

◆ m_Slope

SEScalarTime* SEMechanicalVentilatorPressureControl::m_Slope
protected

◆ Name

constexpr char const* SEMechanicalVentilatorPressureControl::Name = "Pressure Control"
staticconstexpr

Distributed under the Apache License, Version 2.0.

See accompanying NOTICE file for details.