CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Classes | Functions | Variables
cond2xml Namespace Reference

Classes

class  CondXmlProcessor
 

Functions

def boost_version_for_this_release
 
def localLibName
 
def sanitize
 

Variables

string buildFileTemplate
 
string payload2xmlCodeTemplate
 

Function Documentation

def cond2xml.boost_version_for_this_release ( )

Definition at line 55 of file cond2xml.py.

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

Definition at line 45 of file cond2xml.py.

References sanitize().

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

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

Variable Documentation

string cond2xml.buildFileTemplate
Initial value:
1 = """
2 <flags CXXFLAGS="-Wno-sign-compare -Wno-unused-variable -Os"/>
3 <library file="%s" name="%s">
4  <use name="CondCore/Utilities"/>
5  <use name="py3-pybind11"/>
6  <use name="python3"/>
7 </library>
8 <export>
9  <lib name="1"/>
10 </export>
11 """

Definition at line 29 of file cond2xml.py.

string cond2xml.payload2xmlCodeTemplate
Initial value:
1 = """
2 
3 #include "CondCore/Utilities/interface/Payload2XMLModule.h"
4 #include "CondCore/Utilities/src/CondFormats.h"
5 
6 PAYLOAD_2XML_MODULE( %s ){
7  PAYLOAD_2XML_CLASS( %s );
8 }
9 
10 """

Definition at line 18 of file cond2xml.py.