#include <OpenMS/APPLICATIONS/ToolHandler.h>
◆ getCategory()
| static std::string getCategory |
( |
const std::string & |
toolname | ) |
|
|
static |
Return the category string of a tool.
- Parameters
-
| [in] | toolname | Name of the TOPP tool to query. |
- Returns
- Category string (e.g.
"Quantitation") or an empty string if toolname is unknown.
◆ getToolRegistryFiles_()
Enumerate the .tsv files to read: everything under getToolRegistryPath (and its OS-specific subdirectory), or under the build tree's generated registry when this build was never installed, plus the directories the environment variables add. A directory the search reaches more than once contributes its files once.
◆ getToolRegistryPath()
| static std::string getToolRegistryPath |
( |
| ) |
|
|
static |
Resolved file-system path of the tool registry directory (root of the .tsv search).
- Returns
File::getOpenMSDataPath() + "/TOOLS".
◆ getTOPPToolList()
List every TOPP tool enabled in this build, keyed by tool name.
Assembled from the .tsv files under getToolRegistryPath (a name collision between two of them throws Exception::InvalidValue, naming both files). Each value carries the tool's category string (e.g. "Quantitation", "File Converter") used by TOPPAS for grouping. Every .tsv of the directory is read, so a tool of another repository is listed as soon as its file is installed there.
Prefer getTOPPToolListRef when a copy is not needed.
- Returns
- Map
toolname -> Internal::ToolDescription for every tool enabled in this build.
Referenced by TOPPASBase::createTOPPToolsTreeWidget().
◆ getTOPPToolListRef()
◆ getTypes()
| static StringList getTypes |
( |
const std::string & |
toolname | ) |
|
|
static |
Return the alternative "types" / sub-commands a tool supports, or an empty list if it has none.
Most tools have a single behaviour; a small number expose multiple sub-modes via -type (e.g. FeatureFinderCentroided vs. FeatureFinderIsotopeWavelet sharing infrastructure).
- Parameters
-
| [in] | toolname | Name of the TOPP tool to query. |
- Returns
- Type names (may be empty); empty also when the tool is unknown, so that a tool which is not in the registry can still write its CTD/CWL description.
Referenced by TOPPASBase::createTOPPToolsTreeWidget().
◆ loadRegistry_()