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

List of all members.

Public Member Functions

def write

Static Public Attributes

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

Detailed Description

Definition at line 19 of file gen.py.


Member Function Documentation

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

Definition at line 23 of file gen.py.

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


Member Data Documentation

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

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