2020-05-08 14:45:27 +00:00
|
|
|
/**
|
|
|
|
* Read and write current ip to a temp file to remember last ip until restart
|
|
|
|
*
|
|
|
|
* @author Lukas Heiligenbrunner
|
|
|
|
* @date 05.05.2019
|
|
|
|
*/
|
2020-04-30 10:16:29 +00:00
|
|
|
|
2019-10-26 12:41:43 +00:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <string>
|
2020-04-30 10:16:29 +00:00
|
|
|
|
2019-10-26 12:41:43 +00:00
|
|
|
class FileLogger {
|
|
|
|
public:
|
|
|
|
/**
|
|
|
|
* safe ip to temp file
|
|
|
|
* @param ip ip address to save
|
|
|
|
*/
|
|
|
|
void safeip(std::string ip);
|
|
|
|
|
|
|
|
/**
|
|
|
|
* read ip from file
|
|
|
|
* @return read ip
|
|
|
|
*/
|
|
|
|
std::string readip();
|
|
|
|
|
|
|
|
};
|