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_readdatablock( 21 int* fileDescriptor, 22 const char keyphrase[], 23 void* valueArray, 24 int* nItems, 25 const char datatype[], 26 const char iotype[] ); 27 void stream_closefile( 28 phio_fp fileDescriptor); 29 void stream_constructname( 30 const char* in, 31 char* out); 32 #endif 33