LCIO  "2.7.4"
 All Classes Namespaces Functions Variables Typedefs Friends Pages
ILCFactory.h
1 // -*- C++ -*-
2 // AID-GENERATED
3 // =========================================================================
4 // This class was generated by AID - Abstract Interface Definition
5 // DO NOT MODIFY, but use the org.freehep.aid.Aid utility to regenerate it.
6 // =========================================================================
7 #ifndef IO_ILCFACTORY_H
8 #define IO_ILCFACTORY_H 1
9 
10 namespace IO {
11 
12 class LCReader;
13 class LCWriter;
14 
22 class ILCFactory {
23 
24 public:
26  virtual ~ILCFactory() { /* nop */; }
27 
28 // /** Returns the instance of the factory.
29 // * In the future we need to specify the data format here...
30 // * This doesn't work for java as an interface can't have static members ...
31 // */
32  // this needs more thought ....
33 //
34 // @cpp{ static LCFactory* getInstance() ;
35 // }
36 //
39  virtual LCWriter * createLCWriter() = 0;
40 
43  virtual LCReader * createLCReader(int readerFlag = 0) = 0;
44 }; // class
45 } // namespace IO
46 #endif /* ifndef IO_ILCFACTORY_H */
Factory to create LCWriter and Reader object for the known data formats, e.g.
Definition: ILCFactory.h:22
virtual ~ILCFactory()
Destructor.
Definition: ILCFactory.h:26
Interface for reading data from LCIO.
Definition: LCReader.h:32
virtual LCWriter * createLCWriter()=0
Returns the instance of the factory.
virtual LCReader * createLCReader(int readerFlag=0)=0
Creates an LCReader object for the current persistency type.
Interface for writing data with LCIO.
Definition: LCWriter.h:27