MCPcopy Create free account
hub / github.com/Tracktion/choc / Event

Method Event

choc/platform/choc_FileWatcher.h:496–500  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

494{
495
496inline Watcher::Event::Event (EventType t, FileType ft, std::filesystem::path f)
497 : eventType (t), fileType (ft), file (std::move (f)),
498 time (std::chrono::system_clock::now())
499{
500}
501
502inline Watcher::Watcher (std::filesystem::path t, std::function<void(const Event&)> c, uint32_t rate)
503 : target (std::move (t)), callback (std::move (c)), millisecondsBetweenChecks (rate)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected