#include <SEAction.h>

Inherits Loggable.

Inherited by SEAdvanceTime, SEEnvironmentAction, SEEquipmentAction, SEOverrides, SEPatientAction, and SESerializeState.

Public Member Functions

 SEAction (Logger *logger)
 
virtual ~SEAction ()
 
 SEAction (const SEAction &)=delete
 
SEActionoperator= (const SEAction &)=delete
 
virtual void Clear ()
 
virtual bool IsValid () const
 
virtual bool IsActive () const
 
virtual void Activate ()
 
virtual void Deactivate ()
 
virtual std::string GetComment () const
 
virtual void SetComment (const std::string &comment)
 
virtual bool HasComment () const
 
virtual void InvalidateComment ()
 
virtual void ToString (std::ostream &str) const =0
 
virtual const SEScalarGetScalar (const std::string &name)=0
 
- 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, std::string const &origin=empty) const
 
virtual void Debug (std::stringstream &msg, std::string const &origin=empty) const
 
virtual void Debug (std::ostream &msg, std::string const &origin=empty) const
 
virtual void Info (std::string const &msg, std::string const &origin=empty) const
 
virtual void Info (std::stringstream &msg, std::string const &origin=empty) const
 
virtual void Info (const std::stringstream &msg, std::string const &origin=empty) const
 
virtual void Info (std::ostream &msg, std::string const &origin=empty) const
 
virtual void Warning (std::string const &msg, std::string const &origin=empty) const
 
virtual void Warning (std::stringstream &msg, std::string const &origin=empty) const
 
virtual void Warning (std::ostream &msg, std::string const &origin=empty) const
 
virtual void Error (std::string const &msg, std::string const &origin=empty) const
 
virtual void Error (std::stringstream &msg, std::string const &origin=empty) const
 
virtual void Error (std::ostream &msg, std::string const &origin=empty) const
 
virtual void Fatal (std::string const &msg, std::string const &origin=empty) const
 
virtual void Fatal (std::stringstream &msg, std::string const &origin=empty) const
 
virtual void Fatal (std::ostream &msg, std::string const &origin=empty) const
 

Static Public Member Functions

static SEActionCopy (const SEAction &, const SESubstanceManager &)
 

Protected Attributes

bool m_Active = true
 
std::string m_Comment
 
- Protected Attributes inherited from Loggable
bool myLogger
 
Loggerm_Logger
 

Friends

class PBAction
 

Additional Inherited Members

- Static Public Attributes inherited from Loggable
static const std::string empty
 

Constructor & Destructor Documentation

◆ SEAction() [1/2]

SEAction::SEAction ( Logger logger)

◆ ~SEAction()

SEAction::~SEAction ( )
virtual

◆ SEAction() [2/2]

SEAction::SEAction ( const SEAction )
delete

Member Function Documentation

◆ Activate()

virtual void SEAction::Activate ( )
inlinevirtual

Reimplemented in SESubstanceBolus.

◆ Clear()

void SEAction::Clear ( )
virtual

Reimplemented in SEHemorrhage, SEMechanicalVentilation, SEConsciousRespiration, SEIntubation, SESupplementalOxygen, SESerializeState, SEBrainInjury, SEMechanicalVentilatorPressureControl, SEMechanicalVentilatorVolumeControl, SEConsumeNutrients, SEOverrides, SEPatientAssessmentRequest, SERespiratoryMechanicsConfiguration, SESubstanceBolus, SESubstanceCompoundInfusion, SESubstanceInfusion, SEChangeEnvironmentalConditions, SEThermalApplication, SEAnesthesiaMachineConfiguration, SEBagValveMaskAutomated, SEBagValveMaskConfiguration, SEBagValveMaskInstantaneous, SEBagValveMaskSqueeze, SEInhalerConfiguration, SEMechanicalVentilatorConfiguration, SEMechanicalVentilatorContinuousPositiveAirwayPressure, SEMechanicalVentilatorHold, SEMechanicalVentilatorLeak, SEAdvanceTime, SEAcuteRespiratoryDistressSyndromeExacerbation, SEAcuteStress, SEAirwayObstruction, SEAsthmaAttack, SEBronchoconstriction, SECardiacArrest, SEChestCompressionForce, SEChestOcclusiveDressing, SEChronicObstructivePulmonaryDiseaseExacerbation, SEDyspnea, SEExercise, SELobarPneumoniaExacerbation, SENeedleDecompression, SEPatientAction, SEPericardialEffusion, SEPulmonaryShuntExacerbation, SERespiratoryFatigue, SETensionPneumothorax, SEUrinate, SEInhalerAction, SEMechanicalVentilatorMode, SEChestCompressionForceScale, SEImpairedAlveolarExchangeExacerbation, SEEnvironmentAction, SEAnesthesiaMachineAction, SEAnesthesiaMachineExpiratoryValveLeak, SEAnesthesiaMachineExpiratoryValveObstruction, SEAnesthesiaMachineInspiratoryValveLeak, SEAnesthesiaMachineInspiratoryValveObstruction, SEAnesthesiaMachineMaskLeak, SEAnesthesiaMachineOxygenTankPressureLoss, SEAnesthesiaMachineOxygenWallPortPressureLoss, SEAnesthesiaMachineSodaLimeFailure, SEAnesthesiaMachineTubeCuffLeak, SEAnesthesiaMachineVaporizerFailure, SEAnesthesiaMachineVentilatorPressureLoss, SEAnesthesiaMachineYPieceDisconnect, SEBagValveMaskAction, SEMechanicalVentilatorAction, and SEEquipmentAction.

◆ Copy()

SEAction * SEAction::Copy ( const SEAction action,
const SESubstanceManager subMgr 
)
static

◆ Deactivate()

virtual void SEAction::Deactivate ( )
inlinevirtual

Reimplemented in SEHemorrhage, SEMechanicalVentilation, SEConsciousRespiration, SEIntubation, SESupplementalOxygen, SEBrainInjury, SEMechanicalVentilatorPressureControl, SEMechanicalVentilatorVolumeControl, SEConsumeNutrients, SESubstanceBolus, SEMechanicalVentilatorContinuousPositiveAirwayPressure, SEPatientAssessmentRequest, SERespiratoryMechanicsConfiguration, SESubstanceCompoundInfusion, SESubstanceInfusion, SEChangeEnvironmentalConditions, SEThermalApplication, SEAnesthesiaMachineConfiguration, SEBagValveMaskAutomated, SEBagValveMaskConfiguration, SEBagValveMaskInstantaneous, SEBagValveMaskSqueeze, SEInhalerConfiguration, SEMechanicalVentilatorConfiguration, SEMechanicalVentilatorHold, SEMechanicalVentilatorLeak, SEAcuteRespiratoryDistressSyndromeExacerbation, SEAcuteStress, SEAirwayObstruction, SEAsthmaAttack, SEBronchoconstriction, SECardiacArrest, SEChestCompressionForce, SEChestOcclusiveDressing, SEChronicObstructivePulmonaryDiseaseExacerbation, SEDyspnea, SEExercise, SELobarPneumoniaExacerbation, SENeedleDecompression, SEPericardialEffusion, SEPulmonaryShuntExacerbation, SERespiratoryFatigue, SETensionPneumothorax, SEUrinate, SEChestCompressionForceScale, SEImpairedAlveolarExchangeExacerbation, SEAnesthesiaMachineExpiratoryValveLeak, SEAnesthesiaMachineExpiratoryValveObstruction, SEAnesthesiaMachineInspiratoryValveLeak, SEAnesthesiaMachineInspiratoryValveObstruction, SEAnesthesiaMachineMaskLeak, SEAnesthesiaMachineOxygenTankPressureLoss, SEAnesthesiaMachineOxygenWallPortPressureLoss, SEAnesthesiaMachineSodaLimeFailure, SEAnesthesiaMachineTubeCuffLeak, SEAnesthesiaMachineVaporizerFailure, SEAnesthesiaMachineVentilatorPressureLoss, and SEAnesthesiaMachineYPieceDisconnect.

◆ GetComment()

std::string SEAction::GetComment ( ) const
virtual

◆ GetScalar()

virtual const SEScalar* SEAction::GetScalar ( const std::string &  name)
pure virtual

Implemented in SEHemorrhage, SEMechanicalVentilation, SEMechanicalVentilatorPressureControl, SEMechanicalVentilatorVolumeControl, SESubstanceBolus, SEConsciousRespiration, SEMechanicalVentilatorContinuousPositiveAirwayPressure, SEBagValveMaskAutomated, SEBagValveMaskSqueeze, SESubstanceInfusion, SESupplementalOxygen, SEThermalApplication, SERespiratoryMechanicsConfiguration, SETensionPneumothorax, SEAcuteRespiratoryDistressSyndromeExacerbation, SEIntubation, SELobarPneumoniaExacerbation, SESubstanceCompoundInfusion, SEChangeEnvironmentalConditions, SEAnesthesiaMachineConfiguration, SEBagValveMaskConfiguration, SEInhalerConfiguration, SEMechanicalVentilatorConfiguration, SEBrainInjury, SEImpairedAlveolarExchangeExacerbation, SEConsumeNutrients, SESerializeState, SEBagValveMaskInstantaneous, SEChestOcclusiveDressing, SEChronicObstructivePulmonaryDiseaseExacerbation, SENeedleDecompression, SEOverrides, SEChestCompressionForceScale, SEMechanicalVentilatorHold, SEMechanicalVentilatorLeak, SEAcuteStress, SEAirwayObstruction, SEAsthmaAttack, SEBronchoconstriction, SEChestCompressionForce, SEDyspnea, SEExercise, SEPatientAssessmentRequest, SEPericardialEffusion, SEPulmonaryShuntExacerbation, SERespiratoryFatigue, SECardiacArrest, SEAnesthesiaMachineExpiratoryValveLeak, SEAnesthesiaMachineExpiratoryValveObstruction, SEAnesthesiaMachineInspiratoryValveLeak, SEAnesthesiaMachineInspiratoryValveObstruction, SEAnesthesiaMachineMaskLeak, SEAnesthesiaMachineSodaLimeFailure, SEAnesthesiaMachineTubeCuffLeak, SEAnesthesiaMachineVaporizerFailure, SEAnesthesiaMachineVentilatorPressureLoss, SEAnesthesiaMachineYPieceDisconnect, SEAnesthesiaMachineOxygenTankPressureLoss, SEAnesthesiaMachineOxygenWallPortPressureLoss, SEAdvanceTime, and SEUrinate.

◆ HasComment()

bool SEAction::HasComment ( ) const
virtual

◆ InvalidateComment()

void SEAction::InvalidateComment ( )
virtual

◆ IsActive()

virtual bool SEAction::IsActive ( ) const
inlinevirtual

Actions can be turned off or on with various data combinations This method will encapsulate that logic in a single function

Reimplemented in SEHemorrhage, SEMechanicalVentilation, SEConsciousRespiration, SEIntubation, SESupplementalOxygen, SEBrainInjury, SEMechanicalVentilatorPressureControl, SEMechanicalVentilatorVolumeControl, SEConsumeNutrients, SEMechanicalVentilatorContinuousPositiveAirwayPressure, SEPatientAssessmentRequest, SERespiratoryMechanicsConfiguration, SESubstanceBolus, SESubstanceCompoundInfusion, SESubstanceInfusion, SEChangeEnvironmentalConditions, SEThermalApplication, SEAnesthesiaMachineConfiguration, SEBagValveMaskAutomated, SEBagValveMaskConfiguration, SEBagValveMaskInstantaneous, SEBagValveMaskSqueeze, SEInhalerConfiguration, SEMechanicalVentilatorConfiguration, SEMechanicalVentilatorHold, SEMechanicalVentilatorLeak, SEAcuteRespiratoryDistressSyndromeExacerbation, SEAcuteStress, SEAirwayObstruction, SEAsthmaAttack, SEBronchoconstriction, SECardiacArrest, SEChestCompressionForce, SEChestOcclusiveDressing, SEChronicObstructivePulmonaryDiseaseExacerbation, SEDyspnea, SEExercise, SELobarPneumoniaExacerbation, SENeedleDecompression, SEPericardialEffusion, SEPulmonaryShuntExacerbation, SERespiratoryFatigue, SETensionPneumothorax, SEUrinate, SEChestCompressionForceScale, SEImpairedAlveolarExchangeExacerbation, SEAnesthesiaMachineExpiratoryValveLeak, SEAnesthesiaMachineExpiratoryValveObstruction, SEAnesthesiaMachineInspiratoryValveLeak, SEAnesthesiaMachineInspiratoryValveObstruction, SEAnesthesiaMachineMaskLeak, SEAnesthesiaMachineOxygenTankPressureLoss, SEAnesthesiaMachineOxygenWallPortPressureLoss, SEAnesthesiaMachineSodaLimeFailure, SEAnesthesiaMachineTubeCuffLeak, SEAnesthesiaMachineVaporizerFailure, SEAnesthesiaMachineVentilatorPressureLoss, SEAnesthesiaMachineYPieceDisconnect, and SEMechanicalVentilatorMode.

◆ IsValid()

virtual bool SEAction::IsValid ( ) const
inlinevirtual

Test if the action has all data it needs

Reimplemented in SEHemorrhage, SEMechanicalVentilation, SEConsciousRespiration, SEIntubation, SESupplementalOxygen, SEBrainInjury, SEMechanicalVentilatorPressureControl, SEMechanicalVentilatorVolumeControl, SESerializeState, SEConsumeNutrients, SEMechanicalVentilatorContinuousPositiveAirwayPressure, SEOverrides, SEPatientAssessmentRequest, SERespiratoryMechanicsConfiguration, SESubstanceBolus, SESubstanceCompoundInfusion, SESubstanceInfusion, SEChangeEnvironmentalConditions, SEThermalApplication, SEAnesthesiaMachineConfiguration, SEBagValveMaskAutomated, SEBagValveMaskConfiguration, SEBagValveMaskInstantaneous, SEBagValveMaskSqueeze, SEInhalerConfiguration, SEMechanicalVentilatorConfiguration, SEMechanicalVentilatorHold, SEMechanicalVentilatorLeak, SEAcuteRespiratoryDistressSyndromeExacerbation, SEAcuteStress, SEAirwayObstruction, SEAsthmaAttack, SEBronchoconstriction, SECardiacArrest, SEChestCompressionForce, SEChestOcclusiveDressing, SEChronicObstructivePulmonaryDiseaseExacerbation, SEDyspnea, SEExercise, SELobarPneumoniaExacerbation, SENeedleDecompression, SEPericardialEffusion, SEPulmonaryShuntExacerbation, SERespiratoryFatigue, SETensionPneumothorax, SEUrinate, SEAdvanceTime, SEChestCompressionForceScale, SEImpairedAlveolarExchangeExacerbation, SEPatientAction, SEAnesthesiaMachineExpiratoryValveLeak, SEAnesthesiaMachineExpiratoryValveObstruction, SEAnesthesiaMachineInspiratoryValveLeak, SEAnesthesiaMachineInspiratoryValveObstruction, SEAnesthesiaMachineMaskLeak, SEAnesthesiaMachineOxygenTankPressureLoss, SEAnesthesiaMachineOxygenWallPortPressureLoss, SEAnesthesiaMachineSodaLimeFailure, SEAnesthesiaMachineTubeCuffLeak, SEAnesthesiaMachineVaporizerFailure, SEAnesthesiaMachineVentilatorPressureLoss, SEAnesthesiaMachineYPieceDisconnect, SEInhalerAction, SEMechanicalVentilatorMode, SEEnvironmentAction, SEAnesthesiaMachineAction, SEBagValveMaskAction, SEMechanicalVentilatorAction, and SEEquipmentAction.

◆ operator=()

SEAction& SEAction::operator= ( const SEAction )
delete

◆ SetComment()

void SEAction::SetComment ( const std::string &  comment)
virtual

◆ ToString()

virtual void SEAction::ToString ( std::ostream &  str) const
pure virtual

Implemented in SEHemorrhage, SEMechanicalVentilation, SEMechanicalVentilatorPressureControl, SEMechanicalVentilatorVolumeControl, SESubstanceBolus, SEConsciousRespiration, SEMechanicalVentilatorContinuousPositiveAirwayPressure, SEBagValveMaskAutomated, SEBagValveMaskSqueeze, SESubstanceInfusion, SESupplementalOxygen, SEThermalApplication, SERespiratoryMechanicsConfiguration, SETensionPneumothorax, SEAcuteRespiratoryDistressSyndromeExacerbation, SEIntubation, SELobarPneumoniaExacerbation, SESubstanceCompoundInfusion, SEChangeEnvironmentalConditions, SEAnesthesiaMachineConfiguration, SEBagValveMaskConfiguration, SEInhalerConfiguration, SEMechanicalVentilatorConfiguration, SEBrainInjury, SEImpairedAlveolarExchangeExacerbation, SEConsumeNutrients, SESerializeState, SEBagValveMaskInstantaneous, SEChestOcclusiveDressing, SEChronicObstructivePulmonaryDiseaseExacerbation, SENeedleDecompression, SEOverrides, SEChestCompressionForceScale, SEMechanicalVentilatorHold, SEMechanicalVentilatorLeak, SEAcuteStress, SEAirwayObstruction, SEAsthmaAttack, SEBronchoconstriction, SEChestCompressionForce, SEDyspnea, SEExercise, SEPatientAssessmentRequest, SEPericardialEffusion, SEPulmonaryShuntExacerbation, SERespiratoryFatigue, SECardiacArrest, SEAnesthesiaMachineExpiratoryValveLeak, SEAnesthesiaMachineExpiratoryValveObstruction, SEAnesthesiaMachineInspiratoryValveLeak, SEAnesthesiaMachineInspiratoryValveObstruction, SEAnesthesiaMachineMaskLeak, SEAnesthesiaMachineSodaLimeFailure, SEAnesthesiaMachineTubeCuffLeak, SEAnesthesiaMachineVaporizerFailure, SEAnesthesiaMachineVentilatorPressureLoss, SEAnesthesiaMachineYPieceDisconnect, SEMechanicalVentilatorMode, SEAnesthesiaMachineOxygenTankPressureLoss, SEAnesthesiaMachineOxygenWallPortPressureLoss, SEAdvanceTime, SEUrinate, SEPatientAction, SEInhalerAction, SEEnvironmentAction, SEAnesthesiaMachineAction, SEBagValveMaskAction, SEMechanicalVentilatorAction, and SEEquipmentAction.

Friends And Related Function Documentation

◆ PBAction

friend class PBAction
friend

Member Data Documentation

◆ m_Active

bool SEAction::m_Active = true
protected

◆ m_Comment

std::string SEAction::m_Comment
protected

Distributed under the Apache License, Version 2.0.

See accompanying NOTICE file for details.