#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
 
SESubstanceConcentrationGetComponent (const SESubstance &substance)
 
const SESubstanceConcentrationGetComponent (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 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

 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
 
Loggerm_Logger
 

Friends

class PBSubstance
 
class SESubstanceManager
 

Constructor & Destructor Documentation

◆ SESubstanceCompound()

SESubstanceCompound::SESubstanceCompound ( const std::string &  name,
Logger logger 
)
protected

◆ ~SESubstanceCompound()

SESubstanceCompound::~SESubstanceCompound ( )
virtual

Member Function Documentation

◆ Clear()

void SESubstanceCompound::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()

std::string SESubstanceCompound::GetName ( ) const
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 class PBSubstance
friend

◆ SESubstanceManager

friend class SESubstanceManager
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

Distributed under the Apache License, Version 2.0.

See accompanying NOTICE file for details.