gclogger/src/GcLogger.h

34 lines
477 B
C
Raw Normal View History

2019-05-07 21:35:39 +02:00
//
// Created by h44z on 07.05.19.
//
#ifndef GCLOGGER_GCLOGGER_H
#define GCLOGGER_GCLOGGER_H
#include <iostream>
#include <string>
2019-05-07 23:14:21 +02:00
#include "GmcDevice.h"
2019-05-07 21:35:39 +02:00
#include "inipp/inipp/inipp.h"
using namespace std;
class GcLogger {
bool isSetup = false;
string serialPort;
int baudRate;
inipp::Ini<char> ini;
2019-05-07 23:14:21 +02:00
GmcDevice *device;
2019-05-07 21:35:39 +02:00
2019-05-08 18:07:23 +02:00
void setup(const string &, int);
2019-05-07 21:35:39 +02:00
public:
2019-05-08 18:07:23 +02:00
void readIni(const string &);
2019-05-07 21:35:39 +02:00
int run();
};
#endif //GCLOGGER_GCLOGGER_H