// // SQLHandler.hpp // DB_Track // // Created by Baranyai David on 2018. 10. 13.. // #ifndef SQLHandler_hpp #define SQLHandler_hpp #include #include #include #include #include #include struct Hit { unsigned int channel_id; unsigned int elapsed_time; unsigned int amplitude_peak; }; class SQLHandler { public: SQLHandler(); ~SQLHandler(); std::vector QueryNext(); void SetRange(unsigned int); private: unsigned int range; uint64_t latest_value; MYSQL *server; unsigned int min_hits; }; #endif /* SQLHandler_hpp */