summaryrefslogtreecommitdiffstats
path: root/tksao/fitsy++/channel.h
blob: 5cd4bc24c6986129b2bfdb9a7d1322e8f7a849ef (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
47
48
49
50
51
52
53
54
55
// Copyright (C) 1999-2018
// Smithsonian Astrophysical Observatory, Cambridge, MA, USA
// For conditions of distribution and use, see copyright notice in "copyright"

#ifndef __fitschannel_h__
#define __fitschannel_h__

#include "strm.h"

class FitsChannel : public virtual FitsStream<Tcl_Channel> {
public:
  FitsChannel(Tcl_Interp*, const char*, const char*);
};

class FitsFitsChannel : public FitsChannel, public FitsFitsStream<Tcl_Channel>{
public:
  FitsFitsChannel(Tcl_Interp* interp, const char* ch, 
		  const char* ext, ScanMode mode, FlushMode flush)
    : FitsChannel(interp, ch, ext), FitsFitsStream<Tcl_Channel>(mode, flush) {}
};

class FitsFitsNextChannel : public FitsFitsNextStream<Tcl_Channel> {
public:
  FitsFitsNextChannel(FitsFile* prev) 
    : FitsFitsNextStream<Tcl_Channel>(prev) {}
};

class FitsArrChannel : public FitsChannel, FitsArrStream<Tcl_Channel> {
public:
  FitsArrChannel(Tcl_Interp* interp, const char* ch, const char* ext, 
		 FlushMode flush)
    : FitsChannel(interp, ch, ext), FitsArrStream<Tcl_Channel>(flush) {}
};

class FitsNRRDChannel : public FitsChannel, FitsNRRDStream<Tcl_Channel> {
public:
  FitsNRRDChannel(Tcl_Interp* interp, const char* ch, const char* ext, 
		 FlushMode flush)
    : FitsChannel(interp, ch, ext), FitsNRRDStream<Tcl_Channel>(flush) {}
};

class FitsMosaicChannel : public FitsChannel, FitsMosaicStream<Tcl_Channel> {
public:
  FitsMosaicChannel(Tcl_Interp* interp, const char* ch, FlushMode flush)
    : FitsChannel(interp, ch, ""), FitsMosaicStream<Tcl_Channel>(flush) {}
};

class FitsMosaicNextChannel : public FitsMosaicNextStream<Tcl_Channel> {
public:
  FitsMosaicNextChannel(FitsFile* prev, FlushMode flush) 
    : FitsMosaicNextStream<Tcl_Channel>(prev, flush) {}
};

#endif