Pulse adds COVID-19 Simulation Support
×

#include <SEActionManager.h>

Inherits Loggable.

Public Member Functions

 SEActionManager (Logger *logger=nullptr)
 
 ~SEActionManager ()
 
void Clear ()
 
bool SerializeToString (std::string &output, SerializationFormat m) const
 
bool SerializeToFile (const std::string &filename) const
 
bool SerializeFromString (const std::string &src, SerializationFormat m, SESubstanceManager &subMgr)
 
bool SerializeFromFile (const std::string &filename, SESubstanceManager &subMgr)
 
bool ProcessAction (const SEAction &action, SESubstanceManager &)
 
SEPatientActionCollectionGetPatientActions ()
 
SEEnvironmentActionCollectionGetEnvironmentActions ()
 
SEEquipmentActionCollectionGetEquipmentActions ()
 
const SEPatientActionCollectionGetPatientActions () const
 
const SEEnvironmentActionCollectionGetEnvironmentActions () const
 
const SEEquipmentActionCollectionGetEquipmentActions () const
 
void GetAllActions (std::vector< const SEAction *> &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)
 

Static Public Member Functions

static bool SerializeFromString (const std::string &src, std::vector< SEAction *> &dst, SerializationFormat m, const SESubstanceManager &subMgr)
 

Protected Attributes

SEPatientActionCollectionm_PatientActions
 
SEEnvironmentActionCollectionm_EnvironmentActions
 
SEEquipmentActionCollectionm_EquipmentActions
 
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

◆ SEActionManager()

SEActionManager::SEActionManager ( Logger logger = nullptr)

◆ ~SEActionManager()

SEActionManager::~SEActionManager ( )

Member Function Documentation

◆ Clear()

void SEActionManager::Clear ( )

◆ GetAllActions()

void SEActionManager::GetAllActions ( std::vector< const SEAction *> &  v) const

◆ GetEnvironmentActions() [1/2]

SEEnvironmentActionCollection& SEActionManager::GetEnvironmentActions ( )
inline

◆ GetEnvironmentActions() [2/2]

const SEEnvironmentActionCollection& SEActionManager::GetEnvironmentActions ( ) const
inline

◆ GetEquipmentActions() [1/2]

SEEquipmentActionCollection& SEActionManager::GetEquipmentActions ( )
inline

◆ GetEquipmentActions() [2/2]

const SEEquipmentActionCollection& SEActionManager::GetEquipmentActions ( ) const
inline

◆ GetPatientActions() [1/2]

SEPatientActionCollection& SEActionManager::GetPatientActions ( )
inline

◆ GetPatientActions() [2/2]

const SEPatientActionCollection& SEActionManager::GetPatientActions ( ) const
inline

◆ ProcessAction()

bool SEActionManager::ProcessAction ( const SEAction action,
SESubstanceManager subMgr 
)

◆ SerializeFromFile()

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

◆ SerializeFromString() [1/2]

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

◆ SerializeFromString() [2/2]

bool SEActionManager::SerializeFromString ( const std::string &  src,
std::vector< SEAction *> &  dst,
SerializationFormat  m,
const SESubstanceManager subMgr 
)
static

◆ SerializeToFile()

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

◆ SerializeToString()

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

Friends And Related Function Documentation

◆ PBEngine

friend class PBEngine
friend

Member Data Documentation

◆ m_EnvironmentActions

SEEnvironmentActionCollection* SEActionManager::m_EnvironmentActions
protected

◆ m_EquipmentActions

SEEquipmentActionCollection* SEActionManager::m_EquipmentActions
protected

◆ m_PatientActions

SEPatientActionCollection* SEActionManager::m_PatientActions
protected

◆ m_ss

std::stringstream SEActionManager::m_ss
protected

Distributed under the Apache License, Version 2.0.

See accompanying NOTICE file for details.