SEInhaler Class Reference
#include <SEInhaler.h>
Inherits SEEquipment.
Public Member Functions | |
SEInhaler (Logger *logger) | |
virtual | ~SEInhaler () |
void | Clear () override |
bool | SerializeToString (std::string &output, eSerializationFormat m) const |
bool | SerializeToFile (const std::string &filename) const |
bool | SerializeFromString (const std::string &src, eSerializationFormat m, const SESubstanceManager &subMgr) |
bool | SerializeFromFile (const std::string &filename, const SESubstanceManager &subMgr) |
GetScalar | |
| |
const SEScalar * | GetScalar (const std::string &name) override |
Public Member Functions inherited from SEEquipment | |
SEEquipment (Logger *logger) | |
virtual | ~SEEquipment () |
void | Clear () override |
Public Member Functions inherited from SESystem | |
SESystem (Logger *logger) | |
virtual | ~SESystem () |
virtual void | Clear () |
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 |
Friends | |
class | PBInhaler |
StateChange | |
| |
eSwitch | m_State |
SEScalarMass * | m_MeteredDose |
SEScalar0To1 * | m_NozzleLoss |
SEScalarVolume * | m_SpacerVolume |
const SESubstance * | m_Substance |
virtual eSwitch | GetState () const |
virtual void | SetState (eSwitch name) |
virtual bool | HasMeteredDose () const |
virtual SEScalarMass & | GetMeteredDose () |
virtual double | GetMeteredDose (const MassUnit &unit) const |
virtual bool | HasNozzleLoss () const |
virtual SEScalar0To1 & | GetNozzleLoss () |
virtual double | GetNozzleLoss () const |
virtual bool | HasSpacerVolume () const |
virtual SEScalarVolume & | GetSpacerVolume () |
virtual double | GetSpacerVolume (const VolumeUnit &unit) const |
virtual bool | HasSubstance () const |
virtual void | SetSubstance (const SESubstance *sub) |
virtual SESubstance * | GetSubstance () const |
virtual void | StateChange () |
virtual void | Merge (const SEInhaler &from, SESubstanceManager &subMgr) |
virtual void | ProcessConfiguration (SEInhalerConfiguration &config, SESubstanceManager &subMgr) |
Additional Inherited Members | |
Static Public Member Functions inherited from SESystem | |
static const SEScalar * | GetScalar (const std::string &name, std::vector< SESystem * > *systems) |
Protected Attributes inherited from SESystem | |
std::stringstream | m_ss |
Protected Attributes inherited from Loggable | |
bool | myLogger |
Logger * | m_Logger |
Constructor & Destructor Documentation
◆ SEInhaler()
SEInhaler::SEInhaler | ( | Logger * | logger | ) |
◆ ~SEInhaler()
|
virtual |
Member Function Documentation
◆ Clear()
|
overridevirtual |
Reimplemented from SESystem.
◆ GetMeteredDose() [1/2]
|
virtual |
◆ GetMeteredDose() [2/2]
|
virtual |
◆ GetNozzleLoss() [1/2]
|
virtual |
◆ GetNozzleLoss() [2/2]
|
virtual |
◆ GetScalar()
|
overridevirtual |
Implements SESystem.
◆ GetSpacerVolume() [1/2]
|
virtual |
◆ GetSpacerVolume() [2/2]
|
virtual |
◆ GetState()
|
virtual |
◆ GetSubstance()
|
virtual |
◆ HasMeteredDose()
|
virtual |
◆ HasNozzleLoss()
|
virtual |
◆ HasSpacerVolume()
|
virtual |
◆ HasSubstance()
|
virtual |
◆ Merge()
|
protectedvirtual |
◆ ProcessConfiguration()
|
protectedvirtual |
◆ SerializeFromFile()
bool SEInhaler::SerializeFromFile | ( | const std::string & | filename, |
const SESubstanceManager & | subMgr | ||
) |
◆ SerializeFromString()
bool SEInhaler::SerializeFromString | ( | const std::string & | src, |
eSerializationFormat | m, | ||
const SESubstanceManager & | subMgr | ||
) |
◆ SerializeToFile()
bool SEInhaler::SerializeToFile | ( | const std::string & | filename | ) | const |
◆ SerializeToString()
bool SEInhaler::SerializeToString | ( | std::string & | output, |
eSerializationFormat | m | ||
) | const |
◆ SetState()
|
virtual |
◆ SetSubstance()
|
virtual |
◆ StateChange()
|
inlineprotectedvirtual |
Friends And Related Function Documentation
◆ PBInhaler
|
friend |
Member Data Documentation
◆ m_MeteredDose
|
protected |
◆ m_NozzleLoss
|
protected |
◆ m_SpacerVolume
|
protected |
◆ m_State
|
protected |
◆ m_Substance
|
protected |