OpenMS
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 
15 namespace OpenMS
16 {
20  class OPENMS_DLLAPI CompressedInputSource :
21  public xercesc::InputSource
22  {
23 public:
25  CompressedInputSource(const String & file_path, const String & header, xercesc::MemoryManager * const manager = xercesc::XMLPlatformUtils::fgMemoryManager);
27  CompressedInputSource(const XMLCh * const file_path, const String & header, xercesc::MemoryManager * const manager = xercesc::XMLPlatformUtils::fgMemoryManager);
30 
35  xercesc::BinInputStream * makeStream() const override;
36 
37 private:
43  };
44 
45 } // namespace OpenMS
46 
This class is based on xercesc::LocalFileInputSource.
Definition: CompressedInputSource.h:22
~CompressedInputSource() override
Constructor.
CompressedInputSource & operator=(const CompressedInputSource &source)
String head_
Definition: CompressedInputSource.h:38
CompressedInputSource(const XMLCh *const file_path, const String &header, xercesc::MemoryManager *const manager=xercesc::XMLPlatformUtils::fgMemoryManager)
Constructor.
CompressedInputSource()
private CTor - not implemented
xercesc::BinInputStream * makeStream() const override
Depending on the header in the Constructor a Bzip2InputStream or a GzipInputStream object is returned...
CompressedInputSource(const CompressedInputSource &source)
CompressedInputSource(const String &file_path, const String &header, xercesc::MemoryManager *const manager=xercesc::XMLPlatformUtils::fgMemoryManager)
Constructor.
A more convenient string class.
Definition: String.h:34
Main OpenMS namespace.
Definition: openswathalgo/include/OpenMS/OPENSWATHALGO/DATAACCESS/ISpectrumAccess.h:19