OpenMS
ToolDescriptionFile.h
Go to the documentation of this file.
1 // Copyright (c) 2002-2023, 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 
11 #include <OpenMS/FORMAT/XMLFile.h>
16 
17 namespace OpenMS
18 {
26  class OPENMS_DLLAPI ToolDescriptionFile :
27  public Internal::XMLFile,
28  public ProgressLogger
29  {
30 public:
35 
42  void load(const String & filename, std::vector<Internal::ToolDescription> & tds);
43 
49  void store(const String & filename, const std::vector<Internal::ToolDescription> & tds) const;
50 
51 private:
52 
53  };
54 
55 } // namespace OpenMS
56 
Base class for loading/storing XML files that have a handler derived from XMLHandler.
Definition: XMLFile.h:23
Base class for all classes that want to report their progress.
Definition: ProgressLogger.h:27
A more convenient string class.
Definition: String.h:34
File adapter for ToolDescriptor files.
Definition: ToolDescriptionFile.h:29
ToolDescriptionFile()
Default constructor.
void store(const String &filename, const std::vector< Internal::ToolDescription > &tds) const
Stores a map in a ToolDescriptor file.
~ToolDescriptionFile() override
Destructor.
void load(const String &filename, std::vector< Internal::ToolDescription > &tds)
Loads a map from a ToolDescriptor file.
Main OpenMS namespace.
Definition: FeatureDeconvolution.h:22