Pulse adds COVID-19 Simulation Support
×
SEConditionManager Class Reference

#include <SEConditionManager.h>

Inherits Loggable.

Public Member Functions

 SEConditionManager (Logger *logger=nullptr)
 
 ~SEConditionManager ()
 
void Clear ()
 
void Copy (const SEConditionManager &src, const SESubstanceManager &subMgr)
 
bool Copy (const SECondition &condition, const SESubstanceManager &)
 
bool SerializeToString (std::string &output, SerializationFormat m) const
 
bool SerializeToFile (const std::string &filename) const
 
bool SerializeFromString (const std::string &src, SerializationFormat m, const SESubstanceManager &subMgr)
 
bool SerializeFromFile (const std::string &filename, const SESubstanceManager &subMgr)
 
bool IsEmpty () const
 
bool HasAcuteRespiratoryDistressSyndrome () const
 
SEAcuteRespiratoryDistressSyndromeGetAcuteRespiratoryDistressSyndrome ()
 
const SEAcuteRespiratoryDistressSyndromeGetAcuteRespiratoryDistressSyndrome () const
 
bool HasChronicAnemia () const
 
SEChronicAnemiaGetChronicAnemia ()
 
const SEChronicAnemiaGetChronicAnemia () const
 
bool HasChronicObstructivePulmonaryDisease () const
 
SEChronicObstructivePulmonaryDiseaseGetChronicObstructivePulmonaryDisease ()
 
const SEChronicObstructivePulmonaryDiseaseGetChronicObstructivePulmonaryDisease () const
 
bool HasChronicHeartFailure () const
 
bool HasChronicVentricularSystolicDysfunction () const
 
SEChronicVentricularSystolicDysfunctionGetChronicVentricularSystolicDysfunction ()
 
const SEChronicVentricularSystolicDysfunctionGetChronicVentricularSystolicDysfunction () const
 
bool HasChronicPericardialEffusion () const
 
SEChronicPericardialEffusionGetChronicPericardialEffusion ()
 
const SEChronicPericardialEffusionGetChronicPericardialEffusion () const
 
bool HasChronicRenalStenosis () const
 
SEChronicRenalStenosisGetChronicRenalStenosis ()
 
const SEChronicRenalStenosisGetChronicRenalStenosis () const
 
bool HasConsumeMeal () const
 
SEConsumeMealGetConsumeMeal ()
 
const SEConsumeMealGetConsumeMeal () const
 
bool HasImpairedAlveolarExchange () const
 
SEImpairedAlveolarExchangeGetImpairedAlveolarExchange ()
 
const SEImpairedAlveolarExchangeGetImpairedAlveolarExchange () const
 
bool HasLobarPneumonia () const
 
SELobarPneumoniaGetLobarPneumonia ()
 
const SELobarPneumoniaGetLobarPneumonia () const
 
bool HasPulmonaryFibrosis () const
 
SEPulmonaryFibrosisGetPulmonaryFibrosis ()
 
const SEPulmonaryFibrosisGetPulmonaryFibrosis () const
 
bool HasPulmonaryShunt () const
 
SEPulmonaryShuntGetPulmonaryShunt ()
 
const SEPulmonaryShuntGetPulmonaryShunt () const
 
bool HasSepsis () const
 
SESepsisGetSepsis ()
 
const SESepsisGetSepsis () const
 
bool HasInitialEnvironmentalConditions () const
 
SEInitialEnvironmentalConditionsGetInitialEnvironmentalConditions ()
 
const SEInitialEnvironmentalConditionsGetInitialEnvironmentalConditions () const
 
void GetAllConditions (std::vector< const SECondition *> &v) 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, 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
 
std::string to_string (int i)
 
std::string to_string (unsigned int i)
 
std::string to_string (size_t t)
 
std::string to_string (float f)
 
std::string to_string (double d)
 

Protected Attributes

SEAcuteRespiratoryDistressSyndromem_ARDS
 
SEChronicAnemiam_Anemia
 
SEConsumeMealm_ConsumeMeal
 
SEChronicObstructivePulmonaryDiseasem_COPD
 
SEChronicVentricularSystolicDysfunctionm_ChronicVentricularSystolicDysfunction
 
SEImpairedAlveolarExchangem_ImpairedAlveolarExchange
 
SEChronicPericardialEffusionm_PericardialEffusion
 
SELobarPneumoniam_LobarPneumonia
 
SEChronicRenalStenosism_RenalStenosis
 
SEPulmonaryFibrosism_PulmonaryFibrosis
 
SEPulmonaryShuntm_PulmonaryShunt
 
SESepsism_Sepsis
 
SEInitialEnvironmentalConditionsm_InitialEnvironmentalConditions
 
std::stringstream m_ss
 
- Protected Attributes inherited from Loggable
bool myLogger
 
Loggerm_Logger
 

Friends

class PBEngine
 

Additional Inherited Members

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

Constructor & Destructor Documentation

◆ SEConditionManager()

SEConditionManager::SEConditionManager ( Logger logger = nullptr)

◆ ~SEConditionManager()

SEConditionManager::~SEConditionManager ( )

Member Function Documentation

◆ Clear()

void SEConditionManager::Clear ( )

◆ Copy() [1/2]

void SEConditionManager::Copy ( const SEConditionManager src,
const SESubstanceManager subMgr 
)

◆ Copy() [2/2]

bool SEConditionManager::Copy ( const SECondition condition,
const SESubstanceManager subMgr 
)
Error:
Unsupported Condition

◆ GetAcuteRespiratoryDistressSyndrome() [1/2]

SEAcuteRespiratoryDistressSyndrome & SEConditionManager::GetAcuteRespiratoryDistressSyndrome ( )

◆ GetAcuteRespiratoryDistressSyndrome() [2/2]

const SEAcuteRespiratoryDistressSyndrome * SEConditionManager::GetAcuteRespiratoryDistressSyndrome ( ) const

◆ GetAllConditions()

void SEConditionManager::GetAllConditions ( std::vector< const SECondition *> &  v) const

◆ GetChronicAnemia() [1/2]

SEChronicAnemia & SEConditionManager::GetChronicAnemia ( )

◆ GetChronicAnemia() [2/2]

const SEChronicAnemia * SEConditionManager::GetChronicAnemia ( ) const

◆ GetChronicObstructivePulmonaryDisease() [1/2]

SEChronicObstructivePulmonaryDisease & SEConditionManager::GetChronicObstructivePulmonaryDisease ( )

◆ GetChronicObstructivePulmonaryDisease() [2/2]

const SEChronicObstructivePulmonaryDisease * SEConditionManager::GetChronicObstructivePulmonaryDisease ( ) const

◆ GetChronicPericardialEffusion() [1/2]

SEChronicPericardialEffusion & SEConditionManager::GetChronicPericardialEffusion ( )

◆ GetChronicPericardialEffusion() [2/2]

const SEChronicPericardialEffusion * SEConditionManager::GetChronicPericardialEffusion ( ) const

◆ GetChronicRenalStenosis() [1/2]

SEChronicRenalStenosis & SEConditionManager::GetChronicRenalStenosis ( )

◆ GetChronicRenalStenosis() [2/2]

const SEChronicRenalStenosis * SEConditionManager::GetChronicRenalStenosis ( ) const

◆ GetChronicVentricularSystolicDysfunction() [1/2]

SEChronicVentricularSystolicDysfunction & SEConditionManager::GetChronicVentricularSystolicDysfunction ( )

◆ GetChronicVentricularSystolicDysfunction() [2/2]

const SEChronicVentricularSystolicDysfunction * SEConditionManager::GetChronicVentricularSystolicDysfunction ( ) const

◆ GetConsumeMeal() [1/2]

SEConsumeMeal & SEConditionManager::GetConsumeMeal ( )

◆ GetConsumeMeal() [2/2]

const SEConsumeMeal * SEConditionManager::GetConsumeMeal ( ) const

◆ GetImpairedAlveolarExchange() [1/2]

SEImpairedAlveolarExchange & SEConditionManager::GetImpairedAlveolarExchange ( )

◆ GetImpairedAlveolarExchange() [2/2]

const SEImpairedAlveolarExchange * SEConditionManager::GetImpairedAlveolarExchange ( ) const

◆ GetInitialEnvironmentalConditions() [1/2]

SEInitialEnvironmentalConditions & SEConditionManager::GetInitialEnvironmentalConditions ( )

◆ GetInitialEnvironmentalConditions() [2/2]

const SEInitialEnvironmentalConditions * SEConditionManager::GetInitialEnvironmentalConditions ( ) const

◆ GetLobarPneumonia() [1/2]

SELobarPneumonia & SEConditionManager::GetLobarPneumonia ( )

◆ GetLobarPneumonia() [2/2]

const SELobarPneumonia * SEConditionManager::GetLobarPneumonia ( ) const

◆ GetPulmonaryFibrosis() [1/2]

SEPulmonaryFibrosis & SEConditionManager::GetPulmonaryFibrosis ( )

◆ GetPulmonaryFibrosis() [2/2]

const SEPulmonaryFibrosis * SEConditionManager::GetPulmonaryFibrosis ( ) const

◆ GetPulmonaryShunt() [1/2]

SEPulmonaryShunt & SEConditionManager::GetPulmonaryShunt ( )

◆ GetPulmonaryShunt() [2/2]

const SEPulmonaryShunt * SEConditionManager::GetPulmonaryShunt ( ) const

◆ GetSepsis() [1/2]

SESepsis & SEConditionManager::GetSepsis ( )

◆ GetSepsis() [2/2]

const SESepsis * SEConditionManager::GetSepsis ( ) const

◆ HasAcuteRespiratoryDistressSyndrome()

bool SEConditionManager::HasAcuteRespiratoryDistressSyndrome ( ) const

◆ HasChronicAnemia()

bool SEConditionManager::HasChronicAnemia ( ) const

◆ HasChronicHeartFailure()

bool SEConditionManager::HasChronicHeartFailure ( ) const

◆ HasChronicObstructivePulmonaryDisease()

bool SEConditionManager::HasChronicObstructivePulmonaryDisease ( ) const

◆ HasChronicPericardialEffusion()

bool SEConditionManager::HasChronicPericardialEffusion ( ) const

◆ HasChronicRenalStenosis()

bool SEConditionManager::HasChronicRenalStenosis ( ) const

◆ HasChronicVentricularSystolicDysfunction()

bool SEConditionManager::HasChronicVentricularSystolicDysfunction ( ) const

◆ HasConsumeMeal()

bool SEConditionManager::HasConsumeMeal ( ) const

◆ HasImpairedAlveolarExchange()

bool SEConditionManager::HasImpairedAlveolarExchange ( ) const

◆ HasInitialEnvironmentalConditions()

bool SEConditionManager::HasInitialEnvironmentalConditions ( ) const

◆ HasLobarPneumonia()

bool SEConditionManager::HasLobarPneumonia ( ) const

◆ HasPulmonaryFibrosis()

bool SEConditionManager::HasPulmonaryFibrosis ( ) const

◆ HasPulmonaryShunt()

bool SEConditionManager::HasPulmonaryShunt ( ) const

◆ HasSepsis()

bool SEConditionManager::HasSepsis ( ) const

◆ IsEmpty()

bool SEConditionManager::IsEmpty ( ) const

◆ SerializeFromFile()

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

◆ SerializeFromString()

bool SEConditionManager::SerializeFromString ( const std::string &  src,
SerializationFormat  m,
const SESubstanceManager subMgr 
)

◆ SerializeToFile()

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

◆ SerializeToString()

bool SEConditionManager::SerializeToString ( std::string &  output,
SerializationFormat  m 
) const

Friends And Related Function Documentation

◆ PBEngine

friend class PBEngine
friend

Member Data Documentation

◆ m_Anemia

SEChronicAnemia* SEConditionManager::m_Anemia
protected

◆ m_ARDS

SEAcuteRespiratoryDistressSyndrome* SEConditionManager::m_ARDS
protected

◆ m_ChronicVentricularSystolicDysfunction

SEChronicVentricularSystolicDysfunction* SEConditionManager::m_ChronicVentricularSystolicDysfunction
protected

◆ m_ConsumeMeal

SEConsumeMeal* SEConditionManager::m_ConsumeMeal
protected

◆ m_COPD

SEChronicObstructivePulmonaryDisease* SEConditionManager::m_COPD
protected

◆ m_ImpairedAlveolarExchange

SEImpairedAlveolarExchange* SEConditionManager::m_ImpairedAlveolarExchange
protected

◆ m_InitialEnvironmentalConditions

SEInitialEnvironmentalConditions* SEConditionManager::m_InitialEnvironmentalConditions
protected

◆ m_LobarPneumonia

SELobarPneumonia* SEConditionManager::m_LobarPneumonia
protected

◆ m_PericardialEffusion

SEChronicPericardialEffusion* SEConditionManager::m_PericardialEffusion
protected

◆ m_PulmonaryFibrosis

SEPulmonaryFibrosis* SEConditionManager::m_PulmonaryFibrosis
protected

◆ m_PulmonaryShunt

SEPulmonaryShunt* SEConditionManager::m_PulmonaryShunt
protected

◆ m_RenalStenosis

SEChronicRenalStenosis* SEConditionManager::m_RenalStenosis
protected

◆ m_Sepsis

SESepsis* SEConditionManager::m_Sepsis
protected

◆ m_ss

std::stringstream SEConditionManager::m_ss
protected

Distributed under the Apache License, Version 2.0.

See accompanying NOTICE file for details.