LCIO  02.17
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
LCFactory.h
Go to the documentation of this file.
1 // -*- C++ -*-
2 #ifndef IOIMPL_LCFactory_h
3 #define IOIMPL_LCFactory_h 1
4 
5 
6 #include "IO/ILCFactory.h"
7 #include "IO/LCReader.h"
8 #include "IO/LCWriter.h"
9 
10 namespace IOIMPL {
11 
19 class LCFactory : public IO::ILCFactory {
20 
21 
22 public:
23  LCFactory() ;
24 
29  static LCFactory* getInstance() ;
30 
32  virtual ~LCFactory() ;
33 
34 
37  virtual IO::LCWriter * createLCWriter() ;
38 
43  virtual IO::LCReader * createLCReader(int lcReaderFlag=0 ) ;
44 
45 
46 private:
47 
48  static LCFactory * _me ;
49 
50 }; // class
51 } // namespace IOIMPL
52 #endif /* ifndef IOIMPL_LCFactory_h */
static LCFactory * _me
Definition: LCFactory.h:48
Factory to create LCWriter and Reader object for the known data formats, e.g.
Definition: ILCFactory.h:22
static LCFactory * getInstance()
Returns the instance of the factory.
Definition: LCFactory.cc:25
virtual IO::LCReader * createLCReader(int lcReaderFlag=0)
Creates an LCReader object for the current persistency type.
Definition: LCFactory.cc:45
Interface for reading data from LCIO.
Definition: LCReader.h:32
virtual IO::LCWriter * createLCWriter()
Creates an LCWriter object for the current persistency type.
Definition: LCFactory.cc:36
Interface for writing data with LCIO.
Definition: LCWriter.h:27
virtual ~LCFactory()
Destructor.
Definition: LCFactory.cc:32
Factory to create LCWriter and Reader object for the known data formats, e.g.
Definition: LCFactory.h:19