Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
Lima
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
62
Issues
62
List
Boards
Labels
Service Desk
Milestones
Jira
Jira
Merge Requests
4
Merge Requests
4
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
LimaGroup
Lima
Commits
12855972
Commit
12855972
authored
Oct 23, 2012
by
Sebastien Petitdemange
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add some documentation
parent
b80c7604
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
6 deletions
+22
-6
common/src/DirectoryEventUtils.cpp
common/src/DirectoryEventUtils.cpp
+22
-6
No files found.
common/src/DirectoryEventUtils.cpp
View file @
12855972
...
...
@@ -524,7 +524,14 @@ void _GenericDirectoryEvent::_run()
if
(
dir
)
closedir
(
dir
);
}
//DirectoryEvent class
/** @brief this class manage file event on a directory.
*
* This class is dedicated to follow a detector acquisition on disk,
* it's call DirectoryEvent::Callback class when a
* new file just arrived in the directory.
* @param local if true use a local event technique, this can't work on an NFS client.
* @param cbk the callback class
*/
DirectoryEvent
::
DirectoryEvent
(
bool
local
,
Callback
&
cbk
)
{
if
(
local
)
...
...
@@ -537,27 +544,36 @@ DirectoryEvent::~DirectoryEvent()
{
delete
m_event
;
}
/** @brief prepare method register new parameters. This methode should be called
* before start
*/
void
DirectoryEvent
::
prepare
(
const
DirectoryEvent
::
Parameters
&
parameters
)
{
m_event
->
prepare
(
parameters
);
}
/** @brief start the event watcher
*/
void
DirectoryEvent
::
start
()
{
m_event
->
start
();
}
/** @brief stop the event watcher
*/
void
DirectoryEvent
::
stop
()
{
m_event
->
stop
();
}
/** @brief return the event watcher state
*/
bool
DirectoryEvent
::
isStopped
()
const
{
return
m_event
->
isStopped
();
}
/** @brief return the next expected file number.
*
* i.e: if the file_pattern == "test_%.3d.edf" and filenumber == 42
* then the next filename expected is test_042.edf
*/
int
DirectoryEvent
::
getNextFileNumberExpected
()
const
{
return
m_event
->
getNextFileNumberExpected
();
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment