acme
Foundational cross-platform layer of the ca2 framework
Toggle main menu visibility
Loading...
Searching...
No Matches
aaa_file_watcher.h
1
28
#pragma once
29
30
31
namespace
file
32
{
33
34
35
ref class
watch_ref;
36
37
38
class
os_watch
:
39
virtual
public
watch
40
{
41
public
:
42
43
44
atom id();
45
46
string
m_strFolder;
47
48
watch_ref ^ m_watchref;
49
50
virtual
bool
open(const ::file::path& pathFolder,
bool
bRecursive)
override
;
51
52
53
};
54
55
56
57
58
class
CLASS_DECL_ACME
os_watcher
:
59
virtual
public
watcher
60
{
61
public
:
62
63
64
os_watcher();
65
virtual
~os_watcher();
66
67
68
//watch_id os_watcher::add_watch(const ::file::path& pathFolderParam, listener* plistenerParam, bool bRecursive)
69
70
//virtual void run() override;
71
72
//virtual bool step();
73
74
75
};
76
79
//class os_file_watcher :
80
// public file_watcher_impl
81
//{
82
//public:
83
84
85
// /// type for a map from atom to watch_struct pointer
86
// typedef map < atom, atom, ::pointer<watch> ::pointer<watch>>atch_map;
87
88
89
//private:
90
91
92
// /// Map of atom to watch_struct pointers
93
// watch_map m_watchmap;
94
// /// The last watchid
95
// atom m_atomLast;
96
97
98
//public:
99
100
101
// os_file_watcher(::particle * pparticle);
102
// virtual ~os_file_watcher();
103
104
105
// /// Add a directory watch
106
// /// @exception file_not_found_exception Thrown when the requested directory does not exist
107
// virtual atom add_watch(const string & directory, listener * watcher, bool bRecursive, bool bOwn) override;
108
109
// /// Remove a directory watch. This is a brute force lazy search O(nlogn).
110
// void erase_watch(const string & directory);
111
112
// /// Remove a directory watch. This is a map lookup O(logn).
113
// void erase_watch(atom watchid);
114
115
// /// Return the directory name for a watch atom
116
// string watch_path(atom watchid);
117
118
// /// Updates the watcher. Must be called often.
119
// bool update();
120
121
// /// Handles the action
122
// void handle_action(action * ptopic);
123
124
125
//}; // end os_file_watcher
126
127
128
}
// namespace file_watcher
129
130
131
file::os_watch
Definition
aaa_file_os_watcher.h:10
file::os_watcher
Definition
aaa_file_os_watcher.h:38
file::watch
Definition
watch.h:38
file::watcher
Definition
watcher.h:38
file
Definition
filesystem.h:16
operating_system
uwp
aaa_file_watcher.h
Generated by
1.17.0