Commit 9234f646 authored by fmg005's avatar fmg005

fixed error message without args

parent 31991328
......@@ -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){
};
......
......@@ -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>();
......
......@@ -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();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment