#include <SEActionManager.h>

Inherits Loggable.

Public Member Functions

 SEActionManager (SESubstanceManager &subMgr)
 
 ~SEActionManager ()
 
void Clear ()
 
bool SerializeToString (std::string &output, eSerializationFormat m) const
 
bool SerializeToFile (const std::string &filename) const
 
bool SerializeFromString (const std::string &src, eSerializationFormat m)
 
bool SerializeFromFile (const std::string &filename)
 
bool ProcessAction (const SEAction &action)
 
const SEScalarGetScalar (const std::string &actionName, const std::string &cmptName, const std::string &substance, const std::string &property)
 
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
 

Static Public Member Functions

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

Protected Attributes

SESubstanceManagerm_SubMgr
 
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 ( SESubstanceManager subMgr)

◆ ~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

◆ GetScalar()

const SEScalar * SEActionManager::GetScalar ( const std::string &  actionName,
const std::string &  cmptName,
const std::string &  substance,
const std::string &  property 
)

◆ ProcessAction()

bool SEActionManager::ProcessAction ( const SEAction action)

◆ SerializeFromFile()

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

◆ SerializeFromString() [1/3]

bool SEActionManager::SerializeFromString ( const std::string &  src,
eSerializationFormat  m 
)

◆ SerializeFromString() [2/3]

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

◆ SerializeFromString() [3/3]

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

◆ SerializeToFile()

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

◆ SerializeToString()

bool SEActionManager::SerializeToString ( std::string &  output,
eSerializationFormat  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

◆ m_SubMgr

SESubstanceManager& SEActionManager::m_SubMgr
protected

Distributed under the Apache License, Version 2.0.

See accompanying NOTICE file for details.