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
13#include <xercesc/sax/InputSource.hpp>
14
15namespace OpenMS
16{
32 class OPENMS_DLLAPI CompressedInputSource :
33 public xercesc::InputSource
34 {
35public:
51 CompressedInputSource(const std::string & file_path, const std::string & header, xercesc::MemoryManager * const manager = xercesc::XMLPlatformUtils::fgMemoryManager);
52
63 CompressedInputSource(const XMLCh * const file_path, const std::string & header, xercesc::MemoryManager * const manager = xercesc::XMLPlatformUtils::fgMemoryManager);
64
67
85 xercesc::BinInputStream * makeStream() const override;
86
87private:
88 std::string head_;
89
96 };
97
98} // namespace OpenMS
99
char16_t XMLCh
Definition ClassTest.h:30
Xerces InputSource that opens a bzip2-, zip- or gzip-compressed file on demand.
Definition CompressedInputSource.h:34
xercesc::BinInputStream * makeStream() const override
Create the decompression input stream for this source.
~CompressedInputSource() override
Destructor.
CompressedInputSource(const std::string &file_path, const std::string &header, xercesc::MemoryManager *const manager=xercesc::XMLPlatformUtils::fgMemoryManager)
Construct from a UTF-8 String path.
CompressedInputSource()
Default construction is deliberately suppressed (declared but not defined).
CompressedInputSource(const XMLCh *const file_path, const std::string &header, xercesc::MemoryManager *const manager=xercesc::XMLPlatformUtils::fgMemoryManager)
Construct from a wide-character (XMLCh) path.
CompressedInputSource & operator=(const CompressedInputSource &source)
Assignment is deliberately suppressed (declared but not defined).
CompressedInputSource(const CompressedInputSource &source)
Copy construction is deliberately suppressed (declared but not defined).
std::string head_
Header bytes captured at construction; makeStream uses the first two characters to pick a decompresso...
Definition CompressedInputSource.h:88
Main OpenMS namespace.
Definition openswathalgo/include/OpenMS/OPENSWATHALGO/DATAACCESS/ISpectrumAccess.h:19