/* * ScanFile.hh * * Created on: Nov 26, 2014 * Author: Hovanes Egiyan * A class to read MDA files from Hall D scan procedures using * sscan record with saveData program. */ #ifndef SCANFILE_H_ #define SCANFILE_H_ #include /* printf */ #include /* system, NULL, EXIT_FAILURE */ #include #include #include #include #include #include #include #include #include "popen_streambuf.hh" #include "ScanDetector.hh" #include "ScanPositioner.hh" class ScanFile : public TObject { protected: std::string fileName; // Scan file name std::istream* fileStream; // pointer to the stream object popen_streambuf bufferPipe; public: ScanFile( const std::string fName ); // Constructor virtual ~ScanFile(); // Destructor inline std::string getFileName() const {return fileName;} inline std::istream* getFileStream() {return fileStream; } inline popen_streambuf* getPipe() {return &bufferPipe;} ClassDef(ScanFile, 0) }; #endif /* SCANFILE_H_ */