/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::structure::UserParameter Class Reference

List of all members.

Public Member Functions

def __init__
def xml

Public Attributes

 name
 type
 desc
 values

Detailed Description

Definition at line 50 of file structure.py.


Constructor & Destructor Documentation

def XmlDetDescGen::structure::UserParameter::__init__ (   self,
  name,
  type = "double",
  values = [],
  desc = None 
)

Definition at line 51 of file structure.py.

00052                                                              :
00053         self.name = name
00054         self.type = type
00055         self.desc = desc
00056         self.values = values


Member Function Documentation

def XmlDetDescGen::structure::UserParameter::xml (   self,
  fo,
  pre 
)

Definition at line 57 of file structure.py.

00058                         :
00059         whatiam = "userParameter"
00060         if len(self.values) > 1:
00061             whatiam = "userparameterVector"
00062         if self.desc:
00063             from util import Comment
00064             Comment(self.desc).xml(fo,pre)
00065         fo.write('%s<%s name="%s" type="%s" comment="%s">\n'%\
00066                      (pre,whatiam,self.name,self.type,self.desc))
00067         for value in self.values:
00068             fo.write('%s  %s\n'%(pre,value))
00069         fo.write('%s</%s>\n'%(pre,whatiam))
00070         return


Member Data Documentation

Definition at line 51 of file structure.py.

Definition at line 51 of file structure.py.

Definition at line 51 of file structure.py.

Definition at line 51 of file structure.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