Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 13:33:14

0001 """parsing the LCGDict namespace and build dictionary
0002 (quick'n'dirty solution)
0003 
0004 benedikt.hegner@cern.ch
0005 
0006 """
0007 
0008 import popen2
0009 import string
0010 
0011 def getNamespaceDict():
0012 
0013   # execute SealPluginDump to get list of plugins
0014   process = popen2.Popen3('SealPluginDump')
0015   output = process.fromchild.read()
0016 
0017   namespaceDict = {}
0018 
0019   for line in output.split('\n'):
0020     # search for Reflex, global namespace and non templates
0021     if line.find('Reflex') !=-1 and line.find(':') ==-1 and line.find('<') ==-1:
0022       className = line.replace('LCGReflex/', '').strip()
0023       namespaceDict[className] = line.strip()
0024     
0025   return namespaceDict