#include <SESubstanceManager.h>

Inherits Loggable.

Inherited by PulseSubstances.

Public Member Functions

 SESubstanceManager (Logger *logger)
 
virtual ~SESubstanceManager ()
 
virtual void Clear ()
 
virtual void Reset ()
 
virtual bool LoadSubstanceDirectory (const std::string &data_dir=".")
 
virtual const std::vector< SESubstance * > & GetSubstances () const
 
virtual SESubstanceGetSubstance (const std::string &name) const
 
virtual void AddSubstance (SESubstance &substance)
 
virtual bool IsActive (const SESubstance &substance) const
 
virtual const std::vector< SESubstance * > & GetActiveSubstances () const
 
virtual void AddActiveSubstance (SESubstance &substance)
 
virtual void RemoveActiveSubstance (const SESubstance &substance)
 
virtual void RemoveActiveSubstances (const std::vector< SESubstance *> &substances)
 
virtual void RemoveActiveSubstances ()
 
virtual const std::vector< SESubstance * > & GetActiveGases () const
 
virtual const std::vector< SESubstance * > & GetActiveLiquids () const
 
virtual const std::vector< SESubstanceCompound * > & GetCompounds () const
 
virtual SESubstanceCompoundGetCompound (const std::string &name) const
 
virtual void AddCompound (SESubstanceCompound &compound)
 
virtual bool IsActive (const SESubstanceCompound &compound) const
 
virtual const std::vector< SESubstanceCompound * > & GetActiveCompounds () const
 
virtual void AddActiveCompound (SESubstanceCompound &compound)
 
virtual void RemoveActiveCompound (SESubstanceCompound &compound)
 
virtual void RemoveActiveCompounds (const std::vector< SESubstanceCompound *> &compounds)
 
- Public Member Functions inherited from Loggable
 Loggable ()
 
 Loggable (Logger *log)
 
virtual ~Loggable ()
 
virtual LoggerGetLogger () const
 
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
 

Protected Attributes

std::vector< SESubstance * > m_Substances
 
std::vector< SESubstance * > m_ActiveSubstances
 
std::vector< SESubstance * > m_ActiveGases
 
std::vector< SESubstance * > m_ActiveLiquids
 
std::vector< SESubstanceCompound * > m_Compounds
 
std::vector< SESubstanceCompound * > m_ActiveCompounds
 
- Protected Attributes inherited from Loggable
Loggerm_Logger
 

Private Attributes

std::map< SESubstance *, std::string > m_OriginalSubstanceData
 
std::map< SESubstanceCompound *, std::string > m_OriginalCompoundData
 

Additional Inherited Members

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

Constructor & Destructor Documentation

◆ SESubstanceManager()

SESubstanceManager::SESubstanceManager ( Logger logger)

◆ ~SESubstanceManager()

SESubstanceManager::~SESubstanceManager ( )
virtual

Member Function Documentation

◆ AddActiveCompound()

void SESubstanceManager::AddActiveCompound ( SESubstanceCompound compound)
virtual

◆ AddActiveSubstance()

void SESubstanceManager::AddActiveSubstance ( SESubstance substance)
virtual

Reimplemented in PulseSubstances.

◆ AddCompound()

void SESubstanceManager::AddCompound ( SESubstanceCompound compound)
virtual

◆ AddSubstance()

void SESubstanceManager::AddSubstance ( SESubstance substance)
virtual

TRANSFERS OWNERSHIP TO THE MANAGER

◆ Clear()

void SESubstanceManager::Clear ( )
virtual

Reimplemented in PulseSubstances.

◆ GetActiveCompounds()

const std::vector< SESubstanceCompound * > & SESubstanceManager::GetActiveCompounds ( ) const
virtual

◆ GetActiveGases()

const std::vector< SESubstance * > & SESubstanceManager::GetActiveGases ( ) const
virtual

◆ GetActiveLiquids()

const std::vector< SESubstance * > & SESubstanceManager::GetActiveLiquids ( ) const
virtual

◆ GetActiveSubstances()

const std::vector< SESubstance * > & SESubstanceManager::GetActiveSubstances ( ) const
virtual

◆ GetCompound()

SESubstanceCompound * SESubstanceManager::GetCompound ( const std::string &  name) const
virtual

◆ GetCompounds()

const std::vector< SESubstanceCompound * > & SESubstanceManager::GetCompounds ( ) const
virtual

◆ GetSubstance()

SESubstance * SESubstanceManager::GetSubstance ( const std::string &  name) const
virtual

◆ GetSubstances()

const std::vector< SESubstance * > & SESubstanceManager::GetSubstances ( ) const
virtual

◆ IsActive() [1/2]

bool SESubstanceManager::IsActive ( const SESubstance substance) const
virtual

Reimplemented in PulseSubstances.

◆ IsActive() [2/2]

bool SESubstanceManager::IsActive ( const SESubstanceCompound compound) const
virtual

◆ LoadSubstanceDirectory()

bool SESubstanceManager::LoadSubstanceDirectory ( const std::string &  data_dir = ".")
virtual

Reimplemented in PulseSubstances.

◆ RemoveActiveCompound()

void SESubstanceManager::RemoveActiveCompound ( SESubstanceCompound compound)
virtual

◆ RemoveActiveCompounds()

void SESubstanceManager::RemoveActiveCompounds ( const std::vector< SESubstanceCompound *> &  compounds)
virtual

◆ RemoveActiveSubstance()

void SESubstanceManager::RemoveActiveSubstance ( const SESubstance substance)
virtual

◆ RemoveActiveSubstances() [1/2]

void SESubstanceManager::RemoveActiveSubstances ( const std::vector< SESubstance *> &  substances)
virtual

◆ RemoveActiveSubstances() [2/2]

void SESubstanceManager::RemoveActiveSubstances ( )
virtual

◆ Reset()

void SESubstanceManager::Reset ( )
virtual

Member Data Documentation

◆ m_ActiveCompounds

std::vector<SESubstanceCompound*> SESubstanceManager::m_ActiveCompounds
protected

◆ m_ActiveGases

std::vector<SESubstance*> SESubstanceManager::m_ActiveGases
protected

◆ m_ActiveLiquids

std::vector<SESubstance*> SESubstanceManager::m_ActiveLiquids
protected

◆ m_ActiveSubstances

std::vector<SESubstance*> SESubstanceManager::m_ActiveSubstances
protected

◆ m_Compounds

std::vector<SESubstanceCompound*> SESubstanceManager::m_Compounds
protected

◆ m_OriginalCompoundData

std::map<SESubstanceCompound*, std::string> SESubstanceManager::m_OriginalCompoundData
private

◆ m_OriginalSubstanceData

std::map<SESubstance*, std::string> SESubstanceManager::m_OriginalSubstanceData
private

◆ m_Substances

std::vector<SESubstance*> SESubstanceManager::m_Substances
protected