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