Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
cla_prosim_driver
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Container Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
fmg005
cla_prosim_driver
Commits
9ecfb1c7
Commit
9ecfb1c7
authored
Jun 24, 2018
by
fmg005
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
header file for prosim library
parent
d39aca98
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
78 additions
and
0 deletions
+78
-0
include/Prosim.h
include/Prosim.h
+78
-0
No files found.
include/Prosim.h
0 → 100644
View file @
9ecfb1c7
#ifndef Prosim_H
#define Prosim_H
#include <string>
#include <iostream>
#include <cstdio>
#include <chrono>
#include <thread>
#include <map>
#include <libconfig.h++>
#include "serial/serial.h"
#include "CLA_Logger.h"
#include "Environment.h"
#include "Action.h"
#include "Pump.h"
#include "Monitor.h"
#include "PatientOut.h"
/* Pulse header files */
#include "PulsePhysiologyEngine.h"
#include "properties/SEScalarTime.h"
#include "properties/SEScalarPressure.h"
#include "properties/SEScalarFrequency.h"
#include "engine/SEEngineTracker.h"
#include "system/physiology/SECardiovascularSystem.h"
#include "system/physiology/SEBloodChemistrySystem.h"
#include "system/physiology/SERespiratorySystem.h"
using
namespace
std
;
using
namespace
libconfig
;
using
namespace
std
::
chrono
;
class
Prosim
:
public
PatientOut
{
private:
serial
::
Serial
*
m_serial
;
CLA
::
Environment
m_env
;
double
systolic_pressure
;
double
diastolic_pressure
;
double
heart_rate
;
double
resp_rate
;
double
oxygen_sat
;
std
::
shared_ptr
<
CLA
::
LOGGER
>
m_logger
;
std
::
map
<
std
::
string
,
CLA
::
Pump
*>
m_pumps
;
size_t
SendCommand
(
string
);
string
GetResponse
();
void
Clear
();
string
mode
;
/* chrono */
system_clock
::
time_point
m_start
;
system_clock
::
time_point
m_engine_advance_end
;
system_clock
::
time_point
m_command_start
;
system_clock
::
time_point
m_command_end
;
system_clock
::
time_point
m_infusion_start
;
system_clock
::
time_point
m_infusion_end
;
time_t
m_delta
;
time_t
m_next_update_time
;
time_t
m_engine_duration_ms
;
time_t
m_command_duration_ms
;
time_t
m_infusion_duration_ms
;
time_t
m_next_update_time_duration_ms
;
time_t
m_total_duration_ms
;
public:
Prosim
(
std
::
shared_ptr
<
CLA
::
LOGGER
>&
logger
,
CLA
::
Environment
&
,
\
std
::
map
<
std
::
string
,
CLA
::
Pump
*>&
);
~
Prosim
();
bool
isOpen
();
void
SetHeartRate
(
double
);
void
SetRespRate
(
double
);
void
SetOxygenSat
(
double
);
void
SetIBP
(
int
,
double
,
double
);
void
SetRemoteMode
();
void
SetLocalMode
();
string
GetCurrentMode
();
void
update
(
std
::
unique_ptr
<
PhysiologyEngine
>&
);
};
#endif
Write
Preview
Markdown
is supported
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