OpenMS
INIUpdater.h
Go to the documentation of this file.
1 // Copyright (c) 2002-present, The OpenMS Team -- 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 
17 namespace OpenMS
18 {
24  typedef std::map<Internal::ToolDescriptionInternal, Internal::ToolDescriptionInternal> ToolMapping;
25 
26  class OPENMS_DLLAPI INIUpdater
27  {
28 public:
29 
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 String & old_name, const String & tools_type, String & new_name);
46 
47 private:
48  static ToolMapping map_;
49 
50  };
51 
52 } // namespace OpenMS
53 
Definition: INIUpdater.h:27
bool getNewToolName(const String &old_name, const String &tools_type, String &new_name)
const ToolMapping & getNameMapping()
StringList getToolNamesFromINI(const Param &ini) const
static ToolMapping map_
Definition: INIUpdater.h:48
Management and storage of parameters / INI files.
Definition: Param.h:44
A more convenient string class.
Definition: String.h:34
std::vector< String > StringList
Vector of String.
Definition: ListUtils.h:44
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