00001 #include "IOIMPL/LCFactory.h"
00002
00003
00004
00005 #include "IO/LCWriter.h"
00006 #include "IO/LCReader.h"
00007
00008 #include "SIO/SIOWriter.h"
00009 #include "SIO/SIOReader.h"
00010
00011
00012
00013 using namespace IO ;
00014 using namespace SIO ;
00015
00016 namespace IOIMPL{
00017
00018 LCFactory* LCFactory::_me = 0 ;
00019
00020
00021 LCFactory::LCFactory() {
00022 }
00023
00024
00025 LCFactory* LCFactory::getInstance() {
00026
00027 if( !_me ) _me = new LCFactory ;
00028 return _me ;
00029 }
00030
00031
00032 LCFactory::~LCFactory() {
00033 delete _me ;
00034 }
00035
00036 LCWriter * LCFactory::createLCWriter() {
00037
00038
00039
00040
00041 return new SIOWriter ;
00042 }
00043
00044 LCReader * LCFactory::createLCReader(int lcReaderFlag) {
00045
00046
00047 return new SIOReader( lcReaderFlag );
00048 }
00049
00050
00051 }