diff options
author | William Joye <wjoye@cfa.harvard.edu> | 2020-03-21 20:29:02 (GMT) |
---|---|---|
committer | William Joye <wjoye@cfa.harvard.edu> | 2020-03-21 20:29:02 (GMT) |
commit | a004d413772c16e43004929efb3df2f36c53314c (patch) | |
tree | f635a49cb52ebff944062e7dd6d8833c14a0b40b /fitsy++/allocgz.h | |
parent | c8abfb35e0303f03f75d9fe74dac893b1767924c (diff) | |
download | blt-a004d413772c16e43004929efb3df2f36c53314c.zip blt-a004d413772c16e43004929efb3df2f36c53314c.tar.gz blt-a004d413772c16e43004929efb3df2f36c53314c.tar.bz2 |
libfitsy++
Diffstat (limited to 'fitsy++/allocgz.h')
-rw-r--r-- | fitsy++/allocgz.h | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/fitsy++/allocgz.h b/fitsy++/allocgz.h new file mode 100644 index 0000000..c0a08e4 --- /dev/null +++ b/fitsy++/allocgz.h @@ -0,0 +1,46 @@ +// Copyright (C) 1999-2018 +// Smithsonian Astrophysical Observatory, Cambridge, MA, USA +// For conditions of distribution and use, see copyright notice in "copyright" + +#ifndef __fitsallocgz_h__ +#define __fitsallocgz_h__ + +#include "strm.h" +#include "zlib.h" + +class FitsAllocGZ : public virtual FitsStream<gzFile> { +public: + FitsAllocGZ(const char*); + virtual ~FitsAllocGZ() {} +}; + +class FitsFitsAllocGZ : public FitsAllocGZ, public FitsFitsStream<gzFile> { +public: + FitsFitsAllocGZ(const char* fn, ScanMode mode, FlushMode flush) + : FitsAllocGZ(fn), FitsFitsStream<gzFile>(mode, flush) {} +}; + +class FitsFitsNextAllocGZ : public FitsFitsNextStream<gzFile> { +public: + FitsFitsNextAllocGZ(FitsFile* prev) : FitsFitsNextStream<gzFile>(prev) {} +}; + +class FitsArrAllocGZ : public FitsAllocGZ, FitsArrStream<gzFile> { +public: + FitsArrAllocGZ(const char* fn, FlushMode flush) + : FitsAllocGZ(fn), FitsArrStream<gzFile>(flush) {} +}; + +class FitsMosaicAllocGZ : public FitsAllocGZ, FitsMosaicStream<gzFile> { +public: + FitsMosaicAllocGZ(const char* fn, FlushMode flush) + : FitsAllocGZ(fn), FitsMosaicStream<gzFile>(flush) {} +}; + +class FitsMosaicNextAllocGZ : public FitsMosaicNextStream<gzFile> { +public: + FitsMosaicNextAllocGZ(FitsFile* prev, FlushMode flush) + : FitsMosaicNextStream<gzFile>(prev, flush) {} +}; + +#endif |