Diana Software
QGlobalReaderDispatcher.hh
Go to the documentation of this file.
1 #ifndef _Q_GLOBAL_READER_DISPATCHER_HH_
2 #define _Q_GLOBAL_READER_DISPATCHER_HH_
14 #include <map>
15 #include <string>
16 #include "QNamed.hh"
17 #include "QDiana.hh"
18 
19 class QGlobalReader;
20 class QError;
21 
22 namespace Diana {class QSequence; };
23 
25 {
26  public:
28 
30 
35  QGlobalReader* GetReader(const std::string& filename, QError& err);
36 
37  void SetCurrentReaderFilename(const std::string& filename) { fCurrentReaderFilename = filename; };
38  void Clear();
39  private:
41  std::map<std::string, QGlobalReader*> fReaders;
44  friend class Diana::QSequence;
45 };
46 
47 #endif
err
Definition: CheckOF.C:114
error class with error type and description
Definition: QError.hh:115
Class that returns a pointer to the reader matching the given input filename.
std::map< std::string, QGlobalReader * > fReaders
QGlobalReader * GetReader(const std::string &filename, QError &err)
get reader
static QGlobalReaderDispatcher & GetInstance()
void SetCurrentReaderFilename(const std::string &filename)
Abstract class for global readers.
base class for anything that has a name
Definition: QNamed.hh:14
Diana Reconstruction program.
Definition: QSequence.hh:40
the Diana namespace is needed because sometimes we use Qt libraries, that use same class names of our...