OpenMS
HDF5Connector.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: Hannes Roest $
6 // $Authors: Hannes Roest $
7 // --------------------------------------------------------------------------
8 
9 #pragma once
10 
14 
15 // forward declarations
16 namespace H5
17 {
18  struct H5File;
19 }
20 
21 namespace OpenMS
22 {
30  class OPENMS_DLLAPI HDF5Connector
31  {
32 public:
33 
35  HDF5Connector(const String& filename, bool createNewFile = false);
36 
39 
40  void close();
41 
42 protected:
43 
44  H5::H5File* file_ = nullptr;
45 
46  };
47 
48 
49 } // namespace OpenMS
50 
File adapter for HDF5 files.
Definition: HDF5Connector.h:31
~HDF5Connector()
Destructor.
HDF5Connector(const String &filename, bool createNewFile=false)
Constructor.
A more convenient string class.
Definition: String.h:34
Definition: HDF5Connector.h:17
Main OpenMS namespace.
Definition: openswathalgo/include/OpenMS/OPENSWATHALGO/DATAACCESS/ISpectrumAccess.h:19