| Classes | Job Modules | Data Objects | Services | Algorithms | Tools | Packages | Directories | Tracs |

In This Package:

GaudiPython::Bindings::InterfaceCast Class Reference

Inheritance diagram for GaudiPython::Bindings::InterfaceCast:
[legend]
List of all members.

Public Member Functions

def __init__
def __call__

Public Attributes

 type

Static Public Attributes

 cast = __call__

Detailed Description

Helper class to obtain the adequeste interface from a component
    by using the Gaudi queryInterface() mechanism 

Definition at line 65 of file Bindings.py.


Member Function Documentation

def GaudiPython::Bindings::InterfaceCast::__init__ (   self,
  t 
)

Reimplemented in GaudiPython::Bindings::Interface.

Definition at line 67 of file Bindings.py.

00068                          :
00069     if type(t) is str : t = PyCintex.makeClass(t)
    self.type = t

def GaudiPython::Bindings::InterfaceCast::__call__ (   self,
  obj 
)

Definition at line 70 of file Bindings.py.

00071                           :
00072     if obj :
00073       ip = PyCintex.libPyROOT.MakeNullPointer(self.type)
00074       if obj.queryInterface(self.type.interfaceID(), ip).isSuccess() : 
00075         return ip
    return None


Member Data Documentation

GaudiPython::Bindings::InterfaceCast::cast = __call__ [static]

Definition at line 76 of file Bindings.py.

GaudiPython::Bindings::InterfaceCast::type

Definition at line 69 of file Bindings.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 Mon Apr 11 19:58:57 2011 for GaudiPython by doxygen 1.4.7