OpenMS
FeatureXMLFile.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: Marc Sturm, Chris Bielow, Clemens Groepl $
7 // --------------------------------------------------------------------------
8 
9 #pragma once
10 
12 #include <OpenMS/FORMAT/XMLFile.h>
14 
15 #include <iosfwd>
16 
17 namespace OpenMS
18 {
19  class Feature;
20  class FeatureMap;
21 
33  class OPENMS_DLLAPI FeatureXMLFile :
34  public Internal::XMLFile,
35  public ProgressLogger
36  {
37 
38 public:
39 
45  ~FeatureXMLFile() override;
47 
54  void load(const String& filename, FeatureMap& feature_map);
55 
56  Size loadSize(const String& filename);
57 
63  void store(const String& filename, const FeatureMap& feature_map);
64 
67 
70 
73 
74 protected:
75 
78 
79  };
80 
81 } // namespace OpenMS
82 
Options for loading files containing features.
Definition: FeatureFileOptions.h:21
A container for features.
Definition: FeatureMap.h:80
This class provides Input/Output functionality for feature maps.
Definition: FeatureXMLFile.h:36
FeatureXMLFile()
Default constructor.
const FeatureFileOptions & getOptions() const
Non-mutable access to the options for loading/storing.
void load(const String &filename, FeatureMap &feature_map)
loads the file with name filename into map and calls updateRanges().
void store(const String &filename, const FeatureMap &feature_map)
stores the map feature_map in file with name filename.
~FeatureXMLFile() override
Destructor.
FeatureFileOptions options_
Options that can be set.
Definition: FeatureXMLFile.h:77
Size loadSize(const String &filename)
FeatureFileOptions & getOptions()
Mutable access to the options for loading/storing.
void setOptions(const FeatureFileOptions &)
setter for options for loading/storing
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
size_t Size
Size type e.g. used as variable which can hold result of size()
Definition: Types.h:97
Main OpenMS namespace.
Definition: openswathalgo/include/OpenMS/OPENSWATHALGO/DATAACCESS/ISpectrumAccess.h:19