SESubstanceCompound Class Reference

#include <SESubstanceCompound.h>

Inherits Loggable.

Public Member Functions

 SESubstanceCompound (Logger *logger)
 
virtual ~SESubstanceCompound ()
 
virtual void Clear ()
 
bool SerializeToString (std::string &output, SerializationFormat m) const
 
bool SerializeToFile (const std::string &filename, SerializationFormat m) const
 
bool SerializeFromString (const std::string &src, const SESubstanceManager &subMgr, SerializationFormat m)
 
bool SerializeFromFile (const std::string &filename, const SESubstanceManager &subMgr, SerializationFormat m)
 
virtual std::string GetName () const
 
virtual void SetName (const std::string &name)
 
virtual bool HasName () const
 
virtual void InvalidateName ()
 
bool HasComponent () const
 
bool HasComponent (const SESubstance &substance) const
 
const std::vector< SESubstanceConcentration * > & GetComponents ()
 
const std::vector< const SESubstanceConcentration * > & GetComponents () const
 
const SESubstanceConcentrationGetComponent (SESubstance &substance)
 
const SESubstanceConcentrationGetComponent (SESubstance &substance) const
 
void RemoveComponent (const SESubstance &substance)
 
- 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::string m_Name
 
std::vector< SESubstanceConcentration * > m_Components
 
std::vector< const SESubstanceConcentration * > m_cComponents
 
- Protected Attributes inherited from Loggable
Loggerm_Logger
 

Friends

class PBSubstance
 

Additional Inherited Members

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

Constructor & Destructor Documentation

◆ SESubstanceCompound()

SESubstanceCompound::SESubstanceCompound ( Logger logger)

◆ ~SESubstanceCompound()

SESubstanceCompound::~SESubstanceCompound ( )
virtual

Member Function Documentation

◆ Clear()

void SESubstanceCompound::Clear ( )
virtual

◆ GetComponent() [1/2]

const SESubstanceConcentration & SESubstanceCompound::GetComponent ( SESubstance substance)

◆ GetComponent() [2/2]

const SESubstanceConcentration * SESubstanceCompound::GetComponent ( SESubstance substance) const

◆ GetComponents() [1/2]

const std::vector< SESubstanceConcentration * > & SESubstanceCompound::GetComponents ( )

◆ GetComponents() [2/2]

const std::vector< const SESubstanceConcentration * > & SESubstanceCompound::GetComponents ( ) const

◆ GetName()

std::string SESubstanceCompound::GetName ( ) const
virtual

◆ HasComponent() [1/2]

bool SESubstanceCompound::HasComponent ( ) const

◆ HasComponent() [2/2]

bool SESubstanceCompound::HasComponent ( const SESubstance substance) const

◆ HasName()

bool SESubstanceCompound::HasName ( ) const
virtual

◆ InvalidateName()

void SESubstanceCompound::InvalidateName ( )
virtual

◆ RemoveComponent()

void SESubstanceCompound::RemoveComponent ( const SESubstance substance)

◆ SerializeFromFile()

bool SESubstanceCompound::SerializeFromFile ( const std::string &  filename,
const SESubstanceManager subMgr,
SerializationFormat  m 
)

◆ SerializeFromString()

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

◆ SerializeToFile()

bool SESubstanceCompound::SerializeToFile ( const std::string &  filename,
SerializationFormat  m 
) const

◆ SerializeToString()

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

◆ SetName()

void SESubstanceCompound::SetName ( const std::string &  name)
virtual

Friends And Related Function Documentation

◆ PBSubstance

friend class PBSubstance
friend

Member Data Documentation

◆ m_cComponents

std::vector<const SESubstanceConcentration*> SESubstanceCompound::m_cComponents
protected

◆ m_Components

std::vector<SESubstanceConcentration*> SESubstanceCompound::m_Components
protected

◆ m_Name

std::string SESubstanceCompound::m_Name
protected