// Copyright (c) 2012-2021 Wojciech Figat. All rights reserved. #pragma once #if PLATFORM_WINDOWS #include "Engine/Platform/Base/FileSystemWatcherBase.h" #include "../Win32/WindowsMinimal.h" /// /// Windows platform implementation of the file system watching object. /// class FLAXENGINE_API WindowsFileSystemWatcher : 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. WindowsFileSystemWatcher(const String& directory, bool withSubDirs); /// /// Finalizes an instance of the class. /// ~WindowsFileSystemWatcher(); public: Windows::OVERLAPPED Overlapped; Windows::HANDLE DirectoryHandle; bool StopNow; int32 CurrentBuffer; static const int32 BufferSize = 32 * 1024; byte Buffer[2][BufferSize]; }; #endif