Add Timed Logging

This commit is contained in:
2020-06-10 10:21:11 +02:00
parent c6e21456cc
commit f1e6e298a4
7 changed files with 229 additions and 24 deletions
+8 -3
View File
@@ -1,7 +1,6 @@
#ifndef DATASTORAGECLIENT_H
#define DATASTORAGECLIENT_H
#include "Timespan.h"
#include <memory>
#include <string>
@@ -27,9 +26,15 @@ public:
void LogValue(int deviceId, const std::string& dataName, int timestamp, double value);
void LogValue(int deviceId, const std::string& dataName, int timestamp, const std::string& value);
void LogValueTimed(int deviceId, const std::string& dataName, int value);
void LogValueTimed(int deviceId, const std::string& dataName, double value);
void LogValueTimed(int deviceId, const std::string& dataName, const std::string& value);
public:
void MetronomeCallback();
private:
std::shared_ptr<MySQL::MySQLClient> m_pMySQLClient;
std::string m_table;
std::unique_ptr<DataStorageClientImpl> m_pDataStorageClientImpl;
};
} // namespace DataStorage