OpenMS
Loading...
Searching...
No Matches
ToolHandler.h
Go to the documentation of this file.
1// Copyright (c) 2002-present, OpenMS Inc. -- EKU Tuebingen, ETH Zurich, and FU Berlin
2// SPDX-License-Identifier: BSD-3-Clause
3//
4// --------------------------------------------------------------------------
5// $Maintainer: Chris Bielow $
6// $Authors: Chris Bielow $
7// --------------------------------------------------------------------------
8
9#pragma once
10
11#include <OpenMS/APPLICATIONS/OpenMS_CLIConfig.h>
12
16
17#include <map>
18
19
20namespace OpenMS
21{
62 typedef std::map<std::string, Internal::ToolDescription> ToolListType;
63
64 class OPENMS_CLI_DLLAPI ToolHandler
65 {
66public:
67
82
92
103 static StringList getTypes(const std::string& toolname);
104
111 static std::string getCategory(const std::string& toolname);
112
117 static std::string getToolRegistryPath();
118
119private:
120
124
130 };
131
132} // namespace OpenMS
Definition ToolHandler.h:65
static std::string getCategory(const std::string &toolname)
Return the category string of a tool.
static ToolListType getTOPPToolList()
List every TOPP tool enabled in this build, keyed by tool name.
static const ToolListType & getTOPPToolListRef()
The registry of getTOPPToolList without copying it.
static ToolListType loadRegistry_()
static StringList getTypes(const std::string &toolname)
Return the alternative "types" / sub-commands a tool supports, or an empty list if it has none.
static StringList getToolRegistryFiles_()
static std::string getToolRegistryPath()
Resolved file-system path of the tool registry directory (root of the .tsv search).
std::vector< std::string > StringList
Vector of String.
Definition TypeAliases.h:39
std::map< std::string, Internal::ToolDescription > ToolListType
Registry of TOPP tools and their TOPPAS categories.
Definition ToolHandler.h:62
Main OpenMS namespace.
Definition openswathalgo/include/OpenMS/OPENSWATHALGO/DATAACCESS/ISpectrumAccess.h:19