summaryrefslogtreecommitdiffstats
path: root/fitsy/outfile.h
diff options
context:
space:
mode:
Diffstat (limited to 'fitsy/outfile.h')
-rw-r--r--fitsy/outfile.h33
1 files changed, 33 insertions, 0 deletions
diff --git a/fitsy/outfile.h b/fitsy/outfile.h
new file mode 100644
index 0000000..d8d0051
--- /dev/null
+++ b/fitsy/outfile.h
@@ -0,0 +1,33 @@
+// Copyright (C) 1999-2018
+// Smithsonian Astrophysical Observatory, Cambridge, MA, USA
+// For conditions of distribution and use, see copyright notice in "copyright"
+
+#ifndef __outfile_h__
+#define __outfile_h__
+
+#include "outfits.h"
+#include "zlib.h"
+
+class OutFitsFile : public virtual OutFitsStream {
+ private:
+ FILE* fd_;
+
+ public:
+ OutFitsFile(const char*);
+ ~OutFitsFile();
+
+ int write(char*, size_t);
+};
+
+class OutFitsFileGZ : public virtual OutFitsStream {
+ private:
+ gzFile fd_;
+
+ public:
+ OutFitsFileGZ(const char*);
+ ~OutFitsFileGZ();
+
+ int write(char*, size_t);
+};
+
+#endif