aboutsummaryrefslogtreecommitdiff
path: root/src/Writer.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/Writer.h')
-rw-r--r--src/Writer.h23
1 files changed, 23 insertions, 0 deletions
diff --git a/src/Writer.h b/src/Writer.h
new file mode 100644
index 0000000..99500df
--- /dev/null
+++ b/src/Writer.h
@@ -0,0 +1,23 @@
+#ifndef __WRITER_H_
+#define __WRITER_H_
+
+#include "Arch.h"
+
+typedef IOFile WRFile;/* its the same, but it is a different object underneath */
+WRFile WRbeginFile PROTO((IOFile *descriptor));
+void WRendFile PROTO((WRFile afile));
+
+void WRsetRank PROTO((WRFile afile,int rank));
+void WRsetType PROTO((WRFile afile,int numbertype));
+void WRsetParams PROTO((WRFile afile,
+ int rank,int *dims,int type,
+ double *origin,double *delta));
+void WRsetDims PROTO((WRFile afile,int *dims));
+void WRsetRankDims PROTO((WRFile afile,int rank, int *dims));
+void WRsetOrigin PROTO((WRFile afile,double *origin));
+void WRsetDelta PROTO((WRFile afile,double *delta));
+void WRwrite PROTO((WRFile afile,void *data));
+void WRreserveChunk PROTO((WRFile afile));
+void WRwriteChunk PROTO((WRFile afile,int *dims,int *origin,void *data));
+#endif
+