OpenMS
Loading...
Searching...
No Matches
ZipRandomAccessFile.h
Go to the documentation of this file.
1// SPDX-License-Identifier: BSD-3-Clause
2// --------------------------------------------------------------------------
3// $Maintainer: Justin Sing $
4// $Authors: Justin Sing $
5// --------------------------------------------------------------------------
6
7#pragma once
8
10#include <OpenMS/SYSTEM/File.h>
11#ifdef WITH_PARQUET
12#include <arrow/io/api.h>
13#endif
14
15namespace OpenMS
16{
17
18#ifdef WITH_PARQUET
31struct OPENMS_DLLAPI ZipRandomAccessFile
32{
33 static arrow::Result<std::shared_ptr<arrow::io::RandomAccessFile>> Open(const String& archive_path,
34 const String& entry_name,
35 std::unique_ptr<File::TempDir>& temp_dir);
36};
37#else
39{
40 static void Open(const String&, const String&, std::unique_ptr<File::TempDir>&) {}
41};
42#endif
43
44} // namespace OpenMS
A more convenient string class.
Definition String.h:34
Main OpenMS namespace.
Definition openswathalgo/include/OpenMS/OPENSWATHALGO/DATAACCESS/ISpectrumAccess.h:19
Definition ZipRandomAccessFile.h:39
static void Open(const String &, const String &, std::unique_ptr< File::TempDir > &)
Definition ZipRandomAccessFile.h:40