CMS 3D CMS Logo

Classes | Functions
cond2xml Namespace Reference

Classes

class  CondXmlProcessor
 

Functions

def boost_version_for_this_release ()
 
def localLibName (payloadType)
 
def sanitize (typeName)
 

Function Documentation

◆ boost_version_for_this_release()

def cond2xml.boost_version_for_this_release ( )

Definition at line 55 of file cond2xml.py.

56  import pluginUtilities_payload2xml as mod2XML
57  return mod2XML.boost_version_label()
58 
def boost_version_for_this_release()
Definition: cond2xml.py:55

◆ localLibName()

def cond2xml.localLibName (   payloadType)

Definition at line 45 of file cond2xml.py.

References sanitize().

Referenced by cond2xml.CondXmlProcessor.discover(), and cond2xml.CondXmlProcessor.prepPayload2xml().

45 def localLibName( payloadType ):
46  # required to avoid ( unlikely ) clashes between lib names from templates and lib names from classes
47  prefix = ''
48  if '<' in payloadType and '>' in payloadType:
49  prefix = 't'
50  ptype = payloadType
51  if '::' in payloadType:
52  ptype = payloadType.replace('::','_')
53  return "%s_%spayload2xml" %(sanitize(ptype),prefix)
54 
def localLibName(payloadType)
Definition: cond2xml.py:45
def sanitize(typeName)
Definition: cond2xml.py:42

◆ sanitize()

def cond2xml.sanitize (   typeName)

Definition at line 42 of file cond2xml.py.

References python.rootplot.root2matplotlib.replace().

Referenced by localLibName(), and cond2xml.CondXmlProcessor.payload2xml().

42 def sanitize(typeName):
43  return typeName.replace(' ','').replace('<','_').replace('>','')
44 
def replace(string, replacements)
def sanitize(typeName)
Definition: cond2xml.py:42