00001
00002
00003 #ifndef TessToolReader_h
00004 #define TessToolReader_h
00005
00006 #include <string>
00007 #include <cc++/thread.h>
00008 #include <mpi.h>
00009 #include <sstream>
00010 #include "RecordStream_Ascii.h"
00011 #include "TessToolDataStream.h"
00012
00013 #include <RecordType.h>
00014
00015 #ifdef CCXX_NAMESPACES
00016 using namespace std;
00017 using namespace ost;
00018 #endif
00019
00020 namespace BIE {
00021
00022
00024 class TessToolReader: public TessToolDataStream {
00025 public:
00026
00027
00028 TessToolReader();
00029
00030
00031 ~TessToolReader();
00032
00033 void run();
00034 void SampleNext();
00035 void finish();
00036 void Detach();
00037
00038 int readBuffer(unsigned char* val, int size);
00039 void setFile(char* name);
00040
00041 private:
00042
00043 void Synchronize();
00044 void GetData();
00045 char* _name;
00046 ifstream _in;
00047 int _dtsize;
00048 };
00049 }
00050 #endif