00001 // This is really -*- C++ -*- 00002 00003 #ifndef RecordInputStream_MPI_H 00004 #define RecordInputStream_MPI_H 00005 00006 #include "RecordType.h" 00007 #include "RecordInputStream.h" 00008 #include "TessToolDataStream.h" 00009 00010 namespace BIE { 00011 00013 class RecordInputStream_MPI : public RecordInputStream 00014 { 00015 00016 public: 00018 RecordInputStream_MPI(RecordType *rt, TessToolDataStream *ttrcvr); 00019 00021 ~RecordInputStream_MPI(); 00022 00024 bool nextRecord(); 00025 00027 bool eos(); 00028 00030 bool error(); 00031 00033 int getTileId(); 00034 00036 int getNumRecords(); 00037 00039 double getScalar(); 00040 00041 private: 00042 int readInt(); 00043 double readReal(); 00044 bool readBool(); 00045 const char* readString(); 00046 00048 bool rismpi_eof; 00049 00051 bool rismpi_error; 00052 bool rismpi_streamismine; 00053 00054 TessToolDataStream *_ttrcvr; 00055 }; 00056 } 00057 #endif