Line data Source code
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 0 : EvtExtGeneratorCommandsTable::EvtExtGeneratorCommandsTable() {
23 0 : _commandMap.clear();
24 0 : }
25 :
26 0 : EvtExtGeneratorCommandsTable::~EvtExtGeneratorCommandsTable() {
27 0 : _commandMap.clear();
28 0 : }
29 :
30 : EvtExtGeneratorCommandsTable* EvtExtGeneratorCommandsTable::getInstance() {
31 :
32 : static EvtExtGeneratorCommandsTable* theCommandMap = 0;
33 :
34 0 : if (theCommandMap == 0) {
35 0 : theCommandMap = new EvtExtGeneratorCommandsTable();
36 0 : }
37 :
38 0 : return theCommandMap;
39 :
40 : }
|