OpenMS
Loading...
Searching...
No Matches
System

Very basic functionality like file system or stopwatch. More...

Classes

class  ConsoleUtils
 Singleton helper for terminal-width-aware string wrapping in TOPP-tool console output. More...
 
class  OpenMSOSInfo
 Snapshot of the runtime operating system: name, version, and pointer-width architecture. More...
 
struct  OpenMSBuildInfo
 Build-configuration accessors: build type, OpenMP availability, and OpenMP thread count. More...
 
class  File
 Basic file handling operations. More...
 
class  JavaInfo
 Detect Java and retrieve information. More...
 
class  Network
 Convenience wrapper around NetworkGetRequest for one-shot HTTP/HTTPS downloads. More...
 
class  NetworkGetRequest
 Synchronous HTTP GET request backed by libcurl. More...
 
class  PythonInfo
 Detect Python and retrieve information. More...
 
class  RWrapper
 R-Wrapper Class. More...
 
class  StopWatch
 This class is used to determine the current process' CPU (user and/or kernel) and wall time. More...
 
class  SystemSettings
 Per-user OpenMS configuration: the OpenMS.ini system parameters and the home, temporary and database directories derived from them. More...
 
class  TempDir
 A uniquely named temporary directory, removed when the object is destroyed. More...
 
class  TempFiles
 Temporary files that live until the process exits. More...
 
class  UpdateCheck
 Helper Functions to perform an update query to the OpenMS REST server. More...
 

Typedefs

typedef std::map< std::string, Internal::ToolDescription > ToolListType
 Registry of TOPP tools and their TOPPAS categories.
 

Detailed Description

Very basic functionality like file system or stopwatch.

Typedef Documentation

◆ ToolListType

typedef std::map<std::string, Internal::ToolDescription> ToolListType

Registry of TOPP tools and their TOPPAS categories.

The registry is data, not code: it is assembled from the tab-separated .tsv files under ToolHandler::getToolRegistryPath ([OpenMS share]/TOOLS plus an OS-specific subdirectory, .../LINUX on Mac and Linux and .../WINDOWS on Windows). The search path can be augmented through the OPENMS_TOOL_REGISTRY_PATH environment variable (OPENMS_TTD_INTERNAL_PATH, its name in earlier releases, is still read as well). A directory that the search reaches twice contributes its files once.

An entry carries only what the registry is for – the tool's name and the category TOPPAS groups it under, plus the tool's -type sub-modes where it has any:

# <tool name> <TOPPAS category>
Basic file handling operations.
Definition File.h:26
if none is it is fetched and built automatically from source via CMake FetchContent Affects FileConverter
Definition common-cmake-parameters.doxygen:65

Everything else about a tool (its description, parameters, valid formats, citations) is self-described by its binary through -write_ctd, so a tool does not have to be built from the same source tree, or even the same repository, as the library: installing its binary and a .tsv naming it is enough to register it.

OpenMS' own tools are registered by share/OpenMS/TOOLS/OpenMS.tsv, which the build generates from the openms_topp_tool() declarations in src/topp/executables.cmake (see cmake/topp_tool_macros.cmake). That file is therefore never edited by hand and lists exactly the tools the build produced, so a tool that a build option did not build is not registered either. A build tree that was never installed has no share/OpenMS/TOOLS of its own; there the generated file is read from the build tree.

Used by TOPPAS for the visual workflow editor's tool palette and by the TOPP runtime to look up tools and their categories.

Note
The assembled registry is parsed once per process and cached, so the repeated lookups OpenMS::TOPPBase makes during start-up cost one map lookup each. Map: TOPP tool name -> its Internal::ToolDescription (category + per-type configuration).