Add Timed Logging
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user