CFEL - ASG Software Suite  2.5.0
CASS
frms6_parser.h
Go to the documentation of this file.
1 // Copyright (C) 2011 Lutz Foucar
2 
3 /**
4  * @file frms6_parser.h contains class to parse a frms6 file
5  * created by Xonline.
6  *
7  * @author Lutz Foucar
8  */
9 
10 #ifndef _FRMS6PARSER_H_
11 #define _FRMS6PARSER_H_
12 
13 #include "file_parser.h"
14 
15 namespace cass
16 {
17 /** Will parse a frms6 file created by Xonline
18  *
19  * @author to be determined
20  */
21 class Frms6Parser : public FileParser
22 {
23 public:
24  /** constructor
25  *
26  * @param readerpointerpair the filereader the will read the event from files
27  * @param event2posreader reference to container that maps events to the
28  * position in file, reader pair vector
29  * @param lock reference to the protector of the eventlist map
30  */
31  Frms6Parser(const filereaderpointerpair_t readerpointerpair,
32  event2positionreaders_t &event2posreader,
33  QReadWriteLock &lock)
34  :FileParser(readerpointerpair,event2posreader,lock)
35  {}
36 
37  /** parse the frms6 file
38  *
39  * detailed description
40  */
41  void run();
42 
43  /** @return the type of file parser */
44  virtual const std::string type() {return "frms6";}
45 };
46 }//end namespace cass
47 #endif
contains base class for all file parsers
virtual const std::string type()
Definition: frms6_parser.h:44
Will parse a frms6 file created by Xonline.
Definition: frms6_parser.h:21
Frms6Parser(const filereaderpointerpair_t readerpointerpair, event2positionreaders_t &event2posreader, QReadWriteLock &lock)
constructor
Definition: frms6_parser.h:31
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
void run()
parse the frms6 file