Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
fmg005
clasim
Commits
9234f646
Commit
9234f646
authored
Mar 14, 2018
by
fmg005
Browse files
fixed error message without args
parent
31991328
Changes
3
Show whitespace changes
Inline
Side-by-side
simsrc/mcps2018/algo1/MedicalDevice.cpp
View file @
9234f646
...
...
@@ -18,7 +18,8 @@ void MedicalDevice::update(std::unique_ptr<PhysiologyEngine>& engine) {
// Extract the rate from the configuration file
// str: path to configuration file
// Pure virtual function to be implemented in derived classes
void
MedicalDevice
::
LoadConfig
(
std
::
unique_ptr
<
PhysiologyEngine
>&
,
const
char
*
str
){
void
MedicalDevice
::
LoadConfig
(
std
::
unique_ptr
<
PhysiologyEngine
>&
,
const
std
::
shared_ptr
<
Config
>&
cf
){
};
...
...
simsrc/mcps2018/algo1/SimEngine.cpp
View file @
9234f646
...
...
@@ -51,8 +51,6 @@
using
namespace
libconfig
;
int
main
(
int
argc
,
char
*
argv
[]){
string
f_path
=
argv
[
1
];
const
char
*
filepath
=
f_path
.
c_str
();
if
(
argc
<
2
)
{
...
...
@@ -61,6 +59,9 @@ int main(int argc, char * argv[]){
}
else
{
string
f_path
=
argv
[
1
];
const
char
*
filepath
=
f_path
.
c_str
();
clock_t
t1
,
t2
,
sim_run_time
;
vector
<
string
>
patients_list
;
auto
cf
=
std
::
make_shared
<
Config
>
();
...
...
simsrc/mcps2018/include/MedicalDevice.h
View file @
9234f646
...
...
@@ -33,7 +33,8 @@ class MedicalDevice {
virtual
void
update
(
std
::
unique_ptr
<
PhysiologyEngine
>&
);
// Load the configuration file to capture device rate
virtual
void
LoadConfig
(
std
::
unique_ptr
<
PhysiologyEngine
>&
,
const
char
*
);
virtual
void
LoadConfig
(
std
::
unique_ptr
<
PhysiologyEngine
>&
,
const
std
::
shared_ptr
<
Config
>&
cf
);
// Destructor
~
MedicalDevice
();
...
...
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