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