xref: /phasta/phSolver/common/phio_stream.h (revision 7acde132a6def0fe2daaec0d1a712dff0e5c6636)
1 #ifndef PHSOLVER_PHIO_STREAM_H
2 #define PHSOLVER_PHIO_STREAM_H
3 #include "phio_base.h"
4 #include "phstream.h"
5 struct streamio_file : phio_file {
6   RStream* rs;
7   GRStream* grs;
8 };
9 typedef struct streamio_file* stream_fp;
10 void stream_openfile(
11     const char filename[],
12     phio_fp fileDescriptor);
13 void stream_readheader(
14     int* fileDescriptor,
15     const  char keyphrase[],
16     void* valueArray,
17     int*  nItems,
18     const char  datatype[],
19     const char  iotype[] );
20 void stream_writeheader(
21     const int* fileDescriptor,
22     const char keyphrase[],
23     const void* valueArray,
24     const int* nItems,
25     const int* ndataItems,
26     const char datatype[],
27     const char iotype[] );
28 void stream_readdatablock(
29     int* fileDescriptor,
30     const  char keyphrase[],
31     void* valueArray,
32     int*  nItems,
33     const char  datatype[],
34     const char  iotype[] );
35 void stream_writedatablock(
36     const int* fileDescriptor,
37     const char keyphrase[],
38     const void* valueArray,
39     const int* nItems,
40     const char datatype[],
41     const char iotype[]);
42 void stream_closefile(
43     phio_fp fileDescriptor);
44 void stream_constructname(
45     const char* in,
46     char* out);
47 #endif
48