summaryrefslogtreecommitdiffstats
path: root/tksao/fitsy++/var.h
blob: 8d2caffe85ff9969834ed3441b7bb3e0b7b34504 (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
// Copyright (C) 1999-2018
// Smithsonian Astrophysical Observatory, Cambridge, MA, USA
// For conditions of distribution and use, see copyright notice in "copyright"

#ifndef __fitsvar_h__
#define __fitsvar_h__

#include "map.h"

class FitsVar : public virtual FitsMap {
  Tcl_Obj* obj;

public:
  FitsVar(Tcl_Interp*, const char*, const char*);
  virtual ~FitsVar();
};

class FitsFitsVar : public FitsVar, public FitsFitsMap {
public:
  FitsFitsVar(Tcl_Interp* interp, const char* var, const char* fn, 
	      ScanMode mode) 
    : FitsVar(interp, var, fn), FitsFitsMap(mode) {}
};

class FitsFitsNextVar : public FitsFitsNextMap {
public:
  FitsFitsNextVar(FitsFile* prev) : FitsFitsNextMap(prev) {}
};

class FitsArrVar : public FitsVar, public FitsArrMap {
public:
  FitsArrVar(Tcl_Interp* interp, const char* var, const char* fn) 
    : FitsVar(interp, var, fn), FitsArrMap() {}
};

class FitsNRRDVar : public FitsVar, public FitsNRRDMap {
public:
  FitsNRRDVar(Tcl_Interp* interp, const char* var, const char* fn) 
    : FitsVar(interp, var, fn), FitsNRRDMap() {}
};

class FitsMosaicVar : public FitsVar, public FitsMosaicMap {
public:
  FitsMosaicVar(Tcl_Interp* interp, const char* var, const char* fn) 
    : FitsVar(interp, var, fn), FitsMosaicMap() {}
};

class FitsMosaicNextVar : public FitsMosaicNextMap {
public:
  FitsMosaicNextVar(FitsFile* prev) : FitsMosaicNextMap(prev) {}
};

#endif