summaryrefslogtreecommitdiff
path: root/shared/inotify/doc/man/man3/InotifyEvent.3
blob: c45eaba9bae81d978704dc2d0757b6ffb7f5e788 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
.TH "InotifyEvent" 3 "9 Dec 2009" "Version 0.7.3" "inotify-cxx" \" -*- nroff -*-
.ad l
.nh
.SH NAME
InotifyEvent \- inotify event class  

.PP
.SH SYNOPSIS
.br
.PP
\fC#include <inotify-cxx.h>\fP
.PP
.SS "Public Member Functions"

.in +1c
.ti -1c
.RI "\fBInotifyEvent\fP ()"
.br
.RI "\fIConstructor. \fP"
.ti -1c
.RI "\fBInotifyEvent\fP (const struct inotify_event *pEvt, \fBInotifyWatch\fP *pWatch)"
.br
.RI "\fIConstructor. \fP"
.ti -1c
.RI "\fB~InotifyEvent\fP ()"
.br
.RI "\fIDestructor. \fP"
.ti -1c
.RI "int32_t \fBGetDescriptor\fP () const "
.br
.RI "\fIReturns the event watch descriptor. \fP"
.ti -1c
.RI "uint32_t \fBGetMask\fP () const "
.br
.RI "\fIReturns the event mask. \fP"
.ti -1c
.RI "bool \fBIsType\fP (uint32_t uType) const "
.br
.RI "\fIChecks for the event type. \fP"
.ti -1c
.RI "uint32_t \fBGetCookie\fP () const "
.br
.RI "\fIReturns the event cookie. \fP"
.ti -1c
.RI "uint32_t \fBGetLength\fP () const "
.br
.RI "\fIReturns the event name length. \fP"
.ti -1c
.RI "const std::string & \fBGetName\fP () const "
.br
.RI "\fIReturns the event name. \fP"
.ti -1c
.RI "void \fBGetName\fP (std::string &rName) const "
.br
.RI "\fIExtracts the event name. \fP"
.ti -1c
.RI "\fBInotifyWatch\fP * \fBGetWatch\fP ()"
.br
.RI "\fIReturns the source watch. \fP"
.ti -1c
.RI "void \fBDumpTypes\fP (std::string &rStr) const "
.br
.RI "\fIFills the string with all types contained in the event mask. \fP"
.in -1c
.SS "Static Public Member Functions"

.in +1c
.ti -1c
.RI "static bool \fBIsType\fP (uint32_t uValue, uint32_t uType)"
.br
.RI "\fIChecks a value for the event type. \fP"
.ti -1c
.RI "static uint32_t \fBGetMaskByName\fP (const std::string &rName)"
.br
.RI "\fIFinds the appropriate mask for a name. \fP"
.ti -1c
.RI "static void \fBDumpTypes\fP (uint32_t uValue, std::string &rStr)"
.br
.RI "\fIFills the string with all types contained in an event mask value. \fP"
.in -1c
.SS "Private Attributes"

.in +1c
.ti -1c
.RI "uint32_t \fBm_uMask\fP"
.br
.RI "\fImask \fP"
.ti -1c
.RI "uint32_t \fBm_uCookie\fP"
.br
.RI "\fIcookie \fP"
.ti -1c
.RI "std::string \fBm_name\fP"
.br
.RI "\fIname \fP"
.ti -1c
.RI "\fBInotifyWatch\fP * \fBm_pWatch\fP"
.br
.RI "\fIsource watch \fP"
.in -1c
.SH "Detailed Description"
.PP 
inotify event class 

It holds all information about inotify event and provides access to its particular values.
.PP
This class is not (and is not intended to be) thread-safe and therefore it must not be used concurrently in multiple threads. 
.SH "Constructor & Destructor Documentation"
.PP 
.SS "InotifyEvent::InotifyEvent ()\fC [inline]\fP"
.PP
Constructor. 
.PP
Creates a plain event. 
.SS "InotifyEvent::InotifyEvent (const struct inotify_event * pEvt, \fBInotifyWatch\fP * pWatch)\fC [inline]\fP"
.PP
Constructor. 
.PP
Creates an event based on inotify event data. For NULL pointers it works the same way as \fBInotifyEvent()\fP.
.PP
\fBParameters:\fP
.RS 4
\fIpEvt\fP event data 
.br
\fIpWatch\fP inotify watch 
.RE
.PP

.SS "InotifyEvent::~InotifyEvent ()\fC [inline]\fP"
.PP
Destructor. 
.PP
.SH "Member Function Documentation"
.PP 
.SS "void InotifyEvent::DumpTypes (std::string & rStr) const"
.PP
Fills the string with all types contained in the event mask. 
.PP
\fBParameters:\fP
.RS 4
\fIrStr\fP dumped event types 
.RE
.PP

.SS "void InotifyEvent::DumpTypes (uint32_t uValue, std::string & rStr)\fC [static]\fP"
.PP
Fills the string with all types contained in an event mask value. 
.PP
\fBParameters:\fP
.RS 4
\fIuValue\fP event mask value 
.br
\fIrStr\fP dumped event types 
.RE
.PP

.SS "uint32_t InotifyEvent::GetCookie () const\fC [inline]\fP"
.PP
Returns the event cookie. 
.PP
\fBReturns:\fP
.RS 4
event cookie 
.RE
.PP

.SS "int32_t InotifyEvent::GetDescriptor () const"
.PP
Returns the event watch descriptor. 
.PP
\fBReturns:\fP
.RS 4
watch descriptor
.RE
.PP
\fBSee also:\fP
.RS 4
\fBInotifyWatch::GetDescriptor()\fP 
.RE
.PP

.SS "uint32_t InotifyEvent::GetLength () const\fC [inline]\fP"
.PP
Returns the event name length. 
.PP
\fBReturns:\fP
.RS 4
event name length 
.RE
.PP

.SS "uint32_t InotifyEvent::GetMask () const\fC [inline]\fP"
.PP
Returns the event mask. 
.PP
\fBReturns:\fP
.RS 4
event mask
.RE
.PP
\fBSee also:\fP
.RS 4
\fBInotifyWatch::GetMask()\fP 
.RE
.PP

.SS "uint32_t InotifyEvent::GetMaskByName (const std::string & rName)\fC [static]\fP"
.PP
Finds the appropriate mask for a name. 
.PP
\fBParameters:\fP
.RS 4
\fIrName\fP mask name 
.RE
.PP
\fBReturns:\fP
.RS 4
mask for name; 0 on failure 
.RE
.PP

.SS "void InotifyEvent::GetName (std::string & rName) const\fC [inline]\fP"
.PP
Extracts the event name. 
.PP
\fBParameters:\fP
.RS 4
\fIrName\fP event name 
.RE
.PP

.SS "const std::string& InotifyEvent::GetName () const\fC [inline]\fP"
.PP
Returns the event name. 
.PP
\fBReturns:\fP
.RS 4
event name 
.RE
.PP

.SS "\fBInotifyWatch\fP* InotifyEvent::GetWatch ()\fC [inline]\fP"
.PP
Returns the source watch. 
.PP
\fBReturns:\fP
.RS 4
source watch 
.RE
.PP

.SS "bool InotifyEvent::IsType (uint32_t uType) const\fC [inline]\fP"
.PP
Checks for the event type. 
.PP
\fBParameters:\fP
.RS 4
\fIuType\fP type which is checked for 
.RE
.PP
\fBReturns:\fP
.RS 4
true = event mask contains the given type, false = otherwise 
.RE
.PP

.SS "static bool InotifyEvent::IsType (uint32_t uValue, uint32_t uType)\fC [inline, static]\fP"
.PP
Checks a value for the event type. 
.PP
\fBParameters:\fP
.RS 4
\fIuValue\fP checked value 
.br
\fIuType\fP type which is checked for 
.RE
.PP
\fBReturns:\fP
.RS 4
true = the value contains the given type, false = otherwise 
.RE
.PP

.SH "Member Data Documentation"
.PP 
.SS "std::string \fBInotifyEvent::m_name\fP\fC [private]\fP"
.PP
name 
.PP
.SS "\fBInotifyWatch\fP* \fBInotifyEvent::m_pWatch\fP\fC [private]\fP"
.PP
source watch 
.PP
.SS "uint32_t \fBInotifyEvent::m_uCookie\fP\fC [private]\fP"
.PP
cookie 
.PP
.SS "uint32_t \fBInotifyEvent::m_uMask\fP\fC [private]\fP"
.PP
mask 
.PP


.SH "Author"
.PP 
Generated automatically by Doxygen for inotify-cxx from the source code.
bgstack15