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 __fitssocket_h__
#define __fitssocket_h__
#include "strm.h"
class FitsSocket : public virtual FitsStream<int> {
public:
FitsSocket(int, const char*);
};
class FitsFitsSocket : public FitsSocket, public FitsFitsStream<int> {
public:
FitsFitsSocket(int s, const char* ext, ScanMode mode, FlushMode flush)
: FitsSocket(s, ext), FitsFitsStream<int>(mode, flush) {}
};
class FitsFitsNextSocket : public FitsFitsNextStream<int> {
public:
FitsFitsNextSocket(FitsFile* prev) : FitsFitsNextStream<int>(prev) {}
};
class FitsArrSocket : public FitsSocket, public FitsArrStream<int> {
public:
FitsArrSocket(int s, const char* ext, FlushMode flush)
: FitsSocket(s, ext), FitsArrStream<int>(flush) {}
};
class FitsNRRDSocket : public FitsSocket, public FitsNRRDStream<int> {
public:
FitsNRRDSocket(int s, const char* ext, FlushMode flush)
: FitsSocket(s, ext), FitsNRRDStream<int>(flush) {}
};
class FitsMosaicSocket : public FitsSocket, public FitsMosaicStream<int> {
public:
FitsMosaicSocket(int s, FlushMode flush)
: FitsSocket(s, ""), FitsMosaicStream<int>(flush) {}
};
class FitsMosaicNextSocket : public FitsMosaicNextStream<int> {
public:
FitsMosaicNextSocket(FitsFile* prev, FlushMode flush)
: FitsMosaicNextStream<int>(prev, flush) {}
};
#endif
|