Base Framework
|
Folder monitor. More...
#include <base/filesystem/FolderMonitor.h>
Inherits Resource.
Public Member Functions | |
FolderMonitor (const String &path) | |
bool | isSignaled () const |
void | wait () const |
bool | wait (unsigned int milliseconds) const |
~FolderMonitor () noexcept | |
![]() | |
String | getDescription () const |
void | setDescription (const String &description) |
unsigned int | getResourceId () const |
unsigned int | getCreatedById () const |
AnyReference | getHandle () const noexcept |
template<class TYPE > | |
TYPE & | getInternalHandle () const |
operator bool () const noexcept | |
Additional Inherited Members | |
![]() | |
AnyReference | handle |
Folder monitor.
Folder monitor.
FolderMonitor::FolderMonitor | ( | const String & | path | ) |
Initializes folder monitor.
path | Specifies the folder to monitor. |
|
noexcept |
Destroys the monitor.
bool FolderMonitor::isSignaled | ( | ) | const |
Returns true if the an event has occured.
void FolderMonitor::wait | ( | ) | const |
Waits for an event.
bool FolderMonitor::wait | ( | unsigned int | milliseconds | ) | const |
Waits for an event.
milliseconds | The timeout period. |