xref: /phasta/phSolver/common/phIO.h (revision a5c8caf212f7fc43de65b1ab86a6f33aff31f966)
1 #ifndef PHSOLVER_PHIO_H
2 #define PHSOLVER_PHIO_H
3 
4 #ifdef __cplusplus
5 extern "C" {
6 #endif
7   typedef struct phio_file* phio_fp;
8   void phio_openfile(
9       const char filename[],
10       phio_fp fileDescriptor);
11   void phio_closefile(phio_fp fileDescriptor);
12   void phio_readheader(
13       phio_fp fileDescriptor,
14       const  char keyphrase[],
15       void* valueArray,
16       int*  nItems,
17       const char  datatype[],
18       const char  iotype[] );
19   void phio_writeheader(
20       phio_fp fileDescriptor,
21       const char keyphrase[],
22       const void* valueArray,
23       const int* nItems,
24       const int* ndataItems,
25       const char datatype[],
26       const char iotype[] );
27   void phio_readdatablock(
28       phio_fp fileDescriptor,
29       const  char keyphrase[],
30       void* valueArray,
31       int*  nItems,
32       const char  datatype[],
33       const char  iotype[] );
34   void phio_writedatablock(
35       phio_fp fileDescriptor,
36       const char keyphrase[],
37       const void* valueArray,
38       const int* nItems,
39       const char datatype[],
40       const char iotype[]);
41   void phio_constructName(
42       phio_fp fileDescriptor,
43       const char* inName,
44       char* outName);
45 #ifdef __cplusplus
46 }
47 #endif
48 
49 #endif
50 
51