Public Member Functions |
Protected Member Functions |
Protected Attributes |
Friends |
List of all members
SESubstanceCompound Class Reference
#include <SESubstanceCompound.h>
Inherits Loggable.
Public Member Functions | |
virtual | ~SESubstanceCompound () |
virtual void | Clear () |
bool | SerializeToString (std::string &output, eSerializationFormat m) const |
bool | SerializeToFile (const std::string &filename) const |
bool | SerializeFromString (const std::string &src, const SESubstanceManager &subMgr, eSerializationFormat m) |
bool | SerializeFromFile (const std::string &filename, const SESubstanceManager &subMgr) |
virtual std::string | GetName () const |
bool | HasComponent () const |
bool | HasComponent (const SESubstance &substance) const |
const std::vector< SESubstanceConcentration * > & | GetComponents () |
const std::vector< const SESubstanceConcentration * > & | GetComponents () const |
SESubstanceConcentration & | GetComponent (const SESubstance &substance) |
const SESubstanceConcentration * | GetComponent (const SESubstance &substance) const |
void | RemoveComponent (const SESubstance &substance) |
Public Member Functions inherited from Loggable | |
Loggable (Logger *logger=nullptr) | |
Loggable (std::string const &logfile) | |
virtual | ~Loggable () |
virtual Logger * | GetLogger () 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 | |
SESubstanceCompound (const std::string &name, Logger *logger) | |
Protected Attributes | |
std::string | m_Name |
std::vector< SESubstanceConcentration * > | m_Components |
std::vector< const SESubstanceConcentration * > | m_cComponents |
Protected Attributes inherited from Loggable | |
bool | myLogger |
Logger * | m_Logger |
Friends | |
class | PBSubstance |
class | SESubstanceManager |
Constructor & Destructor Documentation
◆ SESubstanceCompound()
|
protected |
◆ ~SESubstanceCompound()
|
virtual |
Member Function Documentation
◆ Clear()
|
virtual |
◆ GetComponent() [1/2]
SESubstanceConcentration & SESubstanceCompound::GetComponent | ( | const SESubstance & | substance | ) |
◆ GetComponent() [2/2]
const SESubstanceConcentration * SESubstanceCompound::GetComponent | ( | const SESubstance & | substance | ) | const |
◆ GetComponents() [1/2]
const std::vector< SESubstanceConcentration * > & SESubstanceCompound::GetComponents | ( | ) |
◆ GetComponents() [2/2]
const std::vector< const SESubstanceConcentration * > & SESubstanceCompound::GetComponents | ( | ) | const |
◆ GetName()
|
virtual |
◆ HasComponent() [1/2]
bool SESubstanceCompound::HasComponent | ( | ) | const |
◆ HasComponent() [2/2]
bool SESubstanceCompound::HasComponent | ( | const SESubstance & | substance | ) | const |
◆ RemoveComponent()
void SESubstanceCompound::RemoveComponent | ( | const SESubstance & | substance | ) |
◆ SerializeFromFile()
bool SESubstanceCompound::SerializeFromFile | ( | const std::string & | filename, |
const SESubstanceManager & | subMgr | ||
) |
◆ SerializeFromString()
bool SESubstanceCompound::SerializeFromString | ( | const std::string & | src, |
const SESubstanceManager & | subMgr, | ||
eSerializationFormat | m | ||
) |
◆ SerializeToFile()
bool SESubstanceCompound::SerializeToFile | ( | const std::string & | filename | ) | const |
◆ SerializeToString()
bool SESubstanceCompound::SerializeToString | ( | std::string & | output, |
eSerializationFormat | m | ||
) | const |
Friends And Related Function Documentation
◆ PBSubstance
|
friend |
◆ SESubstanceManager
|
friend |
Member Data Documentation
◆ m_cComponents
|
protected |
◆ m_Components
|
protected |
◆ m_Name
|
protected |