SEMeal.h
1/* Distributed under the Apache License, Version 2.0.
2 See accompanying NOTICE file for details.*/
3
4#pragma once
5#include "cdm/patient/SENutrition.h"
6
7class CDM_DECL SEMeal : public SENutrition
8{
9 friend class PBPatientNutrition;//friend the serialization class
10public:
11
12 SEMeal(Logger* logger);
13 virtual ~SEMeal();
14
15 void Clear() override;
16
17 bool SerializeToString(std::string& output, eSerializationFormat m) const;
18 bool SerializeToFile(const std::string& filename) const;
19 bool SerializeFromString(const std::string& src, eSerializationFormat m);
20 bool SerializeFromFile(const std::string& filename);
21
22public:
23
24 virtual bool HasElapsedTime() const;
25 virtual SEScalarTime& GetElapsedTime();
26 virtual double GetElapsedTime(const TimeUnit& unit) const;
27
28protected:
29
31};
Definition: Logger.h:71
Definition: PBPatientNutrition.h:9
Definition: SEMeal.h:8
SEScalarTime * m_ElapsedTime
Definition: SEMeal.h:30
Definition: SENutrition.h:7
virtual void Clear()
Definition: SENutrition.cpp:38
bool SerializeFromFile(const std::string &filename)
Definition: SENutrition.cpp:68
bool SerializeToFile(const std::string &filename) const
Definition: SENutrition.cpp:60
bool SerializeFromString(const std::string &src, eSerializationFormat m)
Definition: SENutrition.cpp:64
bool SerializeToString(std::string &output, eSerializationFormat m) const
Definition: SENutrition.cpp:56
Definition: SEScalarTime.h:28
Definition: SEScalarTime.h:8

Distributed under the Apache License, Version 2.0.

See accompanying NOTICE file for details.