/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
XmlDetDescGen::AdReflectorStructure::gen::AdReflectorStructure Class Reference

List of all members.

Public Member Functions

def write

Static Public Attributes

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

Detailed Description

Definition at line 17 of file gen.py.


Member Function Documentation

def XmlDetDescGen::AdReflectorStructure::gen::AdReflectorStructure::write (   self,
  outdir 
)

Definition at line 21 of file gen.py.

00022                           :
00023         from XmlDetDescGen.util import XmlFile, Comment
00024         from XmlDetDescGen.catalog import Catalog
00025         from XmlDetDescGen.reference import Reference
00026         from XmlDetDescGen.util import ExternalEntity
00027 
00028         topcat = Catalog('Structure');
00029         adcat = Catalog('AdReflectorStructure');
00030         adcat.refs = []
00031         adcat.things = []
00032         topcat.refs = [ adcat ]
00033         topcat.things = []
00034 
00035         ees = []
00036         for site,adcount in zip(AdReflectorStructure.sites,AdReflectors.adcounts):
00037             cat = Catalog('%s-ad'%site);
00038             cat.refs=[]
00039             for iad in range(0,adcount):
00040                 iad += 1
00041                 eename="%s%dreflectors"%(site,iad)
00042                 ees.append((eename,"%s%d.xml"%(site,iad)))
00043                 cat.refs.append(ExternalEntity(eename))
00044                 continue
00045             adcat.refs.append(cat)
00046 
00047         file = XmlFile(dtd="../DTD/structure.dtd",
00048                        external_entities=ees)
00049         file.objects = [ adcat ]
00050         file.write(outdir+"/structure.xml")
00051 


Member Data Documentation

Definition at line 19 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