Hall-D Software  alpha
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
DEventSourceEVIOGenerator.cc
Go to the documentation of this file.
1 // $Id$
2 //
3 // File: DEventSourceEVIOGenerator.cc
4 // Created: Sat May 8 13:54:46 EDT 2010
5 // Creator: davidl (on Darwin Amelia.local 9.8.0 i386)
6 //
7 
9 #include "DEventSourceEVIO.h"
10 
11 // Make this a plugin
12 extern "C" {
13  void InitPlugin(JApplication *app) {
14  InitJANAPlugin(app);
15  app->AddEventSourceGenerator(new DEventSourceEVIOGenerator());
16  }
17 } // "extern C"
18 
19 
20 //---------------------------------
21 // DEventSourceEVIOGenerator (Constructor)
22 //---------------------------------
24 {
25 
26 }
27 
28 //---------------------------------
29 // ~DEventSourceEVIOGenerator (Destructor)
30 //---------------------------------
32 {
33 
34 }
35 
36 //---------------------------------
37 // Description
38 //---------------------------------
40 {
41  return "EVIO";
42 }
43 
44 //---------------------------------
45 // CheckOpenable
46 //---------------------------------
48 {
49  return source.find(".evio",0)==string::npos ? 0.0:0.5;
50 }
51 
52 //---------------------------------
53 // MakeJEventSource
54 //---------------------------------
55 JEventSource* DEventSourceEVIOGenerator::MakeJEventSource(string source)
56 {
57  return new DEventSourceEVIO(source.c_str());
58 }
JEventSource * MakeJEventSource(string source)
InitPlugin_t InitPlugin