Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Pulse Physiology Suite
engine
Commits
d8a0ccbc
Commit
d8a0ccbc
authored
Jun 24, 2020
by
Aaron Bray
Browse files
Interface and Scenario Files page updates
parent
86031699
Changes
4
Expand all
Hide whitespace changes
Inline
Side-by-side
docs/Markdown/Interface.md
View file @
d8a0ccbc
This diff is collapsed.
Click to expand it.
docs/Markdown/ScenarioFile.md
View file @
d8a0ccbc
This diff is collapsed.
Click to expand it.
src/cpp/cdm/PhysiologyEngine.h
View file @
d8a0ccbc
...
...
@@ -57,15 +57,18 @@ public:
//--------------------------------------------------------------------------------------------------
/// \brief
/// Reset engine and set it to the state in the provided file.
/// The file may contain json or binary.
/// Anything but an extension of .json will be interpreted as binary.
/// Return value indicates engine was able to load provided state file.
/// Engine will be in a cleared state if this method fails.
//--------------------------------------------------------------------------------------------------
virtual
bool
SerializeFromFile
(
const
std
::
string
&
file
name
)
=
0
;
virtual
bool
SerializeFromFile
(
const
std
::
string
&
file
)
=
0
;
//--------------------------------------------------------------------------------------------------
/// \brief
/// Save the current state of the engine to provided filename.
/// Engine will be in a cleared state if this method fails.
/// Using a .json extension will save a json/ascii file.
/// Anything else will save as binary.
//--------------------------------------------------------------------------------------------------
virtual
bool
SerializeToFile
(
const
std
::
string
&
filename
)
const
=
0
;
...
...
@@ -84,7 +87,6 @@ public:
/// Save the current state of the engine.
/// The state can be saved as JSON or bytes in the given string.
/// Note that the bytes are binary, not text; we only use the string class as a convenient container.
/// Engine will be in a cleared state if this method fails.
//--------------------------------------------------------------------------------------------------
virtual
bool
SerializeToString
(
std
::
string
&
state
,
SerializationFormat
m
)
const
=
0
;
...
...
src/schema/pulse/cdm/bind/PatientActions.proto
View file @
d8a0ccbc
...
...
@@ -60,7 +60,7 @@ message PatientAssessmentRequestData
ePatientAssessmentType
Type
=
2
;
/**<<@brief @ref ePatientAssessmentTypeTable */
}
/** @brief Worsen the effects of the Acute Respiratory Distress Syndrome condition. */
/** @brief Worsen the effects of the Acute
%
Respiratory Distress Syndrome condition. */
message
AcuteRespiratoryDistressSyndromeExacerbationData
{
PatientActionData
PatientAction
=
1
;
...
...
@@ -179,7 +179,7 @@ message ForcedPauseData
{
ScalarTimeData
Period
=
1
;
/**<<@brief Duration of the breath hold. */
}
/** @brief Administer a substance through an Inhaler. This command will represent a single press of an Inhaler. */
/** @brief Administer a substance through an
%
Inhaler. This command will represent a single press of an
%
Inhaler. */
message
UseInhalerData
{
}
...
...
@@ -306,7 +306,7 @@ message PulmonaryShuntExacerbationData
Scalar0To1Data
Severity
=
2
;
/**<<@brief Scale of affect, 0 being none, 1 being the highest possible.*/
}
/** @brief Respiratory muscle weakness caused by excessive effort relative to the strength and endurance of the muscles. */
/** @brief
%
Respiratory muscle weakness caused by excessive effort relative to the strength and endurance of the muscles. */
message
RespiratoryFatigueData
{
PatientActionData
PatientAction
=
1
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment