Gaudi Framework, version v24r2

Home   Generated: Wed Dec 4 2013
 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:
Inheritance graph
[legend]
Collaboration diagram for GaudiPython.Bindings.PropertyEntry:
Collaboration graph
[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 129 of file Bindings.py.

Constructor & Destructor Documentation

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

Definition at line 131 of file Bindings.py.

132  def __init__(self, prop) :
133  self._type = type(prop).__name__
134  self.__doc__ = " --- Property type is " + self.ptype()
135 
136  if issubclass(type(prop),GaudiHandleProperty) :
137  self._value = prop.value() # do nothing for ATLAS' handles
138  elif issubclass(type(prop),GaudiHandleArrayProperty) :
139  self._value = prop.value() # do nothing for ATLAS' handles
140  else :
141  # for all other types try to extract the native python type
142  try: self._value = eval( prop.toString() , {} , {} )
143  except:
144  if hasattr ( prop , 'value' ) : self._value = prop.value()
145  else : self._value = prop.toString()
146 
147  self.__doc__ += " --- Default value = " + str(self._value) + " --- "
148  if prop.documentation() != 'none':
149  self.__doc__ = prop.documentation() + '\\n' + self.__doc__
150  ## keep the original property
self._property = prop # property itself

Member Function Documentation

def GaudiPython.Bindings.PropertyEntry.documentation (   self)

Definition at line 158 of file Bindings.py.

159  def documentation(self) :
return self.__doc__
def GaudiPython.Bindings.PropertyEntry.hasDoc (   self)

Definition at line 160 of file Bindings.py.

161  def hasDoc(self):
162  return len(self.__doc__)>0 and self.__doc__ != 'none'
163 
#----iProperty class---------------------------------------------------------------------
def GaudiPython.Bindings.PropertyEntry.property (   self)

Definition at line 155 of file Bindings.py.

156  def property(self):
157  "Return the underlying property itself "
return self._property
def GaudiPython.Bindings.PropertyEntry.ptype (   self)

Definition at line 153 of file Bindings.py.

154  def ptype(self) :
return self._type
def GaudiPython.Bindings.PropertyEntry.value (   self)

Definition at line 151 of file Bindings.py.

152  def value(self) :
return self._value

Member Data Documentation

GaudiPython.Bindings.PropertyEntry.__doc__
private

Definition at line 133 of file Bindings.py.

GaudiPython.Bindings.PropertyEntry._property
private

keep the original property

Definition at line 150 of file Bindings.py.

GaudiPython.Bindings.PropertyEntry._type
private

Definition at line 132 of file Bindings.py.

GaudiPython.Bindings.PropertyEntry._value
private

Definition at line 136 of file Bindings.py.


The documentation for this class was generated from the following file:
Generated at Wed Dec 4 2013 14:33:22 for Gaudi Framework, version v24r2 by Doxygen version 1.8.2 written by Dimitri van Heesch, © 1997-2004