]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - TEvtGen/EvtGen/EvtGenBase/EvtExtGeneratorCommandsTable.cpp
Converting TEvtGen to native cmake
[u/mrichter/AliRoot.git] / TEvtGen / EvtGen / EvtGenBase / EvtExtGeneratorCommandsTable.cpp
diff --git a/TEvtGen/EvtGen/EvtGenBase/EvtExtGeneratorCommandsTable.cpp b/TEvtGen/EvtGen/EvtGenBase/EvtExtGeneratorCommandsTable.cpp
new file mode 100644 (file)
index 0000000..456ef41
--- /dev/null
@@ -0,0 +1,40 @@
+//--------------------------------------------------------------------------
+//
+// Environment:
+//      This software is part of the EvtGen package. If you use all or part
+//      of it, please give an appropriate acknowledgement.
+//
+// Copyright Information: See EvtGen/COPYRIGHT
+//      Copyright (C) 2012      University of Warwick, UK
+//
+// Module: EvtExtGeneratorCommandsTable
+//
+// Description:  Table of commands to pass to external generators
+//
+// Modification history:
+//
+//    Daniel Craik       March 2012            Module created
+//
+//------------------------------------------------------------------------
+
+#include "EvtGenBase/EvtExtGeneratorCommandsTable.hh"
+
+EvtExtGeneratorCommandsTable::EvtExtGeneratorCommandsTable() {
+  _commandMap.clear();
+}
+
+EvtExtGeneratorCommandsTable::~EvtExtGeneratorCommandsTable() {
+  _commandMap.clear();
+}
+
+EvtExtGeneratorCommandsTable* EvtExtGeneratorCommandsTable::getInstance() {
+
+  static EvtExtGeneratorCommandsTable* theCommandMap = 0;
+
+  if (theCommandMap == 0) {
+    theCommandMap = new EvtExtGeneratorCommandsTable();
+  }
+
+  return theCommandMap;
+
+}