#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 SEScalarTimeGetElapsedTime ()
 
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 SEScalarGetScalar (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 SEScalarMassGetCarbohydrate ()
 
virtual double GetCarbohydrate (const MassUnit &unit) const
 
virtual bool HasCarbohydrateDigestionRate () const
 
virtual SEScalarMassPerTimeGetCarbohydrateDigestionRate ()
 
virtual double GetCarbohydrateDigestionRate (const MassPerTimeUnit &unit) const
 
virtual bool HasFat () const
 
virtual SEScalarMassGetFat ()
 
virtual double GetFat (const MassUnit &unit) const
 
virtual bool HasFatDigestionRate () const
 
virtual SEScalarMassPerTimeGetFatDigestionRate ()
 
virtual double GetFatDigestionRate (const MassPerTimeUnit &unit) const
 
virtual bool HasProtein () const
 
virtual SEScalarMassGetProtein ()
 
virtual double GetProtein (const MassUnit &unit) const
 
virtual bool HasProteinDigestionRate () const
 
virtual SEScalarMassPerTimeGetProteinDigestionRate ()
 
virtual double GetProteinDigestionRate (const MassPerTimeUnit &unit) const
 
virtual bool HasSodium () const
 
virtual SEScalarMassGetSodium ()
 
virtual double GetSodium (const MassUnit &unit) const
 
virtual bool HasCalcium () const
 
virtual SEScalarMassGetCalcium ()
 
virtual double GetCalcium (const MassUnit &unit) const
 
virtual bool HasWater () const
 
virtual SEScalarVolumeGetWater ()
 
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 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 Attributes

SEScalarTimem_ElapsedTime
 
- Protected Attributes inherited from SENutrition
SEScalarMassm_Carbohydrate
 
SEScalarMassPerTimem_CarbohydrateDigestionRate
 
SEScalarMassm_Fat
 
SEScalarMassPerTimem_FatDigestionRate
 
SEScalarMassm_Protein
 
SEScalarMassPerTimem_ProteinDigestionRate
 
SEScalarMassm_Calcium
 
SEScalarMassm_Sodium
 
SEScalarVolumem_Water
 
- Protected Attributes inherited from Loggable
bool myLogger
 
Loggerm_Logger
 

Friends

class PBPatientNutrition
 

Constructor & Destructor Documentation

◆ SEMeal()

SEMeal::SEMeal ( Logger logger)

◆ ~SEMeal()

SEMeal::~SEMeal ( )
virtual

Member Function Documentation

◆ Clear()

void SEMeal::Clear ( )
overridevirtual

Reimplemented from SENutrition.

◆ GetElapsedTime() [1/2]

SEScalarTime & SEMeal::GetElapsedTime ( )
virtual

◆ GetElapsedTime() [2/2]

double SEMeal::GetElapsedTime ( const TimeUnit unit) const
virtual

◆ HasElapsedTime()

bool SEMeal::HasElapsedTime ( ) const
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 class PBPatientNutrition
friend

Member Data Documentation

◆ m_ElapsedTime

SEScalarTime* SEMeal::m_ElapsedTime
protected

Distributed under the Apache License, Version 2.0.

See accompanying NOTICE file for details.