Scans for tools/utils and generates a param for each asynchronously.
More...
#include <OpenMS/VISUAL/TVToolDiscovery.h>
Scans for tools/utils and generates a param for each asynchronously.
All tools and utils listed in the ToolHandler class are considered.
scanner.loadParams();
...
scanner.waitForParams();
scanner.getToolParams();
◆ TVToolDiscovery() [1/2]
◆ TVToolDiscovery() [2/2]
◆ ~TVToolDiscovery()
◆ getParamFromIni_()
static Param getParamFromIni_ |
( |
const std::string & |
tool_name | ) |
|
|
staticprivate |
Returns param for a given tool/util. This function is thread-safe.
◆ getToolParams()
const std::map<std::string, Param>& getToolParams |
( |
| ) |
|
Returns a hash map containing a param for each tool/util.
Note that it is possible that not all param futures have been finished (or loaded) yet if this function is called. In that case, the function starts param parsing (loadParam()) and waits for completion (waitForParams()) before returning the result.
Referenced by TOPPViewBase::addToolParamsToIni_().
◆ loadParams()
◆ operator=()
◆ waitForParams()
Wait for all future params to finish evaluating.
While waiting the GUI remains responsive. After waiting it is safe to access the params without further waiting.
Referenced by TOPPViewBase::addToolParamsToIni_().
◆ param_futures_
std::map<std::string, std::future<Param> > param_futures_ |
|
private |
Contains a param future for each tool/util name.
◆ params_
std::map<std::string, Param> params_ |
|
private |
Contains a mapping of each tool/util name to its param.