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

#ifndef __fitsmmap_h__
#define __fitsmmap_h__

#include "map.h"

class FitsMMap : public virtual FitsMap {
public:
  FitsMMap(const char*);
  virtual ~FitsMMap();
};

class FitsFitsMMap : public FitsMMap, public FitsFitsMap {
public:
  FitsFitsMMap(const char* fn, ScanMode mode) 
    : FitsMMap(fn), FitsFitsMap(mode) {}
};

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

class FitsArrMMap : public FitsMMap, public FitsArrMap {
public:
  FitsArrMMap(const char* fn) : FitsMMap(fn), FitsArrMap() {}
};

class FitsNRRDMMap : public FitsMMap, public FitsNRRDMap {
public:
  FitsNRRDMMap(const char* fn) : FitsMMap(fn), FitsNRRDMap() {}
};

class FitsMosaicMMap : public FitsMMap, public FitsMosaicMap {
public:
  FitsMosaicMMap(const char* fn) : FitsMMap(fn), FitsMosaicMap() {}
};

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

#endif