OpenMS
TransformationXMLFile.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: Timo Sachsenberg $
6 // $Authors: $
7 // --------------------------------------------------------------------------
8 
9 #pragma once
10 
13 #include <OpenMS/FORMAT/XMLFile.h>
14 
15 #include <vector>
16 
17 namespace OpenMS
18 {
19 
30  class OPENMS_DLLAPI TransformationXMLFile :
31  protected Internal::XMLHandler,
32  public Internal::XMLFile
33  {
34 public:
35 
38 
48  void load(const String& filename, TransformationDescription& transformation, bool fit_model=true);
49 
58  void store(const String& filename, const TransformationDescription& transformation);
59 
60 protected:
61  // Docu in base class
62  void startElement(const XMLCh* const /*uri*/, const XMLCh* const /*local_name*/, const XMLCh* const qname, const xercesc::Attributes& attributes) override;
63 
65 
66  Param params_;
73 
74  };
75 
76 } // namespace OpenMS
77 
Base class for loading/storing XML files that have a handler derived from XMLHandler.
Definition: XMLFile.h:23
Base class for XML handlers.
Definition: XMLHandler.h:302
Management and storage of parameters / INI files.
Definition: Param.h:44
A more convenient string class.
Definition: String.h:34
Generic description of a coordinate transformation.
Definition: TransformationDescription.h:37
TransformationModel::DataPoints DataPoints
Vector of coordinate pairs.
Definition: TransformationDescription.h:71
Used to load and store TransformationXML files.
Definition: TransformationXMLFile.h:33
void store(const String &filename, const TransformationDescription &transformation)
Stores the data in an TransformationXML file.
TransformationXMLFile()
Constructor.
String model_type_
Model type.
Definition: TransformationXMLFile.h:71
void load(const String &filename, TransformationDescription &transformation, bool fit_model=true)
Loads the transformation from an TransformationXML file.
void startElement(const XMLCh *const, const XMLCh *const, const XMLCh *const qname, const xercesc::Attributes &attributes) override
TransformationDescription::DataPoints data_
Data vector.
Definition: TransformationXMLFile.h:69
Main OpenMS namespace.
Definition: openswathalgo/include/OpenMS/OPENSWATHALGO/DATAACCESS/ISpectrumAccess.h:19