#ifndef DATASTORAGECLIENT_H #define DATASTORAGECLIENT_H #include "Timespan.h" #include #include namespace MySQL { class MySQLClient; } // namespace MySQL namespace DataStorage { class DataStorageClientImpl; class DataStorageClient { public: DataStorageClient(const std::shared_ptr& pMySQLClient, const std::string& table); ~DataStorageClient(); public: void LogValue(int deviceId, const std::string& dataName, int timestamp, int value); 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); private: std::shared_ptr m_pMySQLClient; std::string m_table; }; } // namespace DataStorage #endif // DATASTORAGECLIENT_H