// Copyright (c) 2012-2024 Wojciech Figat. All rights reserved. #pragma once #if PLATFORM_MAC #include "Engine/Platform/Base/FileSystemWatcherBase.h" #include /// /// Mac platform implementation of the file system watching object. /// class FLAXENGINE_API MacFileSystemWatcher : public FileSystemWatcherBase { public: /// /// Initializes a new instance of the class. /// /// The directory to watch. /// True if monitor the directory tree rooted at the specified directory or just a given directory. MacFileSystemWatcher(const String& directory, bool withSubDirs); /// /// Finalizes an instance of the class. /// ~MacFileSystemWatcher(); public: private: FSEventStreamRef EventStream; bool IsRunning; }; #endif