summaryrefslogtreecommitdiffstats
path: root/tksao/fitsy++/nrrd.h
diff options
context:
space:
mode:
authorWilliam Joye <wjoye@cfa.harvard.edu>2016-10-27 18:59:29 (GMT)
committerWilliam Joye <wjoye@cfa.harvard.edu>2016-10-27 18:59:29 (GMT)
commitd4d595fa7fb12903db9227d33d48b2b00120dbd1 (patch)
tree7d18365de0d6d1b29399b6a17c7eb01c2eb3ed49 /tksao/fitsy++/nrrd.h
parent949f96e29bfe0bd8710d775ce220e597064e2589 (diff)
downloadblt-d4d595fa7fb12903db9227d33d48b2b00120dbd1.zip
blt-d4d595fa7fb12903db9227d33d48b2b00120dbd1.tar.gz
blt-d4d595fa7fb12903db9227d33d48b2b00120dbd1.tar.bz2
Initial commit
Diffstat (limited to 'tksao/fitsy++/nrrd.h')
-rw-r--r--tksao/fitsy++/nrrd.h36
1 files changed, 36 insertions, 0 deletions
diff --git a/tksao/fitsy++/nrrd.h b/tksao/fitsy++/nrrd.h
new file mode 100644
index 0000000..138aea3
--- /dev/null
+++ b/tksao/fitsy++/nrrd.h
@@ -0,0 +1,36 @@
+// Copyright (C) 1999-2016
+// Smithsonian Astrophysical Observatory, Cambridge, MA, USA
+// For conditions of distribution and use, see copyright notice in "copyright"
+
+#ifndef __fitsnrrd_h__
+#define __fitsnrrd_h__
+
+#include "file.h"
+
+class FitsNRRD : public FitsFile {
+ protected:
+ size_t size_;
+
+ protected:
+ int initHeader(FitsFile*);
+
+ public:
+ FitsNRRD(FitsFile*);
+ virtual ~FitsNRRD();
+};
+
+template<class T>
+class FitsNRRDm : public FitsNRRD {
+ private:
+ void swapBytes(FitsFile::ArchType);
+
+ protected:
+ void uncompress(FitsFile* fits);
+ virtual int compressed(T*, char*, size_t) =0;
+
+ public:
+ FitsNRRDm(FitsFile*);
+};
+
+#endif
+