aboutsummaryrefslogtreecommitdiff
path: root/src/Writer.h
blob: 99500df4e14168174bbcbef72b29a159909adb74 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
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