<
The Pulse Team is excited to announce the Pulse Physiology Engine 4.1.0 release. Upgrade now to get the best in dynamic simulation.
×
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_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: SENutrition.h:6
Definition: PBPatientNutrition.h:8
Definition: SEMeal.h:7

Distributed under the Apache License, Version 2.0.

See accompanying NOTICE file for details.