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
47
48
49
50
51
|
// Copyright (C) 1999-2017
// Smithsonian Astrophysical Observatory, Cambridge, MA, USA
// For conditions of distribution and use, see copyright notice in "copyright"
#ifndef __fitsalloc_h__
#define __fitsalloc_h__
#include "strm.h"
class FitsAlloc : public virtual FitsStream<FILE*> {
public:
FitsAlloc(const char*);
virtual ~FitsAlloc() {}
};
class FitsFitsAlloc : public FitsAlloc, public FitsFitsStream<FILE*> {
public:
FitsFitsAlloc(const char* fn, ScanMode mode, FlushMode flush)
: FitsAlloc(fn), FitsFitsStream<FILE*>(mode, flush) {}
};
class FitsFitsNextAlloc : public FitsFitsNextStream<FILE*> {
public:
FitsFitsNextAlloc(FitsFile* prev) : FitsFitsNextStream<FILE*>(prev) {}
};
class FitsArrAlloc : public FitsAlloc, FitsArrStream<FILE*> {
public:
FitsArrAlloc(const char* fn, FlushMode flush)
: FitsAlloc(fn), FitsArrStream<FILE*>(flush) {}
};
class FitsNRRDAlloc : public FitsAlloc, FitsNRRDStream<FILE*> {
public:
FitsNRRDAlloc(const char* fn, FlushMode flush)
: FitsAlloc(fn), FitsNRRDStream<FILE*>(flush) {}
};
class FitsMosaicAlloc : public FitsAlloc, FitsMosaicStream<FILE*> {
public:
FitsMosaicAlloc(const char* fn, FlushMode flush) :
FitsAlloc(fn), FitsMosaicStream<FILE*>(flush) {}
};
class FitsMosaicNextAlloc : public FitsMosaicNextStream<FILE*> {
public:
FitsMosaicNextAlloc(FitsFile* prev, FlushMode flush)
: FitsMosaicNextStream<FILE*>(prev, flush) {}
};
#endif
|