1 #ifndef PHSOLVER_PHIO_H 2 #define PHSOLVER_PHIO_H 3 4 #include <FCMangle.h> 5 6 #ifdef __cplusplus 7 extern "C" { 8 #endif 9 typedef struct phio_file* phio_fp; 10 void phio_readheader( 11 phio_fp fileDescriptor, 12 const char keyphrase[], 13 void* valueArray, 14 int* nItems, 15 const char datatype[], 16 const char iotype[] ); 17 void phio_writeheader( 18 phio_fp fileDescriptor, 19 const char keyphrase[], 20 const void* valueArray, 21 const int* nItems, 22 const int* ndataItems, 23 const char datatype[], 24 const char iotype[] ); 25 void phio_readdatablock( 26 phio_fp fileDescriptor, 27 const char keyphrase[], 28 void* valueArray, 29 int* nItems, 30 const char datatype[], 31 const char iotype[] ); 32 void phio_writedatablock( 33 phio_fp fileDescriptor, 34 const char keyphrase[], 35 const void* valueArray, 36 const int* nItems, 37 const char datatype[], 38 const char iotype[]); 39 void phio_openfile_read( 40 const char filename[], 41 int* numFiles, 42 phio_fp* fileDescriptor); 43 void phio_openfile_write( 44 const char filename[], 45 int* numFiles, 46 int* numFields, 47 int* numPPF, 48 phio_fp* fileDescriptor); 49 void phio_closefile_read(phio_fp fileDescriptor); 50 void phio_closefile_write(phio_fp fileDescriptor); 51 void phio_appendStep(char* dest, int v); 52 #ifdef __cplusplus 53 } 54 #endif 55 56 #endif 57 58