6 #include <condition_variable>
10 #include <opencv2/opencv.hpp>
13 #if __has_include(<filesystem>)
15 namespace fs = std::filesystem;
16 #elif __has_include(<boost/filesystem.hpp>)
17 #include <boost/filesystem.hpp>
18 namespace fs = boost::filesystem;
20 #error "No suitable filesystem library available"
42 Saver(
int interval, std::string class_name);
46 void AddObjectToSave(
void *
object,
int type,
const std::string& filename);
60 std::string parent_name;
63 std::atomic<bool> exitSaveLoop;
64 std::queue<data_object_t *> objects_to_save_;
66 std::thread save_thread_;
67 std::mutex queue_mutex_;
68 std::condition_variable cv_;