summaryrefslogtreecommitdiffstats
path: root/fitsy/allocgz.h
blob: c0a08e42b55e984eac8cf3c48ccb48bb95ea6979 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
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