OpenMS
Loading...
Searching...
No Matches
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
14
15#include <iosfwd>
16
17namespace OpenMS
18{
19 class Feature;
20 class FeatureMap;
21
33 class OPENMS_DLLAPI FeatureXMLFile :
34 public Internal::XMLFile,
35 public ProgressLogger
36 {
37
38public:
39
45 ~FeatureXMLFile() override;
47
54 void load(const std::string& filename, FeatureMap& feature_map);
55
56 Size loadSize(const std::string& filename);
57
63 void store(const std::string& filename, const FeatureMap& feature_map);
64
67
70
73
74protected:
75
78
79 };
80
81} // namespace OpenMS
82
Options for loading files containing features.
Definition FeatureFileOptions.h:35
A container for features.
Definition FeatureMap.h:78
This class provides Input/Output functionality for feature maps.
Definition FeatureXMLFile.h:36
FeatureXMLFile()
Default constructor.
void load(const std::string &filename, FeatureMap &feature_map)
loads the file with name filename into map and calls updateRanges().
~FeatureXMLFile() override
Destructor.
Size loadSize(const std::string &filename)
void store(const std::string &filename, const FeatureMap &feature_map)
stores the map feature_map in file with name filename.
FeatureFileOptions options_
Options that can be set.
Definition FeatureXMLFile.h:77
void setOptions(const FeatureFileOptions &)
setter for options for loading/storing
const FeatureFileOptions & getOptions() const
Non-mutable access to the options for loading/storing.
FeatureFileOptions & getOptions()
Mutable access to the options for loading/storing.
Base class for loading and storing XML files via Xerces, with optional schema validation and transpar...
Definition XMLFile.h:38
Base class for all classes that want to report their progress.
Definition ProgressLogger.h:27
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