|
Antares Simulator
Power System Simulator
|
Look for study folders asynchronously. More...
#include <finder.h>
Public Types | |
| enum | { defaultTimeout = 10000 } |
| using | FolderVector = std::vector< Yuni::String::Ptr > |
| List of folders. | |
Constructor | |
| std::mutex | mutex |
| StudyFinder () | |
| Default Constructor. | |
| StudyFinder (const StudyFinder &) | |
| Copy constructor. | |
| virtual | ~StudyFinder () |
| Destructor. | |
| void | lookup (const Yuni::String &folder) |
| Start a new lookup from a single folder. More... | |
| void | lookup (const Yuni::String::Vector &folders) |
| Start a new lookup from a list of folder. More... | |
| void | lookup (const Yuni::String::List &folders) |
| Start a new lookup from a list of folder. More... | |
| void | stop (uint timeout=defaultTimeout) |
| Stop a lookup currently in progress. | |
| void | wait () |
| Wait Indefinitely for the end of the lookup. | |
| void | wait (uint timeout) |
| Wait for the end of the lookup (with timeout) | |
| virtual void | onStudyFound (const Yuni::String &folder, const StudyVersion &version)=0 |
| Event triggered when a lookup has been found. | |
| virtual void | onLookupFinished () |
| Event triggered when a lookup has finished gracefully. More... | |
| virtual void | onLookupAborted () |
| Event triggered when a lookup has been aborted. More... | |
Look for study folders asynchronously.
| void Antares::Data::StudyFinder::lookup | ( | const Yuni::String & | folder | ) |
Start a new lookup from a single folder.
If a lookup was already in progress, it will be stopped before.
| folder | The root folder where to start the lookup |
| void Antares::Data::StudyFinder::lookup | ( | const Yuni::String::List & | folders | ) |
Start a new lookup from a list of folder.
If a lookup was already in progress, it will be stopped before.
| folders | The list of folders where to start the lookup |
| void Antares::Data::StudyFinder::lookup | ( | const Yuni::String::Vector & | folders | ) |
Start a new lookup from a list of folder.
If a lookup was already in progress, it will be stopped before.
| folders | The list of folders where to start the lookup |
|
inlinevirtual |
Event triggered when a lookup has been aborted.
This event might be called from any thread.
|
inlinevirtual |
Event triggered when a lookup has finished gracefully.
This event might be called from any thread.