#include <SEAction.h>
Inherits Loggable.
Inherited by SEAdvanceTime, SEAdvanceUntilStable, SEEnvironmentAction, SEEquipmentAction, SEOverrides, SEPatientAction, SESerializeRequested, and SESerializeState.
Public Member Functions | |
SEAction (Logger *logger) | |
virtual | ~SEAction () |
SEAction (const SEAction &)=delete | |
SEAction & | operator= (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 SEScalar * | GetScalar (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 Logger * | GetLogger () 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 Member Functions | |
static SEAction * | Copy (const SEAction &, const SESubstanceManager &) |
static SEAction * | SerializeFromString (const std::string, eSerializationFormat fmt, const SESubstanceManager &) |
static std::string | PrettyPrint (const std::string &str) |
Static Public Attributes | |
static constexpr char const * | ActionType = "Action" |
Protected Attributes | |
bool | m_Active = true |
std::string | m_Comment |
Protected Attributes inherited from Loggable | |
bool | myLogger |
Logger * | m_Logger |
Friends | |
class | PBAction |
Constructor & Destructor Documentation
◆ SEAction() [1/2]
SEAction::SEAction | ( | Logger * | logger | ) |
◆ ~SEAction()
|
virtual |
◆ SEAction() [2/2]
|
delete |
Member Function Documentation
◆ Activate()
|
inlinevirtual |
Actions can be turned off or on with various data combinations This method will encapsulate that logic in a single function
Reimplemented in SEAcuteRespiratoryDistressSyndromeExacerbation, SECardiovascularMechanicsModification, SEChronicObstructivePulmonaryDiseaseExacerbation, SEPatientAction, SEPneumoniaExacerbation, SESubstanceBolus, SEEnvironmentAction, and SEEquipmentAction.
◆ Clear()
|
virtual |
Reimplemented in SEAdvanceTime, SEAdvanceUntilStable, SEOverrides, SESerializeRequested, SESerializeState, SEAcuteRespiratoryDistressSyndromeExacerbation, SEAcuteStress, SEAirwayObstruction, SEArrhythmia, SEAsthmaAttack, SEBrainInjury, SEBronchoconstriction, SECardiovascularMechanicsModification, SEChestCompression, SEChestCompressionAutomated, SEChestCompressionInstantaneous, SEChestOcclusiveDressing, SEChronicObstructivePulmonaryDiseaseExacerbation, SEConsciousRespiration, SEConsumeNutrients, SEDyspnea, SEExercise, SEHemorrhage, SEHemothorax, SEImpairedAlveolarExchangeExacerbation, SEIntubation, SEMechanicalVentilation, SENeedleDecompression, SEPatientAction, SEPatientAssessmentRequest, SEPericardialEffusion, SEPneumoniaExacerbation, SEPulmonaryShuntExacerbation, SERespiratoryFatigue, SERespiratoryMechanicsConfiguration, SERespiratoryMechanicsModification, SESubstanceBolus, SESubstanceCompoundInfusion, SESubstanceInfusion, SESupplementalOxygen, SETensionPneumothorax, SETubeThoracostomy, SEUrinate, SEChangeEnvironmentalConditions, SEEnvironmentAction, SEThermalApplication, SEAnesthesiaMachineAction, SEAnesthesiaMachineConfiguration, SEAnesthesiaMachineExpiratoryValveLeak, SEAnesthesiaMachineExpiratoryValveObstruction, SEAnesthesiaMachineInspiratoryValveLeak, SEAnesthesiaMachineInspiratoryValveObstruction, SEAnesthesiaMachineMaskLeak, SEAnesthesiaMachineOxygenTankPressureLoss, SEAnesthesiaMachineOxygenWallPortPressureLoss, SEAnesthesiaMachineSodaLimeFailure, SEAnesthesiaMachineTubeCuffLeak, SEAnesthesiaMachineVaporizerFailure, SEAnesthesiaMachineVentilatorPressureLoss, SEAnesthesiaMachineYPieceDisconnect, SEBagValveMaskAction, SEBagValveMaskAutomated, SEBagValveMaskConfiguration, SEBagValveMaskInstantaneous, SEBagValveMaskSqueeze, SEECMOAction, SEECMOConfiguration, SEInhalerAction, SEInhalerConfiguration, SEMechanicalVentilatorAction, SEMechanicalVentilatorConfiguration, SEMechanicalVentilatorContinuousPositiveAirwayPressure, SEMechanicalVentilatorHold, SEMechanicalVentilatorLeak, SEMechanicalVentilatorMode, SEMechanicalVentilatorPressureControl, SEMechanicalVentilatorVolumeControl, and SEEquipmentAction.
◆ Copy()
|
static |
◆ Deactivate()
|
inlinevirtual |
Reimplemented in SEAcuteRespiratoryDistressSyndromeExacerbation, SEAcuteStress, SEAirwayObstruction, SEArrhythmia, SEAsthmaAttack, SEBrainInjury, SEBronchoconstriction, SECardiovascularMechanicsModification, SEChestCompression, SEChestCompressionAutomated, SEChestCompressionInstantaneous, SEChestOcclusiveDressing, SEChronicObstructivePulmonaryDiseaseExacerbation, SEConsciousRespiration, SEConsumeNutrients, SEDyspnea, SEExercise, SEHemorrhage, SEHemothorax, SEImpairedAlveolarExchangeExacerbation, SEIntubation, SEMechanicalVentilation, SENeedleDecompression, SEPatientAction, SEPatientAssessmentRequest, SEPericardialEffusion, SEPneumoniaExacerbation, SEPulmonaryShuntExacerbation, SERespiratoryFatigue, SERespiratoryMechanicsConfiguration, SERespiratoryMechanicsModification, SESubstanceBolus, SESubstanceCompoundInfusion, SESubstanceInfusion, SESupplementalOxygen, SETensionPneumothorax, SETubeThoracostomy, SEUrinate, SEChangeEnvironmentalConditions, SEEnvironmentAction, SEThermalApplication, SEAnesthesiaMachineConfiguration, SEAnesthesiaMachineExpiratoryValveLeak, SEAnesthesiaMachineExpiratoryValveObstruction, SEAnesthesiaMachineInspiratoryValveLeak, SEAnesthesiaMachineInspiratoryValveObstruction, SEAnesthesiaMachineMaskLeak, SEAnesthesiaMachineOxygenTankPressureLoss, SEAnesthesiaMachineOxygenWallPortPressureLoss, SEAnesthesiaMachineSodaLimeFailure, SEAnesthesiaMachineTubeCuffLeak, SEAnesthesiaMachineVaporizerFailure, SEAnesthesiaMachineVentilatorPressureLoss, SEAnesthesiaMachineYPieceDisconnect, SEBagValveMaskAutomated, SEBagValveMaskConfiguration, SEBagValveMaskInstantaneous, SEBagValveMaskSqueeze, SEECMOConfiguration, SEInhalerConfiguration, SEMechanicalVentilatorConfiguration, SEMechanicalVentilatorContinuousPositiveAirwayPressure, SEMechanicalVentilatorHold, SEMechanicalVentilatorLeak, SEMechanicalVentilatorPressureControl, SEMechanicalVentilatorVolumeControl, and SEEquipmentAction.
◆ GetActionType()
|
inlinevirtual |
Reimplemented in SEPatientAction, SEEnvironmentAction, SEAnesthesiaMachineAction, SEBagValveMaskAction, SEECMOAction, SEInhalerAction, and SEMechanicalVentilatorAction.
◆ GetComment()
|
virtual |
◆ GetName()
|
pure virtual |
Implemented in SEAdvanceTime, SEAdvanceUntilStable, SEOverrides, SESerializeRequested, SESerializeState, SEAcuteRespiratoryDistressSyndromeExacerbation, SEAcuteStress, SEAirwayObstruction, SEArrhythmia, SEAsthmaAttack, SEBrainInjury, SEBronchoconstriction, SECardiovascularMechanicsModification, SEChestCompression, SEChestCompressionAutomated, SEChestCompressionInstantaneous, SEChestOcclusiveDressing, SEChronicObstructivePulmonaryDiseaseExacerbation, SEConsciousRespiration, SEConsumeNutrients, SEDyspnea, SEExercise, SEHemorrhage, SEHemothorax, SEImpairedAlveolarExchangeExacerbation, SEIntubation, SEMechanicalVentilation, SENeedleDecompression, SEPatientAssessmentRequest, SEPericardialEffusion, SEPneumoniaExacerbation, SEPulmonaryShuntExacerbation, SERespiratoryFatigue, SERespiratoryMechanicsConfiguration, SERespiratoryMechanicsModification, SESubstanceBolus, SESubstanceCompoundInfusion, SESubstanceInfusion, SESupplementalOxygen, SETensionPneumothorax, SETubeThoracostomy, SEUrinate, SEChangeEnvironmentalConditions, SEThermalApplication, SEAnesthesiaMachineConfiguration, SEAnesthesiaMachineExpiratoryValveLeak, SEAnesthesiaMachineExpiratoryValveObstruction, SEAnesthesiaMachineInspiratoryValveLeak, SEAnesthesiaMachineInspiratoryValveObstruction, SEAnesthesiaMachineMaskLeak, SEAnesthesiaMachineOxygenTankPressureLoss, SEAnesthesiaMachineOxygenWallPortPressureLoss, SEAnesthesiaMachineSodaLimeFailure, SEAnesthesiaMachineTubeCuffLeak, SEAnesthesiaMachineVaporizerFailure, SEAnesthesiaMachineVentilatorPressureLoss, SEAnesthesiaMachineYPieceDisconnect, SEBagValveMaskAutomated, SEBagValveMaskConfiguration, SEBagValveMaskInstantaneous, SEBagValveMaskSqueeze, SEECMOConfiguration, SEInhalerConfiguration, SEMechanicalVentilatorConfiguration, SEMechanicalVentilatorContinuousPositiveAirwayPressure, SEMechanicalVentilatorHold, SEMechanicalVentilatorLeak, SEMechanicalVentilatorPressureControl, and SEMechanicalVentilatorVolumeControl.
◆ GetScalar()
|
pure virtual |
Implemented in SEAdvanceTime, SEAdvanceUntilStable, SEOverrides, SESerializeRequested, SESerializeState, SEAcuteRespiratoryDistressSyndromeExacerbation, SEAcuteStress, SEAirwayObstruction, SEArrhythmia, SEAsthmaAttack, SEBrainInjury, SEBronchoconstriction, SECardiovascularMechanicsModification, SEChestCompression, SEChestCompressionAutomated, SEChestCompressionInstantaneous, SEChestOcclusiveDressing, SEChronicObstructivePulmonaryDiseaseExacerbation, SEConsciousRespiration, SEConsumeNutrients, SEDyspnea, SEExercise, SEHemorrhage, SEHemothorax, SEImpairedAlveolarExchangeExacerbation, SEIntubation, SEMechanicalVentilation, SENeedleDecompression, SEPatientAssessmentRequest, SEPericardialEffusion, SEPneumoniaExacerbation, SEPulmonaryShuntExacerbation, SERespiratoryFatigue, SERespiratoryMechanicsConfiguration, SERespiratoryMechanicsModification, SESubstanceBolus, SESubstanceCompoundInfusion, SESubstanceInfusion, SESupplementalOxygen, SETensionPneumothorax, SETubeThoracostomy, SEUrinate, SEChangeEnvironmentalConditions, SEThermalApplication, SEAnesthesiaMachineConfiguration, SEAnesthesiaMachineExpiratoryValveLeak, SEAnesthesiaMachineExpiratoryValveObstruction, SEAnesthesiaMachineInspiratoryValveLeak, SEAnesthesiaMachineInspiratoryValveObstruction, SEAnesthesiaMachineMaskLeak, SEAnesthesiaMachineOxygenTankPressureLoss, SEAnesthesiaMachineOxygenWallPortPressureLoss, SEAnesthesiaMachineSodaLimeFailure, SEAnesthesiaMachineTubeCuffLeak, SEAnesthesiaMachineVaporizerFailure, SEAnesthesiaMachineVentilatorPressureLoss, SEAnesthesiaMachineYPieceDisconnect, SEBagValveMaskAutomated, SEBagValveMaskConfiguration, SEBagValveMaskInstantaneous, SEBagValveMaskSqueeze, SEECMOConfiguration, SEInhalerConfiguration, SEMechanicalVentilatorConfiguration, SEMechanicalVentilatorContinuousPositiveAirwayPressure, SEMechanicalVentilatorHold, SEMechanicalVentilatorLeak, SEMechanicalVentilatorPressureControl, and SEMechanicalVentilatorVolumeControl.
◆ HasComment()
|
virtual |
◆ InvalidateComment()
|
virtual |
◆ IsActive()
|
inlinevirtual |
Reimplemented in SEAcuteRespiratoryDistressSyndromeExacerbation, SEAcuteStress, SEAirwayObstruction, SEArrhythmia, SEAsthmaAttack, SEBrainInjury, SEBronchoconstriction, SECardiovascularMechanicsModification, SEChestCompression, SEChestCompressionAutomated, SEChestCompressionInstantaneous, SEChestOcclusiveDressing, SEChronicObstructivePulmonaryDiseaseExacerbation, SEConsciousRespiration, SEConsumeNutrients, SEDyspnea, SEExercise, SEHemorrhage, SEHemothorax, SEImpairedAlveolarExchangeExacerbation, SEIntubation, SEMechanicalVentilation, SENeedleDecompression, SEPatientAction, SEPatientAssessmentRequest, SEPericardialEffusion, SEPneumoniaExacerbation, SEPulmonaryShuntExacerbation, SERespiratoryFatigue, SERespiratoryMechanicsConfiguration, SERespiratoryMechanicsModification, SESubstanceBolus, SESubstanceCompoundInfusion, SESubstanceInfusion, SESupplementalOxygen, SETensionPneumothorax, SETubeThoracostomy, SEUrinate, SEChangeEnvironmentalConditions, SEEnvironmentAction, SEThermalApplication, SEAnesthesiaMachineConfiguration, SEAnesthesiaMachineExpiratoryValveLeak, SEAnesthesiaMachineExpiratoryValveObstruction, SEAnesthesiaMachineInspiratoryValveLeak, SEAnesthesiaMachineInspiratoryValveObstruction, SEAnesthesiaMachineMaskLeak, SEAnesthesiaMachineOxygenTankPressureLoss, SEAnesthesiaMachineOxygenWallPortPressureLoss, SEAnesthesiaMachineSodaLimeFailure, SEAnesthesiaMachineTubeCuffLeak, SEAnesthesiaMachineVaporizerFailure, SEAnesthesiaMachineVentilatorPressureLoss, SEAnesthesiaMachineYPieceDisconnect, SEBagValveMaskAutomated, SEBagValveMaskConfiguration, SEBagValveMaskInstantaneous, SEBagValveMaskSqueeze, SEECMOConfiguration, SEInhalerConfiguration, SEMechanicalVentilatorConfiguration, SEMechanicalVentilatorContinuousPositiveAirwayPressure, SEMechanicalVentilatorHold, SEMechanicalVentilatorLeak, SEMechanicalVentilatorMode, SEMechanicalVentilatorPressureControl, SEMechanicalVentilatorVolumeControl, and SEEquipmentAction.
◆ IsValid()
|
inlinevirtual |
Test if the action has all data it needs
Reimplemented in SEAdvanceTime, SEAdvanceUntilStable, SEOverrides, SESerializeRequested, SESerializeState, SEAcuteRespiratoryDistressSyndromeExacerbation, SEAcuteStress, SEAirwayObstruction, SEArrhythmia, SEAsthmaAttack, SEBrainInjury, SEBronchoconstriction, SECardiovascularMechanicsModification, SEChestCompression, SEChestCompressionAutomated, SEChestCompressionInstantaneous, SEChestOcclusiveDressing, SEChronicObstructivePulmonaryDiseaseExacerbation, SEConsciousRespiration, SEConsumeNutrients, SEDyspnea, SEExercise, SEHemorrhage, SEHemothorax, SEImpairedAlveolarExchangeExacerbation, SEIntubation, SEMechanicalVentilation, SENeedleDecompression, SEPatientAction, SEPatientAssessmentRequest, SEPericardialEffusion, SEPneumoniaExacerbation, SEPulmonaryShuntExacerbation, SERespiratoryFatigue, SERespiratoryMechanicsConfiguration, SERespiratoryMechanicsModification, SESubstanceBolus, SESubstanceCompoundInfusion, SESubstanceInfusion, SESupplementalOxygen, SETensionPneumothorax, SETubeThoracostomy, SEUrinate, SEChangeEnvironmentalConditions, SEEnvironmentAction, SEThermalApplication, SEAnesthesiaMachineAction, SEAnesthesiaMachineConfiguration, SEAnesthesiaMachineExpiratoryValveLeak, SEAnesthesiaMachineExpiratoryValveObstruction, SEAnesthesiaMachineInspiratoryValveLeak, SEAnesthesiaMachineInspiratoryValveObstruction, SEAnesthesiaMachineMaskLeak, SEAnesthesiaMachineOxygenTankPressureLoss, SEAnesthesiaMachineOxygenWallPortPressureLoss, SEAnesthesiaMachineSodaLimeFailure, SEAnesthesiaMachineTubeCuffLeak, SEAnesthesiaMachineVaporizerFailure, SEAnesthesiaMachineVentilatorPressureLoss, SEAnesthesiaMachineYPieceDisconnect, SEBagValveMaskAction, SEBagValveMaskAutomated, SEBagValveMaskConfiguration, SEBagValveMaskInstantaneous, SEBagValveMaskSqueeze, SEECMOAction, SEECMOConfiguration, SEInhalerAction, SEInhalerConfiguration, SEMechanicalVentilatorAction, SEMechanicalVentilatorConfiguration, SEMechanicalVentilatorContinuousPositiveAirwayPressure, SEMechanicalVentilatorHold, SEMechanicalVentilatorLeak, SEMechanicalVentilatorMode, SEMechanicalVentilatorPressureControl, SEMechanicalVentilatorVolumeControl, and SEEquipmentAction.
◆ operator=()
◆ PrettyPrint()
|
static |
◆ SerializeFromString()
|
static |
◆ SerializeToString()
|
virtual |
◆ SetComment()
|
virtual |
◆ ToJSON()
|
virtual |
◆ ToString()
|
virtual |
Friends And Related Function Documentation
◆ PBAction
|
friend |
Member Data Documentation
◆ ActionType
|
staticconstexpr |
◆ m_Active
|
protected |
◆ m_Comment
|
protected |