| # Gaudi Framework, version v25r0 |

Home |  | Generated: Mon Feb 17 2014

- Main Page
- Related Pages
- Modules
- Namespaces
- Classes
- Files

- Class List
- Class Index
- Class Hierarchy
- Class Members

All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Public Member Functions | Private Attributes | List of all members
GaudiPython.Bindings.PropertyEntry Class Reference
Inheritance diagram for GaudiPython.Bindings.PropertyEntry:
[legend]
Collaboration diagram for GaudiPython.Bindings.PropertyEntry:
[legend]

## 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

## Detailed Description

    holds the value and the documentation string of a property

Definition at line 143 of file Bindings.py.

## Constructor & Destructor Documentation

def GaudiPython.Bindings.PropertyEntry.__init__ | ( |  | self,
|  |  | prop
| ) |  |

Definition at line 145 of file Bindings.py.

145
146 def __init__(self, prop) :
147 self._type = type(prop).__name__
148 self.__doc__ = " --- Property type is " + self.ptype()
149
150 if issubclass(type(prop),GaudiHandleProperty) :
151 self._value = prop.value() # do nothing for ATLAS' handles
152 elif issubclass(type(prop),GaudiHandleArrayProperty) :
153 self._value = prop.value() # do nothing for ATLAS' handles
154 else :
155 # for all other types try to extract the native python type
156 try: self._value = eval( prop.toString() , {} , {} )
157 except:
158 if hasattr ( prop , 'value' ) : self._value = prop.value()
159 else : self._value = prop.toString()
160
161 self.__doc__ += " --- Default value = " + str(self._value) + " --- "
162 if prop.documentation() != 'none':
163 self.__doc__ = prop.documentation() + '\\n' + self.__doc__
164 ## keep the original property
self._property = prop # property itself

## Member Function Documentation

def GaudiPython.Bindings.PropertyEntry.documentation | ( |  | self | ) |

Definition at line 172 of file Bindings.py.

172
173 def documentation(self) :
return self.__doc__

def GaudiPython.Bindings.PropertyEntry.hasDoc | ( |  | self | ) |

Definition at line 174 of file Bindings.py.

174
175 def hasDoc(self):
176 return len(self.__doc__)>0 and self.__doc__ != 'none'
177
#----iProperty class---------------------------------------------------------------------

def GaudiPython.Bindings.PropertyEntry.property | ( |  | self | ) |

Definition at line 169 of file Bindings.py.

169
170 def property(self):
171 "Return the underlying property itself "
return self._property

def GaudiPython.Bindings.PropertyEntry.ptype | ( |  | self | ) |

Definition at line 167 of file Bindings.py.

167
168 def ptype(self) :
return self._type

def GaudiPython.Bindings.PropertyEntry.value | ( |  | self | ) |

Definition at line 165 of file Bindings.py.

165
166 def value(self) :
return self._value

## Member Data Documentation

GaudiPython.Bindings.PropertyEntry.__doc__
| private

Definition at line 147 of file Bindings.py.

GaudiPython.Bindings.PropertyEntry._property
| private

keep the original property

Definition at line 164 of file Bindings.py.

GaudiPython.Bindings.PropertyEntry._type
| private

Definition at line 146 of file Bindings.py.

GaudiPython.Bindings.PropertyEntry._value
| private

Definition at line 150 of file Bindings.py.

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

- /afs/cern.ch/sw/Gaudi/releases/GAUDI/GAUDI_v25r0/GaudiPython/python/GaudiPython/Bindings.py