ezEngine  Milestone 9
DirectoryWatcher_posix.h
1 #pragma once
2 
3 #include <Foundation/IO/DirectoryWatcher.h>
4 
6 {
7 };
8 
9 ezDirectoryWatcher::ezDirectoryWatcher()
10  : m_pImpl(nullptr)
11 {
12 }
13 
15 {
17  return EZ_FAILURE;
18 }
19 
22 
23 ezDirectoryWatcher::~ezDirectoryWatcher()
24 {
25 }
26 
27 void ezDirectoryWatcher::EnumerateChanges(ezDelegate<void(const char* filename, ezDirectoryWatcherAction action)> func)
28 {
30 }
31 
The ezBitflags class allows you to work with type-safe bitflags.
Definition: Bitflags.h:80
#define EZ_ASSERT_NOT_IMPLEMENTED
This type of assert can be used to mark code as &#39;not (yet) implemented&#39; and makes it easier to find i...
Definition: Assert.h:72
void CloseDirectory()
Closes the currently watched directory if any.
Definition: DirectoryWatcher_posix.h:20
Definition: DirectoryWatcher_posix.h:5
ezResult OpenDirectory(const ezString &absolutePath, ezBitflags< Watch > whatToWatch)
Opens the directory at absolutePath for watching. whatToWatch controls what exactly should be watched...
Definition: DirectoryWatcher_posix.h:14
A generic delegate class which supports static functions and member functions.
Definition: MathExpression.h:11
Default enum for returning failure or success, instead of using a bool.
Definition: Types.h:51
void EnumerateChanges(ezDelegate< void(const char *filename, ezDirectoryWatcherAction action)> func)
Calls the callback func for each change since the last call. For each change the filename and the act...
Definition: DirectoryWatcher_posix.h:27