OpenMS
Loading...
Searching...
No Matches
CompressedInputSource.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: Timo Sachsenberg $
6// $Authors: David Wojnar $
7// --------------------------------------------------------------------------
8
9#pragma once
10
12#include <string>
13
14namespace OpenMS
15{
17 class OPENMS_DLLAPI CompressedInputSource
18 {
19 public:
21 CompressedInputSource(const std::string& file_path, const std::string& header);
24
28 private:
29 std::string file_path_;
30 std::string head_;
31 };
32}
Internal source selecting bzip2, ZIP or gzip decompression by file magic.
Definition CompressedInputSource.h:18
std::string file_path_
Definition CompressedInputSource.h:29
CompressedInputSource(const CompressedInputSource &)=delete
InputStream * makeStream() const
Create a stream owned by the caller. BZ selects bzip2, PK ZIP, otherwise gzip.
CompressedInputSource(const std::string &file_path, const std::string &header)
Relative UTF-8 paths are resolved against the current working directory.
CompressedInputSource & operator=(const CompressedInputSource &)=delete
std::string head_
Definition CompressedInputSource.h:30
Internal byte stream shared by the XML compression adapters.
Definition InputStream.h:16
Main OpenMS namespace.
Definition openswathalgo/include/OpenMS/OPENSWATHALGO/DATAACCESS/ISpectrumAccess.h:19