#include <SEMeal.h>

Inherits SENutrition.

Public Member Functions

 SEMeal (Logger *logger)
 
virtual ~SEMeal ()
 
virtual void Clear ()
 
bool SerializeToString (std::string &output, SerializationFormat m) const
 
bool SerializeToFile (const std::string &filename, SerializationFormat m) const
 
bool SerializeFromString (const std::string &src, SerializationFormat m)
 
bool SerializeFromFile (const std::string &filename, SerializationFormat m)
 
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 Copy (const SENutrition &src)
 
const SEScalarGetScalar (const std::string &name)
 
bool SerializeToString (std::string &output, SerializationFormat m) const
 
bool SerializeToFile (const std::string &filename, SerializationFormat m) const
 
bool SerializeFromString (const std::string &src, SerializationFormat m)
 
bool SerializeFromFile (const std::string &filename, SerializationFormat m)
 
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 ()
 
 Loggable (Logger *log)
 
virtual ~Loggable ()
 
virtual LoggerGetLogger () const
 
virtual void Debug (std::string const &msg, std::string const &origin=empty) const
 
virtual void Debug (std::stringstream &msg, std::string const &origin=empty) const
 
virtual void Debug (std::ostream &msg, std::string const &origin=empty) const
 
virtual void Info (std::string const &msg, std::string const &origin=empty) const
 
virtual void Info (std::stringstream &msg, std::string const &origin=empty) const
 
virtual void Info (const std::stringstream &msg, std::string const &origin=empty) const
 
virtual void Info (std::ostream &msg, std::string const &origin=empty) const
 
virtual void Warning (std::string const &msg, std::string const &origin=empty) const
 
virtual void Warning (std::stringstream &msg, std::string const &origin=empty) const
 
virtual void Warning (std::ostream &msg, std::string const &origin=empty) const
 
virtual void Error (std::string const &msg, std::string const &origin=empty) const
 
virtual void Error (std::stringstream &msg, std::string const &origin=empty) const
 
virtual void Error (std::ostream &msg, std::string const &origin=empty) const
 
virtual void Fatal (std::string const &msg, std::string const &origin=empty) const
 
virtual void Fatal (std::stringstream &msg, std::string const &origin=empty) const
 
virtual void Fatal (std::ostream &msg, std::string const &origin=empty) 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
Loggerm_Logger
 

Friends

class PBPatientNutrition
 

Additional Inherited Members

- Static Public Attributes inherited from Loggable
static const std::string empty
 

Constructor & Destructor Documentation

◆ SEMeal()

SEMeal::SEMeal ( Logger logger)

◆ ~SEMeal()

SEMeal::~SEMeal ( )
virtual

Member Function Documentation

◆ Clear()

void SEMeal::Clear ( )
virtual

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,
SerializationFormat  m 
)

◆ SerializeFromString()

bool SEMeal::SerializeFromString ( const std::string &  src,
SerializationFormat  m 
)

◆ SerializeToFile()

bool SEMeal::SerializeToFile ( const std::string &  filename,
SerializationFormat  m 
) const

◆ SerializeToString()

bool SEMeal::SerializeToString ( std::string &  output,
SerializationFormat  m 
) const

Friends And Related Function Documentation

◆ PBPatientNutrition

friend class PBPatientNutrition
friend

Member Data Documentation

◆ m_ElapsedTime

SEScalarTime* SEMeal::m_ElapsedTime
protected