opynsim
Unofficial C++ Documentation
Loading...
Searching...
No Matches
file_change_poller.h
Go to the documentation of this file.
1#pragma once
2
3#include <chrono>
4#include <filesystem>
5#include <string>
6
7namespace osc
8{
10 public:
12 std::chrono::milliseconds delay_between_checks,
13 const std::string& path
14 );
15
16 bool change_detected(const std::string& path);
17
18 private:
19 std::chrono::milliseconds delay_between_checks_;
20 std::chrono::steady_clock::time_point next_polling_time_;
21 std::filesystem::file_time_type file_last_modification_time_;
22 };
23}
Definition file_change_poller.h:9
FileChangePoller(std::chrono::milliseconds delay_between_checks, const std::string &path)
bool change_detected(const std::string &path)
Definition custom_decoration_generator.h:5
constexpr U to(T &&value)
Definition conversion.h:56