]>
Commit | Line | Data |
---|---|---|
0ca57c2f | 1 | //-------------------------------------------------------------------------- |
2 | // | |
3 | // Environment: | |
4 | // This software is part of the EvtGen package. If you use all or part | |
5 | // of it, please give an appropriate acknowledgement. | |
6 | // | |
7 | // Copyright Information: See EvtGen/COPYRIGHT | |
8 | // Copyright (C) 2012 University of Warwick, UK | |
9 | // | |
10 | // Module: EvtExtGeneratorCommandsTable | |
11 | // | |
12 | // Description: Table of commands to pass to external generators | |
13 | // | |
14 | // Modification history: | |
15 | // | |
16 | // Daniel Craik March 2012 Module created | |
17 | // | |
18 | //------------------------------------------------------------------------ | |
19 | ||
20 | #include "EvtGenBase/EvtExtGeneratorCommandsTable.hh" | |
21 | ||
22 | EvtExtGeneratorCommandsTable::EvtExtGeneratorCommandsTable() { | |
23 | _commandMap.clear(); | |
24 | } | |
25 | ||
26 | EvtExtGeneratorCommandsTable::~EvtExtGeneratorCommandsTable() { | |
27 | _commandMap.clear(); | |
28 | } | |
29 | ||
30 | EvtExtGeneratorCommandsTable* EvtExtGeneratorCommandsTable::getInstance() { | |
31 | ||
32 | static EvtExtGeneratorCommandsTable* theCommandMap = 0; | |
33 | ||
34 | if (theCommandMap == 0) { | |
35 | theCommandMap = new EvtExtGeneratorCommandsTable(); | |
36 | } | |
37 | ||
38 | return theCommandMap; | |
39 | ||
40 | } |