147926302SCameron Smith #ifndef PHSOLVER_PHIO_STREAM_H 247926302SCameron Smith #define PHSOLVER_PHIO_STREAM_H 347926302SCameron Smith #include "phio_base.h" 447926302SCameron Smith #include "phstream.h" 547926302SCameron Smith struct streamio_file : phio_file { 6ecf8d2a9SCameron Smith RStream* rs; 7ecf8d2a9SCameron Smith GRStream* grs; 847926302SCameron Smith }; 947926302SCameron Smith typedef struct streamio_file* stream_fp; 10ecf8d2a9SCameron Smith void stream_openfile( 1147926302SCameron Smith const char filename[], 1247926302SCameron Smith phio_fp fileDescriptor); 13*a486e66cSCameron Smith void stream_readheader( 14*a486e66cSCameron Smith int* fileDescriptor, 15*a486e66cSCameron Smith const char keyphrase[], 16*a486e66cSCameron Smith void* valueArray, 17*a486e66cSCameron Smith int* nItems, 18*a486e66cSCameron Smith const char datatype[], 19*a486e66cSCameron Smith const char iotype[] ); 20*a486e66cSCameron Smith void stream_readdatablock( 21*a486e66cSCameron Smith int* fileDescriptor, 22*a486e66cSCameron Smith const char keyphrase[], 23*a486e66cSCameron Smith void* valueArray, 24*a486e66cSCameron Smith int* nItems, 25*a486e66cSCameron Smith const char datatype[], 26*a486e66cSCameron Smith const char iotype[] ); 2747926302SCameron Smith void stream_closefile( 2847926302SCameron Smith phio_fp fileDescriptor); 2947926302SCameron Smith void stream_constructname( 3047926302SCameron Smith const char* in, 3147926302SCameron Smith char* out); 3247926302SCameron Smith #endif 33