21 #ifndef __ANTARES_LIB_FINDER_FINDER_H__
22 #define __ANTARES_LIB_FINDER_FINDER_H__
26 #include <yuni/yuni.h>
27 #include <yuni/core/string.h>
28 #include <yuni/io/directory/iterator.h>
30 #include "antares/study/study.h"
32 #include "../version.h"
34 namespace Antares::Data
72 void lookup(
const Yuni::String& folder);
80 void lookup(
const Yuni::String::Vector& folders);
87 void lookup(
const Yuni::String::List& folders);
102 void wait(uint timeout);
132 Yuni::IO::Directory::IIterator<true>* pLycos;
Look for study folders asynchronously.
Definition: finder.h:40
void stop(uint timeout=defaultTimeout)
Stop a lookup currently in progress.
Definition: finder.cpp:112
void lookup(const Yuni::String &folder)
Start a new lookup from a single folder.
StudyFinder()
Default Constructor.
Definition: finder.cpp:93
virtual void onLookupFinished()
Event triggered when a lookup has finished gracefully.
Definition: finder.h:115
void wait()
Wait Indefinitely for the end of the lookup.
Definition: finder.cpp:121
virtual ~StudyFinder()
Destructor.
Definition: finder.cpp:103
std::vector< Yuni::String::Ptr > FolderVector
List of folders.
Definition: finder.h:49
virtual void onStudyFound(const Yuni::String &folder, const StudyVersion &version)=0
Event triggered when a lookup has been found.
virtual void onLookupAborted()
Event triggered when a lookup has been aborted.
Definition: finder.h:124
@ defaultTimeout
The default value for the timeout.
Definition: finder.h:45
Version of a study.
Definition: version.h:36