Gaudi Framework, version v21r4

Home   Generated: 7 Sep 2009

GaudiPython::Bindings::PropertyEntry Class Reference

List of all members.


Detailed Description

holds the value and the documentation string of a property 

Definition at line 129 of file Bindings.py.


Public Member Functions

def __init__
def value
def ptype
def property
def documentation
def hasDoc

Private Attributes

 _type
 __doc__
 _value
 _property
 keep the original property

Member Function Documentation

def GaudiPython::Bindings::PropertyEntry::__init__ (   self,
  prop 
)

Definition at line 131 of file Bindings.py.

00131                            :
00132     self._type = type(prop).__name__
00133     self.__doc__ = " --- Property type is " + self.ptype()
00134     
00135     if   issubclass(type(prop),GaudiHandleProperty) :
00136       self._value = prop.value()   # do nothing for ATLAS' handles 
00137     elif issubclass(type(prop),GaudiHandleArrayProperty) :
00138       self._value = prop.value()   # do nothing for ATLAS' handles 
00139     else :
00140       # for all other types try to extract the native python type 
00141       try:    self._value = eval( prop.toString() , {} , {} )
00142       except: self._value = prop.value()
00143       
00144     self.__doc__ += " --- Default value = " + str(self._value) + " --- "
00145     if prop.documentation() != 'none':
00146       self.__doc__ = prop.documentation() + '\\n' + self.__doc__
00147     ## keep the original property 
00148     self._property = prop # property itself     
  def value(self) :

def GaudiPython::Bindings::PropertyEntry::value (   self  ) 

Definition at line 149 of file Bindings.py.

00149                   :
00150     return self._value
  def ptype(self) :

def GaudiPython::Bindings::PropertyEntry::ptype (   self  ) 

Definition at line 151 of file Bindings.py.

00151                   :
00152     return self._type
  def property(self):

def GaudiPython::Bindings::PropertyEntry::property (   self  ) 

Definition at line 153 of file Bindings.py.

00153                     :
00154     "Return the underlying  property itself "
00155     return self._property 
  def documentation(self) :

def GaudiPython::Bindings::PropertyEntry::documentation (   self  ) 

Definition at line 156 of file Bindings.py.

00156                           :
00157     return self.__doc__
  def hasDoc(self):

def GaudiPython::Bindings::PropertyEntry::hasDoc (   self  ) 

Definition at line 158 of file Bindings.py.

00158                   :
00159     return len(self.__doc__)>0 and self.__doc__ != 'none'
00160 
00161 #----iProperty class--------------------------------------------------------------------- 
class iProperty(object) :


Member Data Documentation

Definition at line 132 of file Bindings.py.

Definition at line 133 of file Bindings.py.

Definition at line 136 of file Bindings.py.

keep the original property

Definition at line 148 of file Bindings.py.


The documentation for this class was generated from the following file:

Generated at Mon Sep 7 18:26:33 2009 for Gaudi Framework, version v21r4 by Doxygen version 1.5.6 written by Dimitri van Heesch, © 1997-2004