#include <SESubstanceManager.h>

Inherits Loggable.

Public Member Functions

 SESubstanceManager (Logger *logger)
 
virtual ~SESubstanceManager ()
 
virtual bool LoadSubstanceDirectory (const std::string &data_dir="./")
 
virtual const std::vector< SESubstance * > & GetSubstances ()
 
virtual const std::vector< const SESubstance * > & GetSubstances () const
 
virtual bool HasSubstance (const std::string &name) const
 
virtual SESubstanceGetSubstance (const std::string &name)
 
virtual const SESubstanceGetSubstance (const std::string &name) const
 
virtual bool IsActive (const SESubstance &substance) const
 
virtual const std::vector< SESubstance * > & GetActiveSubstances ()
 
virtual const std::vector< const SESubstance * > & GetActiveSubstances () const
 
virtual void AddActiveSubstance (const SESubstance &substance)
 
virtual void RemoveActiveSubstance (const SESubstance &substance)
 
virtual void RemoveActiveSubstances ()
 
virtual const std::vector< SESubstance * > & GetActiveGases ()
 
virtual const std::vector< const SESubstance * > & GetActiveGases () const
 
virtual const std::vector< SESubstance * > & GetActiveLiquids ()
 
virtual const std::vector< const SESubstance * > & GetActiveLiquids () const
 
virtual const std::vector< SESubstanceCompound * > & GetCompounds ()
 
virtual const std::vector< const SESubstanceCompound * > & GetCompounds () const
 
virtual bool HasCompound (const std::string &name) const
 
virtual SESubstanceCompoundGetCompound (const std::string &name)
 
virtual const SESubstanceCompoundGetCompound (const std::string &name) const
 
virtual bool IsActive (const SESubstanceCompound &compound) const
 
virtual const std::vector< SESubstanceCompound * > & GetActiveCompounds ()
 
virtual const std::vector< const SESubstanceCompound * > & GetActiveCompounds () const
 
virtual void AddActiveCompound (const SESubstanceCompound &compound)
 
virtual void RemoveActiveCompound (const SESubstanceCompound &compound)
 
virtual void RemoveActiveCompounds (const std::vector< SESubstanceCompound * > &compounds)
 
- 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) 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
 

Protected Member Functions

virtual void Clear ()
 

Protected Attributes

std::vector< SESubstance * > m_Substances
 
std::vector< const SESubstance * > m_cSubstances
 
std::vector< SESubstance * > m_ActiveSubstances
 
std::vector< const SESubstance * > m_cActiveSubstances
 
std::vector< SESubstance * > m_ActiveGases
 
std::vector< const SESubstance * > m_cActiveGases
 
std::vector< SESubstance * > m_ActiveLiquids
 
std::vector< const SESubstance * > m_cActiveLiquids
 
std::vector< SESubstanceCompound * > m_Compounds
 
std::vector< const SESubstanceCompound * > m_cCompounds
 
std::vector< SESubstanceCompound * > m_ActiveCompounds
 
std::vector< const SESubstanceCompound * > m_cActiveCompounds
 
- Protected Attributes inherited from Loggable
bool myLogger
 
Loggerm_Logger
 

Constructor & Destructor Documentation

◆ SESubstanceManager()

SESubstanceManager::SESubstanceManager ( Logger logger)

◆ ~SESubstanceManager()

SESubstanceManager::~SESubstanceManager ( )
virtual

Member Function Documentation

◆ AddActiveCompound()

void SESubstanceManager::AddActiveCompound ( const SESubstanceCompound compound)
virtual

◆ AddActiveSubstance()

void SESubstanceManager::AddActiveSubstance ( const SESubstance substance)
virtual

◆ Clear()

void SESubstanceManager::Clear ( )
protectedvirtual

◆ GetActiveCompounds() [1/2]

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

◆ GetActiveCompounds() [2/2]

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

◆ GetActiveGases() [1/2]

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

◆ GetActiveGases() [2/2]

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

◆ GetActiveLiquids() [1/2]

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

◆ GetActiveLiquids() [2/2]

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

◆ GetActiveSubstances() [1/2]

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

◆ GetActiveSubstances() [2/2]

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

◆ GetCompound() [1/2]

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

◆ GetCompound() [2/2]

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

◆ GetCompounds() [1/2]

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

◆ GetCompounds() [2/2]

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

◆ GetSubstance() [1/2]

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

◆ GetSubstance() [2/2]

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

◆ GetSubstances() [1/2]

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

◆ GetSubstances() [2/2]

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

◆ HasCompound()

bool SESubstanceManager::HasCompound ( const std::string &  name) const
virtual

◆ HasSubstance()

bool SESubstanceManager::HasSubstance ( const std::string &  name) const
virtual

◆ IsActive() [1/2]

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

◆ IsActive() [2/2]

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

◆ LoadSubstanceDirectory()

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

◆ RemoveActiveCompound()

void SESubstanceManager::RemoveActiveCompound ( const SESubstanceCompound compound)
virtual

◆ RemoveActiveCompounds()

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

◆ RemoveActiveSubstance()

void SESubstanceManager::RemoveActiveSubstance ( const SESubstance substance)
virtual

◆ RemoveActiveSubstances()

void SESubstanceManager::RemoveActiveSubstances ( )
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_cActiveCompounds

std::vector<const SESubstanceCompound*> SESubstanceManager::m_cActiveCompounds
protected

◆ m_cActiveGases

std::vector<const SESubstance*> SESubstanceManager::m_cActiveGases
protected

◆ m_cActiveLiquids

std::vector<const SESubstance*> SESubstanceManager::m_cActiveLiquids
protected

◆ m_cActiveSubstances

std::vector<const SESubstance*> SESubstanceManager::m_cActiveSubstances
protected

◆ m_cCompounds

std::vector<const SESubstanceCompound*> SESubstanceManager::m_cCompounds
protected

◆ m_Compounds

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

◆ m_cSubstances

std::vector<const SESubstance*> SESubstanceManager::m_cSubstances
protected

◆ m_Substances

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

Distributed under the Apache License, Version 2.0.

See accompanying NOTICE file for details.