LCIO  "2.7.4"
 All Classes Namespaces Functions Variables Typedefs Friends Pages
LCFactory.h
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 protected:
23  LCFactory() ;
24 
25 public:
26 
31  static LCFactory* getInstance() ;
32 
34  virtual ~LCFactory() ;
35 
36 
39  virtual IO::LCWriter * createLCWriter() ;
40 
45  virtual IO::LCReader * createLCReader(int lcReaderFlag=0 ) ;
46 
47 
48 private:
49 
50  static LCFactory * _me ;
51 
52 }; // class
53 } // namespace IOIMPL
54 #endif /* ifndef IOIMPL_LCFactory_h */
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:44
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