34 lines
477 B
C++
34 lines
477 B
C++
//
|
|
// Created by h44z on 07.05.19.
|
|
//
|
|
|
|
#ifndef GCLOGGER_GCLOGGER_H
|
|
#define GCLOGGER_GCLOGGER_H
|
|
|
|
|
|
#include <iostream>
|
|
#include <string>
|
|
|
|
#include "GmcDevice.h"
|
|
#include "inipp/inipp/inipp.h"
|
|
|
|
using namespace std;
|
|
|
|
class GcLogger {
|
|
bool isSetup = false;
|
|
string serialPort;
|
|
int baudRate;
|
|
inipp::Ini<char> ini;
|
|
GmcDevice *device;
|
|
|
|
void setup(const string &, int);
|
|
|
|
public:
|
|
void readIni(const string &);
|
|
|
|
int run();
|
|
};
|
|
|
|
|
|
#endif //GCLOGGER_GCLOGGER_H
|