Belle II Software
development
Toggle main menu visibility
Main Page
Topics
Namespaces
Namespace List
Namespace Members
All
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
Functions
_
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
u
v
w
x
z
Variables
a
b
c
d
e
f
g
h
i
l
m
n
o
p
q
r
s
t
v
w
x
z
Typedefs
a
b
c
d
e
g
i
k
l
m
n
p
r
s
t
u
v
w
Enumerations
a
b
c
e
f
g
n
p
s
v
z
Enumerator
c
d
f
p
t
v
Classes
Class List
Class Hierarchy
Class Members
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
Enumerations
a
b
c
d
e
f
g
h
i
l
m
o
p
r
s
t
u
v
Enumerator
a
b
c
d
e
f
g
h
k
l
m
n
o
p
r
s
t
u
v
w
z
Related Symbols
b
c
d
g
i
o
r
s
t
Files
File List
File Members
All
Functions
Typedefs
Macros
Inotify.h
1
/**************************************************************************
2
* basf2 (Belle II Analysis Software Framework) *
3
* Author: The Belle II Collaboration *
4
* *
5
* See git log for contributors and copyright holders. *
6
* This file is licensed under LGPL-3.0, see LICENSE.md. *
7
**************************************************************************/
8
#ifndef _Belle2_Inotify_hh
9
#define _Belle2_Inotify_hh
10
11
#include "daq/slc/system/FileDescriptor.h"
12
13
#include <string>
14
#include <vector>
15
16
namespace
Belle2
{
21
22
class
InotifyEvent {
23
24
friend
class
Inotify;
25
26
public
:
27
InotifyEvent()
28
: m_wd(-1), m_mask(-1), m_name() {}
29
~InotifyEvent() {}
30
31
private
:
32
InotifyEvent(
int
wd,
unsigned
long
mask,
const
std::string& name)
33
: m_wd(wd), m_mask(mask), m_name(name) {}
34
35
public
:
36
int
get_wd()
const
{
return
m_wd;}
37
unsigned
long
getMask()
const
{
return
m_mask; }
38
const
std::string& getName()
const
{
return
m_name; }
39
40
private
:
41
int
m_wd;
42
unsigned
long
m_mask;
43
std::string m_name;
44
45
};
22
class
InotifyEvent {
…
};
46
47
typedef
std::vector<InotifyEvent> InotifyEventList;
48
49
class
Inotify :
public
FileDescriptor {
50
51
public
:
52
static
const
unsigned
long
FILE_CREATE;
53
static
const
unsigned
long
FILE_OPEN;
54
static
const
unsigned
long
FILE_CLOSE_WRITE;
55
static
const
unsigned
long
FILE_CLOSE_NOWRITE;
56
static
const
unsigned
long
FILE_DELETE;
57
static
const
unsigned
long
FILE_MODIFY;
58
static
const
unsigned
long
FILE_ACCESS;
59
static
const
unsigned
long
FILE_ATTRIB;
60
61
public
:
62
Inotify() {}
63
virtual
~Inotify() {}
64
65
public
:
66
void
open();
67
int
add(
const
std::string& path,
unsigned
long
mask);
68
void
remove(
int
wd);
69
InotifyEventList wait(
int
sec);
70
71
};
49
class
Inotify :
public
FileDescriptor {
…
};
72
74
}
75
76
#endif
Belle2
Abstract base class for different kinds of events.
Definition
MillepedeAlgorithm.h:17
daq
slc
system
include
Inotify.h
Generated on Sun May 18 2025 02:55:15 for Belle II Software by
1.13.2