CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
WatcherStreamFileReader.h
Go to the documentation of this file.
1 #ifndef IOPool_Streamer_StreamerFileReader_h
2 #define IOPool_Streamer_StreamerFileReader_h
3 
6 
8 
9 #include <string>
10 #include <iostream>
11 #include <deque>
12 
22 namespace edm{
23  class StreamerInputFile;
24 }
25 
27 public:
30 
31  const InitMsgView* getHeader();
32  const EventMsgView* getNextEvent();
33  const bool newHeader();
34 
36 
37  void closeFile();
38 
39 private:
42  std::string inputDir_;
43 
46  std::vector<std::string> filePatterns_;
47 
50  std::string inprocessDir_;
51 
52 
55  std::string processedDir_;
56 
59  std::string corruptedDir_;
60 
63  std::auto_ptr<edm::StreamerInputFile> streamerInputFile_;
64 
65  static std::string fileName_;
66 
67  std::string tokenFile_;
68 
69  int timeOut_;
70 
71  std::deque<std::string> filesInQueue_;
72 
73  bool end_;
74 
76 
77 };
78 
79 #endif
80 
std::vector< std::string > filePatterns_
const EventMsgView * getNextEvent()
std::deque< std::string > filesInQueue_
WatcherStreamFileReader(edm::ParameterSet const &pset)
const InitMsgView * getHeader()
std::auto_ptr< edm::StreamerInputFile > streamerInputFile_
edm::StreamerInputFile * getInputFile()