1 #include "phIO.h" 2 #include "phComm.h" 3 #include <phastaIO.h> 4 #include <sstream> 5 #include <string> 6 7 void phio_readheader( int* fileDescriptor, 8 const char keyphrase[], 9 void* valueArray, 10 int* nItems, 11 const char datatype[], 12 const char iotype[] ) { 13 std::stringstream ss; 14 ss << keyphrase << "@" << phcomm_rank()+1 << "?"; 15 std::string s = ss.str(); 16 readheader(fileDescriptor, s.c_str(), 17 valueArray, nItems, datatype, iotype); 18 } 19 20