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
40cabc25
Commit
40cabc25
authored
May 29, 2018
by
fmg005
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Wrapper for for the pump socket client
parent
dc70671f
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
4 deletions
+6
-4
Pump.cpp
Pump.cpp
+4
-3
include/Pump.h
include/Pump.h
+2
-1
No files found.
Pump.cpp
View file @
40cabc25
...
...
@@ -3,9 +3,10 @@
using
namespace
CLA
;
/* wrapper for tcp client */
Pump
::
Pump
(
const
string
&
substance
,
const
string
&
topic
,
const
string
&
type
)
:
m_substance
(
substance
),
m_tcp_pump_client
(
topic
,
type
)
{
m_tcp_pump_client
.
initialize
();
/* connection to server via tcp socket */
Pump
::
Pump
(
std
::
shared_ptr
<
CLA
::
LOGGER
>&
logger
,
const
string
&
substance
,
const
string
&
topic
,
const
string
&
type
)
:
m_logger
(
logger
),
m_substance
(
substance
),
m_tcp_pump_client
(
topic
,
type
,
logger
)
{
m_tcp_pump_client
.
initialize
();
/* connection setup to server via tcp socket */
}
double
Pump
::
getCurrentInfusionRate
()
{
...
...
include/Pump.h
View file @
40cabc25
...
...
@@ -14,8 +14,9 @@ namespace CLA {
CLA
::
tcp_pump_client
m_tcp_pump_client
;
string
m_substance
;
double
current_rate
;
std
::
shared_ptr
<
CLA
::
LOGGER
>
m_logger
;
public:
Pump
(
const
string
&
,
const
string
&
,
const
string
&
);
Pump
(
std
::
shared_ptr
<
CLA
::
LOGGER
>&
,
const
string
&
,
const
string
&
,
const
string
&
);
~
Pump
();
string
getSubstance
()
const
;
double
getCurrentInfusionRate
();
...
...
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