/search.css" rel="stylesheet" type="text/css"/> /search.js">
| Classes | Job Modules | Data Objects | Services | Algorithms | Tools | Packages | Directories | Tracs |

In This Package:

Public Member Functions | Static Public Attributes
gen::RpcStripStructure Class Reference

List of all members.

Public Member Functions

def write

Static Public Attributes

list sites = ['db', 'la', 'far']

Detailed Description

Definition at line 12 of file gen.py.


Member Function Documentation

def gen::RpcStripStructure::write (   self,
  outdir 
)

Definition at line 16 of file gen.py.

00017                           :
00018         from XmlDetDescGen.util import XmlFile, Comment
00019         from XmlDetDescGen.catalog import Catalog
00020         from XmlDetDescGen.reference import Reference
00021         from XmlDetDescGen.util import ExternalEntity
00022 
00023         topcat = Catalog('Structure');
00024         rpccat = Catalog('RpcStripStructure');
00025         rpccat.refs = []
00026         rpccat.things = []
00027         topcat.refs = [ rpccat ]
00028         topcat.things = []
00029 
00030         ees = []
00031         for site in RpcStripStructure.sites:
00032             cat = Catalog('%s-strip'%site);
00033             cat.refs=[]
00034             eename="%sstrips"%(site)
00035             ees.append((eename,"%s.xml"%(site)))
00036             cat.refs.append(ExternalEntity(eename))
00037             rpccat.refs.append(cat)
00038             
00039         file = XmlFile(dtd="../DTD/structure.dtd",
00040                        external_entities=ees)
00041         file.objects = [ rpccat ]
00042         file.write(outdir+"/structure.xml")


Member Data Documentation

list gen::RpcStripStructure::sites = ['db', 'la', 'far'] [static]

Definition at line 14 of file gen.py.


The documentation for this class was generated from the following file:
| Classes | Job Modules | Data Objects | Services | Algorithms | Tools | Packages | Directories | Tracs |

Generated on Fri May 16 2014 09:56:07 for XmlDetDesc by doxygen 1.7.4