StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
StDatFileFactory.cxx
1 #include "StDatFileFactory.h"
2 #include "StTrgDatReader.h"
3 
4 namespace {
5  StDatFileFactory *singletonFactory = StDatFileFactory::CreateDatFactory();
6 }
7 //____________________________________________________________________________________
8 StDatFileFactory *StDatFileFactory::CreateDatFactory()
9 {
10  return Factory() ? 0 : new StDatFileFactory();
11 }
12 
13 //____________________________________________________________________________________
14 StStreamFile *StDatFileFactory::Create()
15 {
16  return new StTrgDatReader();
17 }
18 //____________________________________________________________________________________
19 StStreamFile *StDatFileFactory::Create(const char *fileName, ios_base::openmode mode)
20 {
21  return new StTrgDatReader(fileName,mode);
22 }