LCOV - code coverage report
Current view: top level - TEvtGen/EvtGen/EvtGenBase - EvtExtGeneratorCommandsTable.hh (source / functions) Hit Total Coverage
Test: coverage.info Lines: 0 2 0.0 %
Date: 2016-06-14 17:26:59 Functions: 0 2 0.0 %

          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 <map>
      21             : #include <vector>
      22             : #include <string>
      23             : 
      24             : #ifndef EVTEXTGENERATORCOMMANDSTABLE_HH
      25             : #define EVTEXTGENERATORCOMMANDSTABLE_HH
      26             : 
      27             : typedef std::map<std::string, std::string> Command;
      28             : typedef std::vector<Command> GeneratorCommands;
      29             : typedef std::map<std::string, GeneratorCommands > GlobalCommandMap;
      30             : 
      31             : class EvtExtGeneratorCommandsTable {
      32             : 
      33             : public:
      34             : 
      35             :   static EvtExtGeneratorCommandsTable* getInstance();
      36             : 
      37           0 :   void addCommand(std::string extGenerator, Command command) { _commandMap[extGenerator].push_back(command); }
      38           0 :   const GeneratorCommands& getCommands(std::string extGenerator) { return _commandMap[extGenerator]; }
      39             : 
      40             : protected:
      41             : 
      42             :   EvtExtGeneratorCommandsTable();
      43             :   ~EvtExtGeneratorCommandsTable();
      44             : 
      45             : private:
      46             : 
      47             :   GlobalCommandMap _commandMap;
      48             : 
      49             :   EvtExtGeneratorCommandsTable(const EvtExtGeneratorCommandsTable&) {};
      50             : 
      51             : };
      52             : 
      53             : #endif

Generated by: LCOV version 1.11