SEMechanicalVentilatorContinuousPositiveAirwayPressure Class Reference

#include <SEMechanicalVentilatorContinuousPositiveAirwayPressure.h>

Inherits SEMechanicalVentilatorMode.

Public Member Functions

 SEMechanicalVentilatorContinuousPositiveAirwayPressure (Logger *logger=nullptr)
 
virtual ~SEMechanicalVentilatorContinuousPositiveAirwayPressure ()
 
std::string GetName () const override
 
void Clear () override
 
virtual void Copy (const SEMechanicalVentilatorContinuousPositiveAirwayPressure &src, bool=false)
 
virtual bool ToSettings (SEMechanicalVentilatorSettings &s, const SESubstanceManager &subMgr) override
 
bool IsValid () const override
 
bool IsActive () const override
 
void Deactivate () override
 
virtual bool HasDeltaPressureSupport () const
 
virtual SEScalarPressureGetDeltaPressureSupport ()
 
virtual double GetDeltaPressureSupport (const PressureUnit &unit) const
 
virtual bool HasExpirationWaveform () const
 
virtual eDriverWaveform GetExpirationWaveform () const
 
virtual void SetExpirationWaveform (eDriverWaveform w)
 
virtual bool HasExpirationCycleFlow () const
 
virtual SEScalarVolumePerTimeGetExpirationCycleFlow ()
 
virtual double GetExpirationCycleFlow (const VolumePerTimeUnit &unit) const
 
virtual bool HasExpirationCyclePressure () const
 
virtual SEScalarPressureGetExpirationCyclePressure ()
 
virtual double GetExpirationCyclePressure (const PressureUnit &unit) const
 
virtual bool HasFractionInspiredOxygen () const
 
virtual SEScalar0To1GetFractionInspiredOxygen ()
 
virtual double GetFractionInspiredOxygen () const
 
virtual bool HasInspirationWaveform () const
 
virtual eDriverWaveform GetInspirationWaveform () const
 
virtual void SetInspirationWaveform (eDriverWaveform w)
 
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 HasPositiveEndExpiratoryPressure () const
 
virtual SEScalarPressureGetPositiveEndExpiratoryPressure ()
 
virtual double GetPositiveEndExpiratoryPressure (const PressureUnit &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 = "CPAP"
 
- 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

SEScalarPressurem_DeltaPressureSupport
 
eDriverWaveform m_ExpirationWaveform
 
SEScalarVolumePerTimem_ExpirationCycleFlow
 
SEScalarPressurem_ExpirationCyclePressure
 
SEScalar0To1m_FractionInspiredOxygen
 
eDriverWaveform m_InspirationWaveform
 
SEScalarVolumePerTimem_InspirationPatientTriggerFlow
 
SEScalarPressurem_InspirationPatientTriggerPressure
 
SEScalarPressurem_PositiveEndExpiratoryPressure
 
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

◆ SEMechanicalVentilatorContinuousPositiveAirwayPressure()

SEMechanicalVentilatorContinuousPositiveAirwayPressure::SEMechanicalVentilatorContinuousPositiveAirwayPressure ( Logger logger = nullptr)

◆ ~SEMechanicalVentilatorContinuousPositiveAirwayPressure()

SEMechanicalVentilatorContinuousPositiveAirwayPressure::~SEMechanicalVentilatorContinuousPositiveAirwayPressure ( )
virtual

Member Function Documentation

◆ Clear()

void SEMechanicalVentilatorContinuousPositiveAirwayPressure::Clear ( )
overridevirtual

Reimplemented from SEMechanicalVentilatorAction.

◆ Copy()

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

◆ Deactivate()

void SEMechanicalVentilatorContinuousPositiveAirwayPressure::Deactivate ( )
overridevirtual

Reimplemented from SEAction.

◆ GetDeltaPressureSupport() [1/2]

SEScalarPressure & SEMechanicalVentilatorContinuousPositiveAirwayPressure::GetDeltaPressureSupport ( )
virtual

◆ GetDeltaPressureSupport() [2/2]

double SEMechanicalVentilatorContinuousPositiveAirwayPressure::GetDeltaPressureSupport ( const PressureUnit unit) const
virtual

◆ GetExpirationCycleFlow() [1/2]

SEScalarVolumePerTime & SEMechanicalVentilatorContinuousPositiveAirwayPressure::GetExpirationCycleFlow ( )
virtual

◆ GetExpirationCycleFlow() [2/2]

double SEMechanicalVentilatorContinuousPositiveAirwayPressure::GetExpirationCycleFlow ( const VolumePerTimeUnit unit) const
virtual

◆ GetExpirationCyclePressure() [1/2]

SEScalarPressure & SEMechanicalVentilatorContinuousPositiveAirwayPressure::GetExpirationCyclePressure ( )
virtual

◆ GetExpirationCyclePressure() [2/2]

double SEMechanicalVentilatorContinuousPositiveAirwayPressure::GetExpirationCyclePressure ( const PressureUnit unit) const
virtual

◆ GetExpirationWaveform()

eDriverWaveform SEMechanicalVentilatorContinuousPositiveAirwayPressure::GetExpirationWaveform ( ) const
virtual

◆ GetFractionInspiredOxygen() [1/2]

SEScalar0To1 & SEMechanicalVentilatorContinuousPositiveAirwayPressure::GetFractionInspiredOxygen ( )
virtual

◆ GetFractionInspiredOxygen() [2/2]

double SEMechanicalVentilatorContinuousPositiveAirwayPressure::GetFractionInspiredOxygen ( ) const
virtual

◆ GetInspirationPatientTriggerFlow() [1/2]

SEScalarVolumePerTime & SEMechanicalVentilatorContinuousPositiveAirwayPressure::GetInspirationPatientTriggerFlow ( )
virtual

◆ GetInspirationPatientTriggerFlow() [2/2]

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

◆ GetInspirationPatientTriggerPressure() [1/2]

SEScalarPressure & SEMechanicalVentilatorContinuousPositiveAirwayPressure::GetInspirationPatientTriggerPressure ( )
virtual

◆ GetInspirationPatientTriggerPressure() [2/2]

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

◆ GetInspirationWaveform()

eDriverWaveform SEMechanicalVentilatorContinuousPositiveAirwayPressure::GetInspirationWaveform ( ) const
virtual

◆ GetName()

std::string SEMechanicalVentilatorContinuousPositiveAirwayPressure::GetName ( ) const
inlineoverridevirtual

Implements SEAction.

◆ GetPositiveEndExpiratoryPressure() [1/2]

SEScalarPressure & SEMechanicalVentilatorContinuousPositiveAirwayPressure::GetPositiveEndExpiratoryPressure ( )
virtual

◆ GetPositiveEndExpiratoryPressure() [2/2]

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

◆ GetScalar()

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

Implements SEAction.

◆ GetSlope() [1/2]

SEScalarTime & SEMechanicalVentilatorContinuousPositiveAirwayPressure::GetSlope ( )
virtual

◆ GetSlope() [2/2]

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

◆ HasDeltaPressureSupport()

bool SEMechanicalVentilatorContinuousPositiveAirwayPressure::HasDeltaPressureSupport ( ) const
virtual

◆ HasExpirationCycleFlow()

bool SEMechanicalVentilatorContinuousPositiveAirwayPressure::HasExpirationCycleFlow ( ) const
virtual

◆ HasExpirationCyclePressure()

bool SEMechanicalVentilatorContinuousPositiveAirwayPressure::HasExpirationCyclePressure ( ) const
virtual

◆ HasExpirationWaveform()

bool SEMechanicalVentilatorContinuousPositiveAirwayPressure::HasExpirationWaveform ( ) const
virtual

◆ HasFractionInspiredOxygen()

bool SEMechanicalVentilatorContinuousPositiveAirwayPressure::HasFractionInspiredOxygen ( ) const
virtual

◆ HasInspirationPatientTriggerFlow()

bool SEMechanicalVentilatorContinuousPositiveAirwayPressure::HasInspirationPatientTriggerFlow ( ) const
virtual

◆ HasInspirationPatientTriggerPressure()

bool SEMechanicalVentilatorContinuousPositiveAirwayPressure::HasInspirationPatientTriggerPressure ( ) const
virtual

◆ HasInspirationWaveform()

bool SEMechanicalVentilatorContinuousPositiveAirwayPressure::HasInspirationWaveform ( ) const
virtual

◆ HasPositiveEndExpiratoryPressure()

bool SEMechanicalVentilatorContinuousPositiveAirwayPressure::HasPositiveEndExpiratoryPressure ( ) const
virtual

◆ HasSlope()

bool SEMechanicalVentilatorContinuousPositiveAirwayPressure::HasSlope ( ) const
virtual

◆ IsActive()

bool SEMechanicalVentilatorContinuousPositiveAirwayPressure::IsActive ( ) const
overridevirtual

Reimplemented from SEAction.

◆ IsValid()

bool SEMechanicalVentilatorContinuousPositiveAirwayPressure::IsValid ( ) const
overridevirtual

Test if the action has all data it needs

Reimplemented from SEMechanicalVentilatorAction.

◆ SetExpirationWaveform()

void SEMechanicalVentilatorContinuousPositiveAirwayPressure::SetExpirationWaveform ( eDriverWaveform  w)
virtual

◆ SetInspirationWaveform()

void SEMechanicalVentilatorContinuousPositiveAirwayPressure::SetInspirationWaveform ( eDriverWaveform  w)
virtual

◆ ToSettings()

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

Reimplemented from SEMechanicalVentilatorMode.

Friends And Related Function Documentation

◆ PBEquipmentAction

friend class PBEquipmentAction
friend

Member Data Documentation

◆ m_DeltaPressureSupport

SEScalarPressure* SEMechanicalVentilatorContinuousPositiveAirwayPressure::m_DeltaPressureSupport
protected

◆ m_ExpirationCycleFlow

SEScalarVolumePerTime* SEMechanicalVentilatorContinuousPositiveAirwayPressure::m_ExpirationCycleFlow
protected

◆ m_ExpirationCyclePressure

SEScalarPressure* SEMechanicalVentilatorContinuousPositiveAirwayPressure::m_ExpirationCyclePressure
protected

◆ m_ExpirationWaveform

eDriverWaveform SEMechanicalVentilatorContinuousPositiveAirwayPressure::m_ExpirationWaveform
protected

◆ m_FractionInspiredOxygen

SEScalar0To1* SEMechanicalVentilatorContinuousPositiveAirwayPressure::m_FractionInspiredOxygen
protected

◆ m_InspirationPatientTriggerFlow

SEScalarVolumePerTime* SEMechanicalVentilatorContinuousPositiveAirwayPressure::m_InspirationPatientTriggerFlow
protected

◆ m_InspirationPatientTriggerPressure

SEScalarPressure* SEMechanicalVentilatorContinuousPositiveAirwayPressure::m_InspirationPatientTriggerPressure
protected

◆ m_InspirationWaveform

eDriverWaveform SEMechanicalVentilatorContinuousPositiveAirwayPressure::m_InspirationWaveform
protected

◆ m_PositiveEndExpiratoryPressure

SEScalarPressure* SEMechanicalVentilatorContinuousPositiveAirwayPressure::m_PositiveEndExpiratoryPressure
protected

◆ m_Slope

SEScalarTime* SEMechanicalVentilatorContinuousPositiveAirwayPressure::m_Slope
protected

◆ Name

constexpr char const* SEMechanicalVentilatorContinuousPositiveAirwayPressure::Name = "CPAP"
staticconstexpr

Distributed under the Apache License, Version 2.0.

See accompanying NOTICE file for details.