10 #define _FILEREADER_H_
Event to store all LCLS Data.
std::string type() const
return the type of file that this is for
const std::string & filename() const
retrieve the filename that this instance is working on
void filename(const std::string &filename)
set the filename of the instance
std::string _type
the reader type as string
virtual void readHeaderInfo(std::ifstream &)
read the file header
base class for all file readers
virtual void loadSettings()=0
load the settings of the reader
FileReader()
only inheritants can create this
virtual ~FileReader()
virtual destructor
std::string _filename
the name of the file that we read the values from
static shared_pointer instance(const std::string &filename)
create an instance of the requested type
virtual bool operator()(std::ifstream &file, CASSEvent &event)=0
read the file contents
std::tr1::shared_ptr< FileReader > shared_pointer
typedef the shared pointer of this
FileReader(const std::string &type)
set the readers type