SEAnesthesiaMachine Class Reference

#include <SEAnesthesiaMachine.h>

Inherits SEEquipment.

Public Member Functions

 SEAnesthesiaMachine (Logger *logger)
 
virtual ~SEAnesthesiaMachine ()
 
void Clear () override
 
bool SerializeToString (std::string &output, eSerializationFormat m) const
 
bool SerializeToFile (const std::string &filename) const
 
bool SerializeFromString (const std::string &src, eSerializationFormat m, const SESubstanceManager &subMgr)
 
bool SerializeFromFile (const std::string &filename, const SESubstanceManager &subMgr)
 
- Public Member Functions inherited from SEEquipment
 SEEquipment (Logger *logger)
 
virtual ~SEEquipment ()
 
void Clear () override
 
- Public Member Functions inherited from SESystem
 SESystem (Logger *logger)
 
virtual ~SESystem ()
 
virtual void Clear ()
 
- 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
 

Protected Attributes

friend SEAnesthesiaMachineConfiguration
 
- Protected Attributes inherited from SESystem
std::stringstream m_ss
 
- Protected Attributes inherited from Loggable
bool myLogger
 
Loggerm_Logger
 

Friends

class PBAnesthesiaMachine
 

StateChange

  • This method is called when ever there is a state change Specically a new file has been loaded, configuration action, or the system reset Engine specific methodology can then update their logic.
eSwitch m_Connection
 
SEScalarVolumePerTimem_InletFlow
 
SEScalarm_InspiratoryExpiratoryRatio
 
SEScalar0To1m_OxygenFraction
 
eAnesthesiaMachine_OxygenSource m_OxygenSource
 
SEScalarPressurem_PositiveEndExpiratoryPressure
 
eAnesthesiaMachine_PrimaryGas m_PrimaryGas
 
SEScalarFrequencym_RespiratoryRate
 
SEScalarPressurem_ReliefValvePressure
 
SEScalarPressurem_PeakInspiratoryPressure
 
SEAnesthesiaMachineChamberm_LeftChamber
 
SEAnesthesiaMachineChamberm_RightChamber
 
SEAnesthesiaMachineOxygenBottlem_OxygenBottleOne
 
SEAnesthesiaMachineOxygenBottlem_OxygenBottleTwo
 
const SEScalarGetScalar (const std::string &name) override
 
virtual eSwitch GetConnection () const
 
virtual void SetConnection (eSwitch c)
 
virtual bool HasInletFlow () const
 
virtual SEScalarVolumePerTimeGetInletFlow ()
 
virtual double GetInletFlow (const VolumePerTimeUnit &unit) const
 
virtual bool HasInspiratoryExpiratoryRatio () const
 
virtual SEScalarGetInspiratoryExpiratoryRatio ()
 
virtual double GetInspiratoryExpiratoryRatio () const
 
virtual bool HasOxygenFraction () const
 
virtual SEScalar0To1GetOxygenFraction ()
 
virtual double GetOxygenFraction () const
 
virtual eAnesthesiaMachine_OxygenSource GetOxygenSource () const
 
virtual void SetOxygenSource (eAnesthesiaMachine_OxygenSource name)
 
virtual bool HasPositiveEndExpiratoryPressure () const
 
virtual SEScalarPressureGetPositiveEndExpiratoryPressure ()
 
virtual double GetPositiveEndExpiratoryPressure (const PressureUnit &unit) const
 
virtual eAnesthesiaMachine_PrimaryGas GetPrimaryGas () const
 
virtual void SetPrimaryGas (eAnesthesiaMachine_PrimaryGas name)
 
virtual bool HasRespiratoryRate () const
 
virtual SEScalarFrequencyGetRespiratoryRate ()
 
virtual double GetRespiratoryRate (const FrequencyUnit &unit) const
 
virtual bool HasReliefValvePressure () const
 
virtual SEScalarPressureGetReliefValvePressure ()
 
virtual double GetReliefValvePressure (const PressureUnit &unit) const
 
virtual bool HasPeakInspiratoryPressure () const
 
virtual SEScalarPressureGetPeakInspiratoryPressure ()
 
virtual double GetPeakInspiratoryPressure (const PressureUnit &unit) const
 
virtual bool HasLeftChamber () const
 
virtual SEAnesthesiaMachineChamberGetLeftChamber ()
 
virtual const SEAnesthesiaMachineChamberGetLeftChamber () const
 
virtual void RemoveLeftChamber ()
 
virtual bool HasRightChamber () const
 
virtual SEAnesthesiaMachineChamberGetRightChamber ()
 
virtual const SEAnesthesiaMachineChamberGetRightChamber () const
 
virtual void RemoveRightChamber ()
 
virtual bool HasOxygenBottleOne () const
 
virtual SEAnesthesiaMachineOxygenBottleGetOxygenBottleOne ()
 
virtual const SEAnesthesiaMachineOxygenBottleGetOxygenBottleOne () const
 
virtual void RemoveOxygenBottleOne ()
 
virtual bool HasOxygenBottleTwo () const
 
virtual SEAnesthesiaMachineOxygenBottleGetOxygenBottleTwo ()
 
virtual const SEAnesthesiaMachineOxygenBottleGetOxygenBottleTwo () const
 
virtual void RemoveOxygenBottleTwo ()
 
virtual void StateChange ()
 
virtual void Merge (const SEAnesthesiaMachine &from, SESubstanceManager &subMgr)
 
virtual void ProcessConfiguration (SEAnesthesiaMachineConfiguration &config, SESubstanceManager &subMgr)
 

Additional Inherited Members

- Static Public Member Functions inherited from SESystem
static const SEScalarGetScalar (const std::string &name, std::vector< SESystem * > *systems)
 

Constructor & Destructor Documentation

◆ SEAnesthesiaMachine()

SEAnesthesiaMachine::SEAnesthesiaMachine ( Logger logger)

◆ ~SEAnesthesiaMachine()

SEAnesthesiaMachine::~SEAnesthesiaMachine ( )
virtual

Member Function Documentation

◆ Clear()

void SEAnesthesiaMachine::Clear ( )
overridevirtual

Reimplemented from SESystem.

◆ GetConnection()

eSwitch SEAnesthesiaMachine::GetConnection ( ) const
virtual

◆ GetInletFlow() [1/2]

SEScalarVolumePerTime & SEAnesthesiaMachine::GetInletFlow ( )
virtual

◆ GetInletFlow() [2/2]

double SEAnesthesiaMachine::GetInletFlow ( const VolumePerTimeUnit unit) const
virtual

◆ GetInspiratoryExpiratoryRatio() [1/2]

SEScalar & SEAnesthesiaMachine::GetInspiratoryExpiratoryRatio ( )
virtual

◆ GetInspiratoryExpiratoryRatio() [2/2]

double SEAnesthesiaMachine::GetInspiratoryExpiratoryRatio ( ) const
virtual

◆ GetLeftChamber() [1/2]

SEAnesthesiaMachineChamber & SEAnesthesiaMachine::GetLeftChamber ( )
virtual

◆ GetLeftChamber() [2/2]

const SEAnesthesiaMachineChamber * SEAnesthesiaMachine::GetLeftChamber ( ) const
virtual

◆ GetOxygenBottleOne() [1/2]

SEAnesthesiaMachineOxygenBottle & SEAnesthesiaMachine::GetOxygenBottleOne ( )
virtual

◆ GetOxygenBottleOne() [2/2]

const SEAnesthesiaMachineOxygenBottle * SEAnesthesiaMachine::GetOxygenBottleOne ( ) const
virtual

◆ GetOxygenBottleTwo() [1/2]

SEAnesthesiaMachineOxygenBottle & SEAnesthesiaMachine::GetOxygenBottleTwo ( )
virtual

◆ GetOxygenBottleTwo() [2/2]

const SEAnesthesiaMachineOxygenBottle * SEAnesthesiaMachine::GetOxygenBottleTwo ( ) const
virtual

◆ GetOxygenFraction() [1/2]

SEScalar0To1 & SEAnesthesiaMachine::GetOxygenFraction ( )
virtual

◆ GetOxygenFraction() [2/2]

double SEAnesthesiaMachine::GetOxygenFraction ( ) const
virtual

◆ GetOxygenSource()

eAnesthesiaMachine_OxygenSource SEAnesthesiaMachine::GetOxygenSource ( ) const
virtual

◆ GetPeakInspiratoryPressure() [1/2]

SEScalarPressure & SEAnesthesiaMachine::GetPeakInspiratoryPressure ( )
virtual

◆ GetPeakInspiratoryPressure() [2/2]

double SEAnesthesiaMachine::GetPeakInspiratoryPressure ( const PressureUnit unit) const
virtual

◆ GetPositiveEndExpiratoryPressure() [1/2]

SEScalarPressure & SEAnesthesiaMachine::GetPositiveEndExpiratoryPressure ( )
virtual

◆ GetPositiveEndExpiratoryPressure() [2/2]

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

◆ GetPrimaryGas()

eAnesthesiaMachine_PrimaryGas SEAnesthesiaMachine::GetPrimaryGas ( ) const
virtual

◆ GetReliefValvePressure() [1/2]

SEScalarPressure & SEAnesthesiaMachine::GetReliefValvePressure ( )
virtual

◆ GetReliefValvePressure() [2/2]

double SEAnesthesiaMachine::GetReliefValvePressure ( const PressureUnit unit) const
virtual

◆ GetRespiratoryRate() [1/2]

SEScalarFrequency & SEAnesthesiaMachine::GetRespiratoryRate ( )
virtual

◆ GetRespiratoryRate() [2/2]

double SEAnesthesiaMachine::GetRespiratoryRate ( const FrequencyUnit unit) const
virtual

◆ GetRightChamber() [1/2]

SEAnesthesiaMachineChamber & SEAnesthesiaMachine::GetRightChamber ( )
virtual

◆ GetRightChamber() [2/2]

const SEAnesthesiaMachineChamber * SEAnesthesiaMachine::GetRightChamber ( ) const
virtual

◆ GetScalar()

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

Implements SESystem.

◆ HasInletFlow()

bool SEAnesthesiaMachine::HasInletFlow ( ) const
virtual

◆ HasInspiratoryExpiratoryRatio()

bool SEAnesthesiaMachine::HasInspiratoryExpiratoryRatio ( ) const
virtual

◆ HasLeftChamber()

bool SEAnesthesiaMachine::HasLeftChamber ( ) const
virtual

◆ HasOxygenBottleOne()

bool SEAnesthesiaMachine::HasOxygenBottleOne ( ) const
virtual

◆ HasOxygenBottleTwo()

bool SEAnesthesiaMachine::HasOxygenBottleTwo ( ) const
virtual

◆ HasOxygenFraction()

bool SEAnesthesiaMachine::HasOxygenFraction ( ) const
virtual

◆ HasPeakInspiratoryPressure()

bool SEAnesthesiaMachine::HasPeakInspiratoryPressure ( ) const
virtual

◆ HasPositiveEndExpiratoryPressure()

bool SEAnesthesiaMachine::HasPositiveEndExpiratoryPressure ( ) const
virtual

◆ HasReliefValvePressure()

bool SEAnesthesiaMachine::HasReliefValvePressure ( ) const
virtual

◆ HasRespiratoryRate()

bool SEAnesthesiaMachine::HasRespiratoryRate ( ) const
virtual

◆ HasRightChamber()

bool SEAnesthesiaMachine::HasRightChamber ( ) const
virtual

◆ Merge()

void SEAnesthesiaMachine::Merge ( const SEAnesthesiaMachine from,
SESubstanceManager subMgr 
)
protectedvirtual

◆ ProcessConfiguration()

void SEAnesthesiaMachine::ProcessConfiguration ( SEAnesthesiaMachineConfiguration config,
SESubstanceManager subMgr 
)
protectedvirtual

◆ RemoveLeftChamber()

void SEAnesthesiaMachine::RemoveLeftChamber ( )
virtual

◆ RemoveOxygenBottleOne()

void SEAnesthesiaMachine::RemoveOxygenBottleOne ( )
virtual

◆ RemoveOxygenBottleTwo()

void SEAnesthesiaMachine::RemoveOxygenBottleTwo ( )
virtual

◆ RemoveRightChamber()

void SEAnesthesiaMachine::RemoveRightChamber ( )
virtual

◆ SerializeFromFile()

bool SEAnesthesiaMachine::SerializeFromFile ( const std::string &  filename,
const SESubstanceManager subMgr 
)

◆ SerializeFromString()

bool SEAnesthesiaMachine::SerializeFromString ( const std::string &  src,
eSerializationFormat  m,
const SESubstanceManager subMgr 
)

◆ SerializeToFile()

bool SEAnesthesiaMachine::SerializeToFile ( const std::string &  filename) const

◆ SerializeToString()

bool SEAnesthesiaMachine::SerializeToString ( std::string &  output,
eSerializationFormat  m 
) const

◆ SetConnection()

void SEAnesthesiaMachine::SetConnection ( eSwitch  c)
virtual

◆ SetOxygenSource()

void SEAnesthesiaMachine::SetOxygenSource ( eAnesthesiaMachine_OxygenSource  name)
virtual

◆ SetPrimaryGas()

void SEAnesthesiaMachine::SetPrimaryGas ( eAnesthesiaMachine_PrimaryGas  name)
virtual

◆ StateChange()

virtual void SEAnesthesiaMachine::StateChange ( )
inlineprotectedvirtual

Friends And Related Function Documentation

◆ PBAnesthesiaMachine

friend class PBAnesthesiaMachine
friend

Member Data Documentation

◆ m_Connection

eSwitch SEAnesthesiaMachine::m_Connection
protected

◆ m_InletFlow

SEScalarVolumePerTime* SEAnesthesiaMachine::m_InletFlow
protected

◆ m_InspiratoryExpiratoryRatio

SEScalar* SEAnesthesiaMachine::m_InspiratoryExpiratoryRatio
protected

◆ m_LeftChamber

SEAnesthesiaMachineChamber* SEAnesthesiaMachine::m_LeftChamber
protected

◆ m_OxygenBottleOne

SEAnesthesiaMachineOxygenBottle* SEAnesthesiaMachine::m_OxygenBottleOne
protected

◆ m_OxygenBottleTwo

SEAnesthesiaMachineOxygenBottle* SEAnesthesiaMachine::m_OxygenBottleTwo
protected

◆ m_OxygenFraction

SEScalar0To1* SEAnesthesiaMachine::m_OxygenFraction
protected

◆ m_OxygenSource

eAnesthesiaMachine_OxygenSource SEAnesthesiaMachine::m_OxygenSource
protected

◆ m_PeakInspiratoryPressure

SEScalarPressure* SEAnesthesiaMachine::m_PeakInspiratoryPressure
protected

◆ m_PositiveEndExpiratoryPressure

SEScalarPressure* SEAnesthesiaMachine::m_PositiveEndExpiratoryPressure
protected

◆ m_PrimaryGas

eAnesthesiaMachine_PrimaryGas SEAnesthesiaMachine::m_PrimaryGas
protected

◆ m_ReliefValvePressure

SEScalarPressure* SEAnesthesiaMachine::m_ReliefValvePressure
protected

◆ m_RespiratoryRate

SEScalarFrequency* SEAnesthesiaMachine::m_RespiratoryRate
protected

◆ m_RightChamber

SEAnesthesiaMachineChamber* SEAnesthesiaMachine::m_RightChamber
protected

◆ SEAnesthesiaMachineConfiguration

friend SEAnesthesiaMachine::SEAnesthesiaMachineConfiguration
protected

Distributed under the Apache License, Version 2.0.

See accompanying NOTICE file for details.