SENutrition Class Reference
#include <SENutrition.h>
Inherits Loggable.
Inherited by SEMeal.
Public Member Functions | |
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 | |
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
◆ SENutrition()
SENutrition::SENutrition | ( | Logger * | logger | ) |
◆ ~SENutrition()
|
virtual |
Member Function Documentation
◆ Clear()
|
virtual |
Reimplemented in SEMeal.
◆ Copy()
|
virtual |
◆ GetCalcium() [1/2]
|
virtual |
◆ GetCalcium() [2/2]
|
virtual |
◆ GetCarbohydrate() [1/2]
|
virtual |
◆ GetCarbohydrate() [2/2]
|
virtual |
◆ GetCarbohydrateDigestionRate() [1/2]
|
virtual |
◆ GetCarbohydrateDigestionRate() [2/2]
|
virtual |
◆ GetFat() [1/2]
|
virtual |
◆ GetFat() [2/2]
|
virtual |
◆ GetFatDigestionRate() [1/2]
|
virtual |
◆ GetFatDigestionRate() [2/2]
|
virtual |
◆ GetProtein() [1/2]
|
virtual |
◆ GetProtein() [2/2]
|
virtual |
◆ GetProteinDigestionRate() [1/2]
|
virtual |
◆ GetProteinDigestionRate() [2/2]
|
virtual |
◆ GetScalar()
const SEScalar * SENutrition::GetScalar | ( | const std::string & | name | ) |
◆ GetSodium() [1/2]
|
virtual |
◆ GetSodium() [2/2]
|
virtual |
◆ GetWater() [1/2]
|
virtual |
◆ GetWater() [2/2]
|
virtual |
◆ GetWeight()
|
virtual |
◆ HasCalcium()
|
virtual |
◆ HasCarbohydrate()
|
virtual |
◆ HasCarbohydrateDigestionRate()
|
virtual |
◆ HasFat()
|
virtual |
◆ HasFatDigestionRate()
|
virtual |
◆ HasProtein()
|
virtual |
◆ HasProteinDigestionRate()
|
virtual |
◆ HasSodium()
|
virtual |
◆ HasWater()
|
virtual |
◆ Increment()
void SENutrition::Increment | ( | const SENutrition & | from | ) |
◆ SerializeFromFile()
bool SENutrition::SerializeFromFile | ( | const std::string & | filename | ) |
◆ SerializeFromString()
bool SENutrition::SerializeFromString | ( | const std::string & | src, |
eSerializationFormat | m | ||
) |
◆ SerializeToFile()
bool SENutrition::SerializeToFile | ( | const std::string & | filename | ) | const |
◆ SerializeToString()
bool SENutrition::SerializeToString | ( | std::string & | output, |
eSerializationFormat | m | ||
) | const |
◆ ToString()
|
virtual |
Friends And Related Function Documentation
◆ PBPatientNutrition
|
friend |
Member Data Documentation
◆ m_Calcium
|
protected |
◆ m_Carbohydrate
|
protected |
◆ m_CarbohydrateDigestionRate
|
protected |
◆ m_Fat
|
protected |
◆ m_FatDigestionRate
|
protected |
◆ m_Protein
|
protected |
◆ m_ProteinDigestionRate
|
protected |
◆ m_Sodium
|
protected |
◆ m_Water
|
protected |