50 GO4TRACE((15,
"TGo4EventServerFactory::TGo4EventServerFactory(const char*)",__LINE__, __FILE__));
56 GO4TRACE((15,
"TGo4EventServerFactory::TGo4EventServerFactory()",__LINE__, __FILE__));
61 GO4TRACE((15,
"TGo4EventServerFactory::~TGo4EventServerFactory()",__LINE__, __FILE__));
66 GO4TRACE((14,
"TGo4EventServerFactory::CreateInputEvent()",__LINE__, __FILE__));
76 TGo4Log::Debug(
" EventServer Factory: creating input event %s ", event->ClassName());
82 GO4TRACE((14,
"TGo4EventServerFactory::CreateEventStore(TGo4EventStoreParameter*)",__LINE__, __FILE__));
87 if(!strcmp(par->ClassName(),
"TGo4FileStoreParameter"))
89 rev =
new TGo4FileStore(dynamic_cast<TGo4FileStoreParameter* > (par) );
91 else if(!strcmp(par->ClassName(),
"TGo4TreeStoreParameter"))
94 TGo4Log::Debug(
" EventServer Factory: TreeStore is not recommended, PLEASE USE TGo4FileStore !!!! ");
96 else if(!strcmp(par->ClassName(),
"TGo4BackStoreParameter"))
98 rev =
new TGo4BackStore(dynamic_cast<TGo4BackStoreParameter* > (par));
103 TGo4Log::Debug(
" EventServer Factory: creating event store %s ", rev->ClassName());
105 TGo4Log::Debug(
" EventServer Factory: Unknown eventstore parameter ");
113 GO4TRACE((14,
"TGo4EventServerFactory::CreateEventSource(TGo4EventSourceParameter*)",__LINE__, __FILE__));
119 if(!strcmp(par->ClassName(),
"TGo4FileSourceParameter"))
121 rev =
new TGo4FileSource(dynamic_cast<TGo4FileSourceParameter* > (par) );
123 else if(!strcmp(par->ClassName(),
"TGo4TreeSourceParameter"))
126 TGo4Log::Debug(
" EventServer Factory: TreeSource is not recommended, PLEASE USE TGo4FileSource !!!! ");
128 else if(!strcmp(par->ClassName(),
"TGo4MbsFileParameter"))
130 rev =
new TGo4MbsFile(dynamic_cast<TGo4MbsFileParameter* > (par) );
133 else if(!strcmp(par->ClassName(),
"TGo4MbsStreamParameter"))
135 rev =
new TGo4MbsStream(dynamic_cast<TGo4MbsStreamParameter* > (par) );
137 else if(!strcmp(par->ClassName(),
"TGo4MbsTransportParameter"))
139 rev =
new TGo4MbsTransport(dynamic_cast<TGo4MbsTransportParameter* > (par) );
141 else if(!strcmp(par->ClassName(),
"TGo4MbsEventServerParameter"))
146 else if(!strcmp(par->ClassName(),
"TGo4RevServParameter"))
148 rev =
new TGo4RevServ(dynamic_cast<TGo4RevServParameter* > (par) );
150 else if(!strcmp(par->ClassName(),
"TGo4MbsRandomParameter"))
152 rev =
new TGo4MbsRandom(dynamic_cast<TGo4MbsRandomParameter* > (par) );
154 else if(!strcmp(par->ClassName(),
"TGo4UserSourceParameter"))
161 TGo4Log::Debug(
" EventServer Factory: creating event source %s ", rev->ClassName());
163 TGo4Log::Debug(
" EventServer Factory: Unknown eventsource parameter ");
virtual TGo4EventSource * CreateEventSource(TGo4EventSourceParameter *par)
virtual TGo4EventElement * CreateInputEvent()
virtual ~TGo4EventServerFactory()
virtual TGo4EventStore * CreateEventStore(TGo4EventStoreParameter *par)
static void Debug(const char *text,...)