Hall-D Software
alpha
Main Page
Related Pages
Modules
Namespaces
Classes
Files
Examples
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
DEventSourceEventStoreGenerator.cc
Go to the documentation of this file.
1
// $Id$
2
//
3
// File: DEventSourceEventStoreGenerator.cc
4
// Creator: sdobbs
5
//
6
7
#include "
DEventSourceEventStoreGenerator.h
"
8
#include "
DEventSourceEventStore.h
"
9
#include "
DFactoryGenerator_DESSkimData.h
"
10
11
/*
12
// Make this a plugin
13
extern "C" {
14
void InitPlugin(JApplication *app) {
15
InitJANAPlugin(app);
16
app->AddEventSourceGenerator(new DEventSourceEventStoreGenerator());
17
app->AddFactoryGenerator(new DFactoryGenerator_DESSkimData());
18
}
19
} // "extern C"
20
*/
21
22
//---------------------------------
23
// DEventSourceEventStoreGenerator (Constructor)
24
//---------------------------------
25
DEventSourceEventStoreGenerator::DEventSourceEventStoreGenerator
()
26
{
27
28
}
29
30
//---------------------------------
31
// ~DEventSourceEventStoreGenerator (Destructor)
32
//---------------------------------
33
DEventSourceEventStoreGenerator::~DEventSourceEventStoreGenerator
()
34
{
35
36
}
37
38
//---------------------------------
39
// Description
40
//---------------------------------
41
const
char
*
DEventSourceEventStoreGenerator::Description
(
void
)
42
{
43
return
"EventStore"
;
44
}
45
46
//---------------------------------
47
// CheckOpenable
48
//---------------------------------
49
double
DEventSourceEventStoreGenerator::CheckOpenable
(
string
source)
50
{
51
// See if this looks like the beginning of an eventstore query
52
return
source.substr(0,10)==
"eventstore"
? 0.5:0.0;
53
}
54
55
//---------------------------------
56
// MakeJEventSource
57
//---------------------------------
58
JEventSource*
DEventSourceEventStoreGenerator::MakeJEventSource
(
string
source)
59
{
60
return
new
DEventSourceEventStore
(source.c_str());
61
}
DEventSourceEventStoreGenerator::CheckOpenable
double CheckOpenable(string source)
Definition:
DEventSourceEventStoreGenerator.cc:49
DEventSourceEventStoreGenerator.h
DEventSourceEventStore.h
DEventSourceEventStoreGenerator::Description
const char * Description(void)
Definition:
DEventSourceEventStoreGenerator.cc:41
DEventSourceEventStoreGenerator::~DEventSourceEventStoreGenerator
virtual ~DEventSourceEventStoreGenerator()
Definition:
DEventSourceEventStoreGenerator.cc:33
DFactoryGenerator_DESSkimData.h
DEventSourceEventStoreGenerator::MakeJEventSource
JEventSource * MakeJEventSource(string source)
Definition:
DEventSourceEventStoreGenerator.cc:58
DEventSourceEventStoreGenerator::DEventSourceEventStoreGenerator
DEventSourceEventStoreGenerator()
Definition:
DEventSourceEventStoreGenerator.cc:25
DEventSourceEventStore
Definition:
DEventSourceEventStore.h:26
libraries
EVENTSTORE
DEventSourceEventStoreGenerator.cc
Generated on Fri Jul 26 2019 14:00:39 for Hall-D Software by
1.8.5