Package iceprod :: Package core :: Module xmlwriter :: Class IceTrayXMLWriter
[hide private]
[frames] | no frames]

Class IceTrayXMLWriter

source code

Instance Methods [hide private]
 
__init__(self, steering, uri='http://x2100.icecube.wisc.edu/dtd/iceprod.v2.dtd', add_descriptions=False, parser=None)
Initialize and build DOM tree from IceTrayConfig object
source code
 
AddSubstitutions(self, substitutions)
Substitute parameter values Useful for changing URLs, etc.
source code
 
LoadSteering(self, docNode, steering)
Read Steering parameters from IceTrayConfig tree and generate the entries in DOM tree.
source code
 
AddTray(self, docElement, tray)
Adds icetray project libraries from IceTrayConfig to DOM tree and sets them as attributes to <icetray> tag.
source code
 
AddMetaProjects(self, icetray, i3config)
Load projects from IceTrayConfig and add the to DOM tree
source code
 
AddProjects(self, icetray, i3config)
Load projects from IceTrayConfig and add the to DOM tree
source code
 
mkValueElement(self, ptype, pvalue, doc, default_value=False)
Create a value element depending on the type
source code
 
AddServices(self, icetray, i3config, add_descriptions=False)
Load services from IceTrayConfig and add the to DOM tree
source code
 
AddModules(self, icetray, i3config, add_descriptions=False)
Load modules from IceTrayConfig and add the to DOM tree
source code
 
AddIceProdPres(self, icetray, i3config)
Load modules from IceTrayConfig and add the to DOM tree
source code
 
AddIceProdPosts(self, icetray, i3config)
Load modules from IceTrayConfig and add the to DOM tree
source code
 
AddConnections(self, icetray, i3config)
Read connections from IceTrayConfig and load them to DOM tree
source code
 
getDOM(self) source code
 
toXML(self, fname=None) source code
 
write_to_file(self, fname=None)
Write DOM tree as human readable xml to a file
source code
Method Details [hide private]

AddSubstitutions(self, substitutions)

source code 

Substitute parameter values Useful for changing URLs, etc.

Parameters:
  • substitutions - map of key,value pairs to substitute