33 :
lmf::PausableThread(),
34 _readerpointerpair(readerpointerpair),
35 _event2posreader(event2posreader),
50 else if (type ==
"txt")
53 else if (type ==
"xtc")
57 throw invalid_argument(
"FileParser::instance: file extension '"+ type +
68 "' from parser type '"+
type()+
"' of seems to be wrong; skipping event.");
event2positionreaders_t & _event2posreader
reference to the map containing the beginnings of the event
contains class to parse xtc files
static shared_pointer instance(const std::string type, const filereaderpointerpair_t readerpointerpair, event2positionreaders_t &event2posreader, QReadWriteLock &lock)
create an instance of the requested type
contains base class for all file parsers
class for parsing xtc files
static void add(Level level, const std::string &line)
add a string to the log
filereaderpointerpair_t _readerpointerpair
the file pointer
std::tr1::shared_ptr< FileParser > shared_pointer
typedef the shared pointer of this
contains class to parse a txt ascii file
contains base class for all file readers
QReadWriteLock & _lock
Lock that protects the map.
std::string toString(const Type &t)
convert any type to a string
void savePos(const std::streampos &eventStartPos, const uint64_t eventId)
put current file position in the eventmap
std::pair< std::tr1::shared_ptr< FileReader >, FilePointer > filereaderpointerpair_t
pair of a file pointer with the associated file reader
contains class to parse a frms6 file created by Xonline.
FileParser(const filereaderpointerpair_t readerpointerpair, event2positionreaders_t &event2posreader, QReadWriteLock &lock)
constructor
virtual ~FileParser()
virtual destructor
contains class to parse a lma file
contains class to parse a file containing the commercial ccd images created by Per Johnsonns program...
std::map< uint64_t, positionreaders_t > event2positionreaders_t
the list of events contained in a file with the associated position and reader
virtual const std::string type()
contains a logger for cass