Nebula
Toggle main menu visibility
Loading...
Searching...
No Matches
win32filewatcher.h
Go to the documentation of this file.
1
#pragma once
2
//------------------------------------------------------------------------------
10
#include "
core/types.h
"
11
#include "
core/refcounted.h
"
12
#include "
util/pinnedarray.h
"
13
#include "
util/fixedarray.h
"
14
15
namespace
IO
16
{
17
struct
EventHandlerData;
18
struct
FileWatcherPlatform
19
{
20
Util::Array<HANDLE>
handles
;
21
Util::Array<OVERLAPPED>
overlaps
;
22
Util::PinnedArray<0xFFF, Util::FixedArray<BYTE>
>
buffers
;
23
DWORD
notifyFilter
;
24
Util::Dictionary<HANDLE, Util::String>
relativePathLookup
;
25
bool
recursive
;
26
};
27
28
class
FileWatcherImpl
29
{
30
public
:
31
static
void
Init
();
32
static
void
Shutdown
();
33
static
void
CreateWatcher
(
EventHandlerData
& data);
34
static
void
DestroyWatcher
(
EventHandlerData
& data);
35
static
void
Update
(
EventHandlerData
& data);
36
static
void
WaitForEvents
(
double
timeoutSecs);
37
static
void
WakeUp
();
38
};
39
}
IO::FileWatcherImpl
Definition
linuxfilewatcher.h:27
IO::FileWatcherImpl::WakeUp
static void WakeUp()
IO::FileWatcherImpl::Init
static void Init()
IO::FileWatcherImpl::WaitForEvents
static void WaitForEvents(double timeoutSecs)
IO::FileWatcherImpl::DestroyWatcher
static void DestroyWatcher(EventHandlerData &data)
IO::FileWatcherImpl::Shutdown
static void Shutdown()
IO::FileWatcherImpl::Update
static void Update(EventHandlerData &data)
IO::FileWatcherImpl::CreateWatcher
static void CreateWatcher(EventHandlerData &data)
Util::Array
Nebula's dynamic array class.
Definition
array.h:61
Util::Dictionary
A collection of key/value pairs with quick value retrieval by key at roughly O(log n).
Definition
dictionary.h:35
Util::PinnedArray
Definition
pinnedarray.h:17
fixedarray.h
IO
Instances of wrapped stream classes.
Definition
multiplayerfeatureunit.cc:324
pinnedarray.h
refcounted.h
IO::EventHandlerData
Definition
filewatcher.h:66
IO::FileWatcherPlatform::handles
Util::Array< HANDLE > handles
Definition
win32filewatcher.h:20
IO::FileWatcherPlatform::relativePathLookup
Util::Dictionary< HANDLE, Util::String > relativePathLookup
Definition
win32filewatcher.h:24
IO::FileWatcherPlatform::overlaps
Util::Array< OVERLAPPED > overlaps
Definition
win32filewatcher.h:21
IO::FileWatcherPlatform::recursive
bool recursive
Definition
linuxfilewatcher.h:20
IO::FileWatcherPlatform::buffers
Util::PinnedArray< 0xFFF, Util::FixedArray< BYTE > > buffers
Definition
win32filewatcher.h:22
IO::FileWatcherPlatform::notifyFilter
DWORD notifyFilter
Definition
win32filewatcher.h:23
types.h
code
foundation
io
win32
win32filewatcher.h
Generated on
for Nebula. Dark theme by
Tilen Majerle
. All rights reserved.