diff options
author | William Joye <wjoye@cfa.harvard.edu> | 2020-03-19 14:52:02 (GMT) |
---|---|---|
committer | William Joye <wjoye@cfa.harvard.edu> | 2020-03-19 14:52:02 (GMT) |
commit | d464af4522b4ecc906eb726a55fb01dc2db44930 (patch) | |
tree | fe8613cbd93424e933229e7ad7cc7d5ceae11fd8 /fitsy/map.h | |
parent | 36b673794f503c76e7dca7360bea4cd1ebf1e660 (diff) | |
download | blt-d464af4522b4ecc906eb726a55fb01dc2db44930.zip blt-d464af4522b4ecc906eb726a55fb01dc2db44930.tar.gz blt-d464af4522b4ecc906eb726a55fb01dc2db44930.tar.bz2 |
libfitsy
Diffstat (limited to 'fitsy/map.h')
-rw-r--r-- | fitsy/map.h | 69 |
1 files changed, 69 insertions, 0 deletions
diff --git a/fitsy/map.h b/fitsy/map.h new file mode 100644 index 0000000..6adae65 --- /dev/null +++ b/fitsy/map.h @@ -0,0 +1,69 @@ +// Copyright (C) 1999-2018 +// Smithsonian Astrophysical Observatory, Cambridge, MA, USA +// For conditions of distribution and use, see copyright notice in "copyright" + +#ifndef __fitsmap_h__ +#define __fitsmap_h__ + +#include "file.h" + +class FitsMap : public FitsFile { +protected: + char* mapdata_; + size_t mapsize_; + +public: + FitsMap(); + virtual ~FitsMap() {} + + char* mapdata() {return mapdata_;} + size_t mapsize() {return mapsize_;} + void found(char*); + void error(); + char* enddata(); + size_t endsize(); +}; + +class FitsFitsMap : public virtual FitsMap { +protected: + void processExact(); + void processRelax(); + +public: + FitsFitsMap(ScanMode); +}; + +class FitsFitsNextMap : public FitsMap { +public: + FitsFitsNextMap(FitsFile* prev); +}; + +class FitsArrMap : public virtual FitsMap { +public: + FitsArrMap(); +}; + +class FitsNRRDMap : public virtual FitsMap { +public: + FitsNRRDMap(); +}; + +class FitsMosaicMap : public virtual FitsMap { +public: + FitsMosaicMap(); +}; + +class FitsMosaicNextMap : public FitsMap { +public: + FitsMosaicNextMap(FitsFile* prev); +}; + +#endif + + + + + + + + |