SEConsumeMeal.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/conditions/SEPatientCondition.h"
6#include "cdm/patient/SEMeal.h"
7
8class CDM_DECL SEConsumeMeal : public SEPatientCondition
9{
10 friend class PBPatientCondition;//friend the serialization class
11public:
12
13 SEConsumeMeal(Logger* logger=nullptr);
14 virtual ~SEConsumeMeal();
15
16 static constexpr char const* Name = "Consume Meal";
17 std::string GetName() const override { return Name; }
18
19 void Clear() override;
20 void Copy(const SEConsumeMeal& src);
21
22 bool IsValid() const override;
23 bool IsActive() const override;
24
25 bool HasMeal() const;
26 SEMeal& GetMeal();
27 const SEMeal* GetMeal() const;
28
29 virtual std::string GetMealFile() const;
30 virtual void SetMealFile(const std::string& fileName);
31 virtual bool HasMealFile() const;
32
33protected:
35 std::string m_MealFile;
36};
Definition: Logger.h:71
Definition: PBPatientConditions.h:24
static void Copy(const SEAcuteRespiratoryDistressSyndrome &src, SEAcuteRespiratoryDistressSyndrome &dst)
Definition: PBPatientConditions.cpp:67
Definition: SEConsumeMeal.h:9
std::string m_MealFile
Definition: SEConsumeMeal.h:35
std::string GetName() const override
Definition: SEConsumeMeal.h:17
SEMeal * m_Meal
Definition: SEConsumeMeal.h:34
Definition: SEMeal.h:8
Definition: SEPatientCondition.h:8
bool IsValid() const override=0
bool IsActive() const override=0
void Clear() override
Definition: SEPatientCondition.cpp:17

Distributed under the Apache License, Version 2.0.

See accompanying NOTICE file for details.