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