OpenMS
Loading...
Searching...
No Matches
INIUpdater.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
19namespace OpenMS
20{
26 typedef std::map<Internal::ToolDescriptionInternal, Internal::ToolDescriptionInternal> ToolMapping;
27
28 class OPENMS_CLI_DLLAPI INIUpdater
29 {
30public:
31
33
34
36
38
39 /*
40 Finds the name of the new tool.
41 The tools_type is optional and should be "" if there is none.
42
43 The tools_type is ignored if there is a mapping without a type.
44
45 @return true on success
46 */
47 bool getNewToolName(const std::string & old_name, const std::string & tools_type, std::string & new_name);
48
49private:
51
52 };
53
54} // namespace OpenMS
55
Definition INIUpdater.h:29
const ToolMapping & getNameMapping()
StringList getToolNamesFromINI(const Param &ini) const
static ToolMapping map_
Definition INIUpdater.h:50
bool getNewToolName(const std::string &old_name, const std::string &tools_type, std::string &new_name)
Management and storage of parameters / INI files.
Definition Param.h:46
std::vector< std::string > StringList
Vector of String.
Definition TypeAliases.h:39
Main OpenMS namespace.
Definition openswathalgo/include/OpenMS/OPENSWATHALGO/DATAACCESS/ISpectrumAccess.h:19
std::map< Internal::ToolDescriptionInternal, Internal::ToolDescriptionInternal > ToolMapping
Updates an INI.
Definition INIUpdater.h:26