Pump.h 550 Bytes
Newer Older
fmg005's avatar
fmg005 committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
#ifndef PUMP_H
#define PUMP_H

#include <string.h>
#include <iostream>
#include "tcp_pump_client.h"

using namespace std;

namespace CLA {
  class Pump {
    /* wrapper for tcp client */
    private:
      CLA::tcp_pump_client m_tcp_pump_client;
      string m_substance;
      double current_rate;
17
      std::shared_ptr<CLA::LOGGER> m_logger;
fmg005's avatar
fmg005 committed
18
    public:
19
      Pump( std::shared_ptr<CLA::LOGGER>&, const string&, const string&, const string&);
fmg005's avatar
fmg005 committed
20 21 22 23 24 25 26
      ~Pump();
      string getSubstance() const ;
      double getCurrentInfusionRate();
  };
}

#endif