CFEL - ASG Software Suite  2.5.0
CASS
xtc_parser.h
Go to the documentation of this file.
1 // Copyright (C) 2011 Lutz Foucar
2 
3 /**
4  * @file xtc_parser.h contains class to parse xtc files
5  *
6  * @author Lutz Foucar
7  */
8 
9 #ifndef _XTCPARSER_H_
10 #define _XTCPARSER_H_
11 
12 #include <fstream>
13 
14 #include "file_parser.h"
15 
16 namespace cass
17 {
18  class CASSEvent;
19  class FormatConverter;
20 
21  /** class for parsing xtc files
22  *
23  * goes through the xtc file and finds the events that contain data
24  *
25  * @author Lutz Foucar
26  */
27  class XtcParser : public FileParser
28  {
29  public:
30  /** constructor
31  *
32  * @param readerpointerpair the filereader the will read the event from files
33  * @param event2posreader reference to container that maps events to the
34  * position in file, reader pair vector
35  * @param lock reference to the protector of the eventlist map
36  */
37  XtcParser(const filereaderpointerpair_t readerpointerpair,
38  event2positionreaders_t &event2posreader,
39  QReadWriteLock &lock)
40  :FileParser(readerpointerpair,event2posreader,lock)
41  {}
42 
43  /** parse the frms6 file
44  *
45  * detailed description
46  */
47  void runthis();
48 
49  };
50 }
51 #endif
contains base class for all file parsers
class for parsing xtc files
Definition: xtc_parser.h:27
XtcParser(const filereaderpointerpair_t readerpointerpair, event2positionreaders_t &event2posreader, QReadWriteLock &lock)
constructor
Definition: xtc_parser.h:37
void runthis()
parse the frms6 file
Definition: xtc_parser.cpp:20
std::pair< std::tr1::shared_ptr< FileReader >, FilePointer > filereaderpointerpair_t
pair of a file pointer with the associated file reader
Definition: cass.h:276
base class for all file parsers
Definition: file_parser.h:29
std::map< uint64_t, positionreaders_t > event2positionreaders_t
the list of events contained in a file with the associated position and reader
Definition: cass.h:282