PBPhysiology.h
1/* Distributed under the Apache License, Version 2.0.
2 See accompanying NOTICE file for details.*/
3
4#pragma once
5 // Forward Declaire SE and Protobuf Physiology Types
6CDM_BIND_DECL2(BloodChemistrySystem)
7CDM_BIND_DECL2(CardiovascularMechanicsModifiers)
8CDM_BIND_DECL2(CardiovascularSystem)
9CDM_BIND_DECL2(EndocrineSystem)
10CDM_BIND_DECL2(DrugSystem)
11CDM_BIND_DECL2(EnergySystem)
12CDM_BIND_DECL2(GastrointestinalSystem)
13CDM_BIND_DECL2(HepaticSystem)
14CDM_BIND_DECL2(NervousSystem)
15CDM_BIND_DECL2(PupillaryResponse)
16CDM_BIND_DECL2(RenalSystem)
17CDM_BIND_DECL2(RespiratoryMechanics)
18CDM_BIND_DECL2(RespiratoryMechanicsModifiers)
19CDM_BIND_DECL2(RespiratorySystem)
20CDM_BIND_DECL2(TissueSystem)
21
22
23class CDM_DECL PBPhysiology
24{
25public:
26
27 // Blood Chemistry
28 static void Load(const CDM_BIND::BloodChemistrySystemData& src, SEBloodChemistrySystem& dst);
29 static CDM_BIND::BloodChemistrySystemData* Unload(const SEBloodChemistrySystem& src);
30 static void Serialize(const CDM_BIND::BloodChemistrySystemData& src, SEBloodChemistrySystem& dst);
31 static void Serialize(const SEBloodChemistrySystem& src, CDM_BIND::BloodChemistrySystemData& dst);
32
33 // Cardiovascular
34 static void Load(const CDM_BIND::CardiovascularMechanicsModifiersData& src, SECardiovascularMechanicsModifiers& dst);
35 static CDM_BIND::CardiovascularMechanicsModifiersData* Unload(const SECardiovascularMechanicsModifiers& src);
36 static void Serialize(const CDM_BIND::CardiovascularMechanicsModifiersData& src, SECardiovascularMechanicsModifiers& dst);
37 static void Serialize(const SECardiovascularMechanicsModifiers& src, CDM_BIND::CardiovascularMechanicsModifiersData& dst);
38 static bool SerializeToString(const SECardiovascularMechanicsModifiers& src, std::string& output, eSerializationFormat m);
39 static bool SerializeToFile(const SECardiovascularMechanicsModifiers& src, const std::string& filename);
40 static bool SerializeFromString(const std::string& src, SECardiovascularMechanicsModifiers& dst, eSerializationFormat m);
41 static bool SerializeFromFile(const std::string& filename, SECardiovascularMechanicsModifiers& dst);
42
43 static void Load(const CDM_BIND::CardiovascularSystemData& src, SECardiovascularSystem& dst);
44 static CDM_BIND::CardiovascularSystemData* Unload(const SECardiovascularSystem& src);
45 static void Serialize(const CDM_BIND::CardiovascularSystemData& src, SECardiovascularSystem& dst);
46 static void Serialize(const SECardiovascularSystem& src, CDM_BIND::CardiovascularSystemData& dst);
47
48 // Drug
49 static void Load(const CDM_BIND::DrugSystemData& src, SEDrugSystem& dst);
50 static CDM_BIND::DrugSystemData* Unload(const SEDrugSystem& src);
51 static void Serialize(const CDM_BIND::DrugSystemData& src, SEDrugSystem& dst);
52 static void Serialize(const SEDrugSystem& src, CDM_BIND::DrugSystemData& dst);
53
54 // Endocrine
55 static void Load(const CDM_BIND::EndocrineSystemData& src, SEEndocrineSystem& dst);
56 static CDM_BIND::EndocrineSystemData* Unload(const SEEndocrineSystem& src);
57 static void Serialize(const CDM_BIND::EndocrineSystemData& src, SEEndocrineSystem& dst);
58 static void Serialize(const SEEndocrineSystem& src, CDM_BIND::EndocrineSystemData& dst);
59
60 // Energy
61 static void Load(const CDM_BIND::EnergySystemData& src, SEEnergySystem& dst);
62 static CDM_BIND::EnergySystemData* Unload(const SEEnergySystem& src);
63 static void Serialize(const CDM_BIND::EnergySystemData& src, SEEnergySystem& dst);
64 static void Serialize(const SEEnergySystem& src, CDM_BIND::EnergySystemData& dst);
65
66 // Gastrointestinal
67 static void Load(const CDM_BIND::GastrointestinalSystemData& src, SEGastrointestinalSystem& dst);
68 static CDM_BIND::GastrointestinalSystemData* Unload(const SEGastrointestinalSystem& src);
69 static void Serialize(const CDM_BIND::GastrointestinalSystemData& src, SEGastrointestinalSystem& dst);
70 static void Serialize(const SEGastrointestinalSystem& src, CDM_BIND::GastrointestinalSystemData& dst);
71
72 // Hepatic
73 static void Load(const CDM_BIND::HepaticSystemData& src, SEHepaticSystem& dst);
74 static CDM_BIND::HepaticSystemData* Unload(const SEHepaticSystem& src);
75 static void Serialize(const CDM_BIND::HepaticSystemData& src, SEHepaticSystem& dst);
76 static void Serialize(const SEHepaticSystem& src, CDM_BIND::HepaticSystemData& dst);
77
79 static void Load(const CDM_BIND::NervousSystemData& src, SENervousSystem& dst);
80 static CDM_BIND::NervousSystemData* Unload(const SENervousSystem& src);
81 static void Serialize(const CDM_BIND::NervousSystemData& src, SENervousSystem& dst);
82 static void Serialize(const SENervousSystem& src, CDM_BIND::NervousSystemData& dst);
83
84 // Pupillary Response
85 static void Load(const CDM_BIND::PupillaryResponseData& src, SEPupillaryResponse& dst);
86 static CDM_BIND::PupillaryResponseData* Unload(const SEPupillaryResponse& src);
87 static void Serialize(const CDM_BIND::PupillaryResponseData& src, SEPupillaryResponse& dst);
88 static void Serialize(const SEPupillaryResponse& src, CDM_BIND::PupillaryResponseData& dst);
89
90 // Renal
91 static void Load(const CDM_BIND::RenalSystemData& src, SERenalSystem& dst);
92 static CDM_BIND::RenalSystemData* Unload(const SERenalSystem& src);
93 static void Serialize(const CDM_BIND::RenalSystemData& src, SERenalSystem& dst);
94 static void Serialize(const SERenalSystem& src, CDM_BIND::RenalSystemData& dst);
95
96 // Respiratory
97 static void Load(const CDM_BIND::RespiratoryMechanicsData& src, SERespiratoryMechanics& dst);
98 static CDM_BIND::RespiratoryMechanicsData* Unload(const SERespiratoryMechanics& src);
99 static void Serialize(const CDM_BIND::RespiratoryMechanicsData& src, SERespiratoryMechanics& dst);
100 static void Serialize(const SERespiratoryMechanics& src, CDM_BIND::RespiratoryMechanicsData& dst);
101 static bool SerializeToString(const SERespiratoryMechanics& src, std::string& output, eSerializationFormat m);
102 static bool SerializeToFile(const SERespiratoryMechanics& src, const std::string& filename);
103 static bool SerializeFromString(const std::string& src, SERespiratoryMechanics& dst, eSerializationFormat m);
104 static bool SerializeFromFile(const std::string& filename, SERespiratoryMechanics& dst);
105
106 static void Load(const CDM_BIND::RespiratoryMechanicsModifiersData& src, SERespiratoryMechanicsModifiers& dst);
107 static CDM_BIND::RespiratoryMechanicsModifiersData* Unload(const SERespiratoryMechanicsModifiers& src);
108 static void Serialize(const CDM_BIND::RespiratoryMechanicsModifiersData& src, SERespiratoryMechanicsModifiers& dst);
109 static void Serialize(const SERespiratoryMechanicsModifiers& src, CDM_BIND::RespiratoryMechanicsModifiersData& dst);
110 static bool SerializeToString(const SERespiratoryMechanicsModifiers& src, std::string& output, eSerializationFormat m);
111 static bool SerializeToFile(const SERespiratoryMechanicsModifiers& src, const std::string& filename);
112 static bool SerializeFromString(const std::string& src, SERespiratoryMechanicsModifiers& dst, eSerializationFormat m);
113 static bool SerializeFromFile(const std::string& filename, SERespiratoryMechanicsModifiers& dst);
114
115 static void Load(const CDM_BIND::RespiratorySystemData& src, SERespiratorySystem& dst);
116 static CDM_BIND::RespiratorySystemData* Unload(const SERespiratorySystem& src);
117 static void Serialize(const CDM_BIND::RespiratorySystemData& src, SERespiratorySystem& dst);
118 static void Serialize(const SERespiratorySystem& src, CDM_BIND::RespiratorySystemData& dst);
119
120 // Tissue
121 static void Load(const CDM_BIND::TissueSystemData& src, SETissueSystem& dst);
122 static CDM_BIND::TissueSystemData* Unload(const SETissueSystem& src);
123 static void Serialize(const CDM_BIND::TissueSystemData& src, SETissueSystem& dst);
124 static void Serialize(const SETissueSystem& src, CDM_BIND::TissueSystemData& dst);
125
126};
Definition: PBPhysiology.h:24
Definition: SEBloodChemistrySystem.h:10
Definition: SECardiovascularMechanicsModifiers.h:9
Definition: SECardiovascularSystem.h:24
Definition: SEDrugSystem.h:9
Definition: SEEndocrineSystem.h:8
Definition: SEEnergySystem.h:8
Definition: SEGastrointestinalSystem.h:9
Definition: SEHepaticSystem.h:8
Definition: SENervousSystem.h:9
Definition: SEPupillaryResponse.h:8
Definition: SERenalSystem.h:8
Definition: SERespiratoryMechanics.h:8
Definition: SERespiratoryMechanicsModifiers.h:9
Definition: SERespiratorySystem.h:25
Definition: SETissueSystem.h:8

Distributed under the Apache License, Version 2.0.

See accompanying NOTICE file for details.