test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Functions
python.namespaceDict Namespace Reference

Functions

def getNamespaceDict
 

Detailed Description

parsing the LCGDict namespace and build dictionary
(quick'n'dirty solution)

benedikt.hegner@cern.ch

Function Documentation

def python.namespaceDict.getNamespaceDict ( )

Definition at line 11 of file namespaceDict.py.

11 
12 def getNamespaceDict():
13 
14  # execute SealPluginDump to get list of plugins
15  process = popen2.Popen3('SealPluginDump')
16  output = process.fromchild.read()
17 
18  namespaceDict = {}
19 
20  for line in output.split('\n'):
21  # search for Reflex, global namespace and non templates
22  if line.find('Reflex') !=-1 and line.find(':') ==-1 and line.find('<') ==-1:
23  className = line.replace('LCGReflex/', '').strip()
24  namespaceDict[className] = line.strip()
25 
26  return namespaceDict