source:
trunk/examples/novice/gemc/src/MPHBaseClass.cc
@
869
Last change on this file since 869 was 807, checked in by , 16 years ago | |
---|---|
File size: 403 bytes |
Rev | Line | |
---|---|---|
[807] | 1 | // %%%%%%%%%%%%% |
2 | // gemc headers | |
3 | // %%%%%%%%%%%%% | |
4 | #include "MPHBaseClass.h" | |
5 | ||
6 | using namespace std; | |
7 | ||
8 | MPHBaseClass *GetMPHClass (map<string, MPHB_Factory> MProcessHit_Map, string HCname) | |
9 | { | |
10 | if(MProcessHit_Map.find(HCname) == MProcessHit_Map.end()) | |
11 | { | |
12 | cout << endl << endl << " >>> WARNING: " << HCname << " NOT FOUND IN ProcessHit Map." << endl; | |
13 | return NULL; | |
14 | } | |
15 | ||
16 | return MProcessHit_Map[HCname](); | |
17 | } |
Note: See TracBrowser
for help on using the repository browser.