SEMeal Class Reference
#include <SEMeal.h>
Inherits SENutrition.
Public Member Functions | |
SEMeal (Logger *logger) | |
virtual | ~SEMeal () |
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) |
bool | SerializeFromFile (const std::string &filename) |
virtual bool | HasElapsedTime () const |
virtual SEScalarTime & | GetElapsedTime () |
virtual double | GetElapsedTime (const TimeUnit &unit) const |
Public Member Functions inherited from SENutrition | |
SENutrition (Logger *logger) | |
virtual | ~SENutrition () |
virtual void | Clear () |
virtual void | Copy (const SENutrition &src) |
const SEScalar * | GetScalar (const std::string &name) |
bool | SerializeToString (std::string &output, eSerializationFormat m) const |
bool | SerializeToFile (const std::string &filename) const |
bool | SerializeFromString (const std::string &src, eSerializationFormat m) |
bool | SerializeFromFile (const std::string &filename) |
void | Increment (const SENutrition &from) |
virtual bool | HasCarbohydrate () const |
virtual SEScalarMass & | GetCarbohydrate () |
virtual double | GetCarbohydrate (const MassUnit &unit) const |
virtual bool | HasCarbohydrateDigestionRate () const |
virtual SEScalarMassPerTime & | GetCarbohydrateDigestionRate () |
virtual double | GetCarbohydrateDigestionRate (const MassPerTimeUnit &unit) const |
virtual bool | HasFat () const |
virtual SEScalarMass & | GetFat () |
virtual double | GetFat (const MassUnit &unit) const |
virtual bool | HasFatDigestionRate () const |
virtual SEScalarMassPerTime & | GetFatDigestionRate () |
virtual double | GetFatDigestionRate (const MassPerTimeUnit &unit) const |
virtual bool | HasProtein () const |
virtual SEScalarMass & | GetProtein () |
virtual double | GetProtein (const MassUnit &unit) const |
virtual bool | HasProteinDigestionRate () const |
virtual SEScalarMassPerTime & | GetProteinDigestionRate () |
virtual double | GetProteinDigestionRate (const MassPerTimeUnit &unit) const |
virtual bool | HasSodium () const |
virtual SEScalarMass & | GetSodium () |
virtual double | GetSodium (const MassUnit &unit) const |
virtual bool | HasCalcium () const |
virtual SEScalarMass & | GetCalcium () |
virtual double | GetCalcium (const MassUnit &unit) const |
virtual bool | HasWater () const |
virtual SEScalarVolume & | GetWater () |
virtual double | GetWater (const VolumeUnit &unit) const |
virtual double | GetWeight (const MassUnit &unit) const |
virtual void | ToString (std::ostream &str) const |
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 Attributes | |
SEScalarTime * | m_ElapsedTime |
Protected Attributes inherited from SENutrition | |
SEScalarMass * | m_Carbohydrate |
SEScalarMassPerTime * | m_CarbohydrateDigestionRate |
SEScalarMass * | m_Fat |
SEScalarMassPerTime * | m_FatDigestionRate |
SEScalarMass * | m_Protein |
SEScalarMassPerTime * | m_ProteinDigestionRate |
SEScalarMass * | m_Calcium |
SEScalarMass * | m_Sodium |
SEScalarVolume * | m_Water |
Protected Attributes inherited from Loggable | |
bool | myLogger |
Logger * | m_Logger |
Friends | |
class | PBPatientNutrition |
Constructor & Destructor Documentation
◆ SEMeal()
SEMeal::SEMeal | ( | Logger * | logger | ) |
◆ ~SEMeal()
|
virtual |
Member Function Documentation
◆ Clear()
|
overridevirtual |
Reimplemented from SENutrition.
◆ GetElapsedTime() [1/2]
|
virtual |
◆ GetElapsedTime() [2/2]
|
virtual |
◆ HasElapsedTime()
|
virtual |
◆ SerializeFromFile()
bool SEMeal::SerializeFromFile | ( | const std::string & | filename | ) |
◆ SerializeFromString()
bool SEMeal::SerializeFromString | ( | const std::string & | src, |
eSerializationFormat | m | ||
) |
◆ SerializeToFile()
bool SEMeal::SerializeToFile | ( | const std::string & | filename | ) | const |
◆ SerializeToString()
bool SEMeal::SerializeToString | ( | std::string & | output, |
eSerializationFormat | m | ||
) | const |
Friends And Related Function Documentation
◆ PBPatientNutrition
|
friend |
Member Data Documentation
◆ m_ElapsedTime
|
protected |