/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 | Public Attributes
XmlDetDescGen::catalog::Catalog Class Reference
Inheritance diagram for XmlDetDescGen::catalog::Catalog:
Inheritance graph
[legend]
Collaboration diagram for XmlDetDescGen::catalog::Catalog:
Collaboration graph
[legend]

List of all members.

Public Member Functions

def __init__
def update
def xml
def set_path

Public Attributes

 logvols
 refs
 things
 full_path
 name

Detailed Description

Definition at line 5 of file catalog.py.


Constructor & Destructor Documentation

def XmlDetDescGen::catalog::Catalog::__init__ (   self,
  name,
  logvols = [],
  refs = [],
  things = [] 
)

Definition at line 7 of file catalog.py.

00008                                                         :
00009         reference.Referable.__init__(self,name)
00010         self.logvols=logvols
00011         self.refs=refs
00012         self.things=things
00013         self.full_path="/dd/"+name
00014         self.update()
00015         return


Member Function Documentation

def XmlDetDescGen::catalog::Catalog::update (   self)

Definition at line 16 of file catalog.py.

00017                     :
00018         for ref in self.refs:
00019             ref.set_path(self.full_path)
00020         for lv in self.logvols:
00021             lv.set_path(self.full_path)
00022 

def XmlDetDescGen::catalog::Catalog::xml (   self,
  fo,
  pre 
)

Definition at line 23 of file catalog.py.

00024                         :
00025         "Output self as XML to file object fo, prefacing each line with pre"
00026         fo.write('%s<catalog name="%s">\n'%(pre,self.name))
00027         self.update()
00028         for ref in self.refs:
00029             ref.xml(fo,pre+'  ')
00030         for lv in self.logvols:
00031             lv.xml(fo,pre+'  ')
00032         for thing in self.things:
00033             thing.xml(fo,pre+'  ')
00034         fo.write('%s</catalog>\n'%pre)
00035         return
00036 

def XmlDetDescGen::reference::Referable::set_path (   self,
  base 
) [inherited]

Definition at line 10 of file reference.py.

00011                            :
00012         self.full_path=base+"/"+self.name


Member Data Documentation

Definition at line 7 of file catalog.py.

Definition at line 7 of file catalog.py.

Definition at line 7 of file catalog.py.

Reimplemented from XmlDetDescGen::reference::Referable.

Definition at line 7 of file catalog.py.

Definition at line 5 of file reference.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