20#ifndef ORES_TELEMETRY_EXPORTING_UPLOAD_POSITION_TRACKER_HPP
21#define ORES_TELEMETRY_EXPORTING_UPLOAD_POSITION_TRACKER_HPP
94 std::uint64_t load_position_from_file()
const;
101 void save_position_to_file(std::uint64_t position)
const;
103 std::filesystem::path log_file_path_;
104 std::filesystem::path marker_file_path_;
105 mutable std::mutex mutex_;
106 std::uint64_t position_;
Log export functionality for telemetry.
Definition file_log_exporter.hpp:28
Tracks the upload position for telemetry log files.
Definition upload_position_tracker.hpp:43
void set_position(std::uint64_t position)
Updates the upload position after a successful upload.
Definition upload_position_tracker.cpp:49
std::uint64_t get_position() const
Gets the current upload position.
Definition upload_position_tracker.cpp:44
const std::filesystem::path & marker_file_path() const
Gets the path to the marker file.
Definition upload_position_tracker.cpp:55
void reset()
Resets the tracker to position 0 and deletes the marker file.
Definition upload_position_tracker.cpp:59