PBPatientNutrition.h
1/* Distributed under the Apache License, Version 2.0.
2 See accompanying NOTICE file for details.*/
3
4#pragma once
5CDM_BIND_DECL2(Nutrition)
6CDM_BIND_DECL2(Meal)
7
8class CDM_DECL PBPatientNutrition
9{
10public:
11
12 static void Load(const CDM_BIND::NutritionData& src, SENutrition& dst);
13 static CDM_BIND::NutritionData* Unload(const SENutrition& src);
14 static void Serialize(const CDM_BIND::NutritionData& src, SENutrition& dst);
15 static void Serialize(const SENutrition& src, CDM_BIND::NutritionData& dst);
16 static void Copy(const SENutrition& src, SENutrition& dst);
17
18 static bool SerializeToString(const SENutrition& src, std::string& output, eSerializationFormat m);
19 static bool SerializeToFile(const SENutrition& src, const std::string& filename);
20 static bool SerializeFromString(const std::string& src, SENutrition& dst, eSerializationFormat m);
21 static bool SerializeFromFile(const std::string& filename, SENutrition& dst);
22
23 static void Load(const CDM_BIND::MealData& src, SEMeal& dst);
24 static CDM_BIND::MealData* Unload(const SEMeal& src);
25 static void Serialize(const CDM_BIND::MealData& src, SEMeal& dst);
26 static void Serialize(const SEMeal& src, CDM_BIND::MealData& dst);
27 static void Copy(const SEMeal& src, SEMeal& dst);
28
29 static bool SerializeToString(const SEMeal& src, std::string& output, eSerializationFormat m);
30 static bool SerializeToFile(const SEMeal& src, const std::string& filename);
31 static bool SerializeFromString(const std::string& src, SEMeal& dst, eSerializationFormat m);
32 static bool SerializeFromFile(const std::string& filename, SEMeal& dst);
33};
Definition: PBPatientNutrition.h:9
Definition: SEMeal.h:8
Definition: SENutrition.h:7

Distributed under the Apache License, Version 2.0.

See accompanying NOTICE file for details.