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
14
15#include <map>
16
17namespace OpenMS
18{
24 typedef std::map<Internal::ToolDescriptionInternal, Internal::ToolDescriptionInternal> ToolMapping;
25
27 {
28public:
29
30 INIUpdater();
31
32
33 StringList getToolNamesFromINI(const Param & ini) const;
34
36
37 /*
38 Finds the name of the new tool.
39 The tools_type is optional and should be "" if there is none.
40
41 The tools_type is ignored if there is a mapping without a type.
42
43 @return true on success
44 */
45 bool getNewToolName(const std::string & old_name, const std::string & tools_type, std::string & new_name);
46
47private:
49
50 };
51
52} // namespace OpenMS
53
Definition INIUpdater.h:27
const ToolMapping & getNameMapping()
Definition source/INIUpdater.cpp:41
INIUpdater()
Definition source/INIUpdater.cpp:21
StringList getToolNamesFromINI(const Param &ini) const
Definition source/INIUpdater.cpp:26
static ToolMapping map_
Definition INIUpdater.h:48
bool getNewToolName(const std::string &old_name, const std::string &tools_type, std::string &new_name)
Definition source/INIUpdater.cpp:69
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:24