Gaudi Framework, version v21r4

Home   Generated: 7 Sep 2009

GaudiPython::Bindings::iDataSvc Class Reference

Inheritance diagram for GaudiPython::Bindings::iDataSvc:

Inheritance graph
[legend]
Collaboration diagram for GaudiPython::Bindings::iDataSvc:

Collaboration graph
[legend]

List of all members.


Detailed Description

Definition at line 316 of file Bindings.py.


Public Member Functions

def __init__
def registerObject
def unregisterObject
def retrieveObject
def __getitem__
def __setitem__
def __delitem__
def leaves
def dump
def setRoot
def clearStore

Member Function Documentation

def GaudiPython::Bindings::iDataSvc::__init__ (   self,
  name,
  idp 
)

Reimplemented from GaudiPython::Bindings::iService.

Reimplemented in GaudiPython::Bindings::iHistogramSvc, and GaudiPython::Bindings::iNTupleSvc.

Definition at line 317 of file Bindings.py.

00317                                 :
00318     iService.__init__(self, name, idp )
00319     self.__dict__['_idp'] = InterfaceCast(gbl.IDataProviderSvc)(idp)
00320     self.__dict__['_idm'] = InterfaceCast(gbl.IDataManagerSvc)(idp)
  def registerObject(self, path, obj) :

def GaudiPython::Bindings::iDataSvc::registerObject (   self,
  path,
  obj 
)

Definition at line 321 of file Bindings.py.

00321                                       :
00322     if not self._idp : raise AttributeError('C++ service %s does not exist' % self.__dict__['_name'])
00323     return self._idp.registerObject(path,obj)
  def unregisterObject(self, path) :

def GaudiPython::Bindings::iDataSvc::unregisterObject (   self,
  path 
)

Definition at line 324 of file Bindings.py.

00324                                    :
00325     if not self._idp : raise AttributeError('C++ service %s does not exist' % self.__dict__['_name'])
00326     return self._idp.unregisterObject(path)
  def retrieveObject(self, path) :

def GaudiPython::Bindings::iDataSvc::retrieveObject (   self,
  path 
)

Definition at line 327 of file Bindings.py.

00327                                  :
00328     if not self._idp : return  None
00329     return Helper.dataobject(self._idp, path)
  def __getitem__(self, path) :

def GaudiPython::Bindings::iDataSvc::__getitem__ (   self,
  path 
)

Reimplemented in GaudiPython::Bindings::iHistogramSvc, and GaudiPython::Bindings::iNTupleSvc.

Definition at line 330 of file Bindings.py.

00330                               :
00331     if not self._idp : raise IndexError('C++ service %s does not exist' % self.__dict__['_name'])
00332     return Helper.dataobject(self._idp, path)
  def __setitem__(self, path, obj) :

def GaudiPython::Bindings::iDataSvc::__setitem__ (   self,
  path,
  obj 
)

Definition at line 333 of file Bindings.py.

00333                                    :
00334     if not self._idp : raise IndexError('C++ service %s does not exist' % self.__dict__['_name'])
00335     return self._idp.registerObject(path,obj)
  def __delitem__(self, path) :

def GaudiPython::Bindings::iDataSvc::__delitem__ (   self,
  path 
)

Definition at line 336 of file Bindings.py.

00336                               :
00337     if not self._idp : raise IndexError('C++ service %s does not exist' % self.__dict__['_name'])
00338     return self._idp.unregisterObject(path)
  def leaves(self, node=None) :

def GaudiPython::Bindings::iDataSvc::leaves (   self,
  node = None 
)

Definition at line 339 of file Bindings.py.

00339                               :
00340     if not node : node = self.retrieveObject('')
00341     ll = gbl.std.vector('IRegistry*')()
00342     if type(node) is str : obj = self.retrieveObject(node)
00343     else                 : obj = node
00344     if self._idm.objectLeaves(node, ll).isSuccess() : return ll
  def dump(self, node=None) :

def GaudiPython::Bindings::iDataSvc::dump (   self,
  node = None 
)

Definition at line 345 of file Bindings.py.

00345                             :
00346     if not node : 
00347       root = self.retrieveObject('')
00348       if root : node = root.registry()
00349       else : return
00350     print node.identifier()
00351     if node.object() :
00352       for l in self.leaves(node) : self.dump(l)
  def setRoot(self, name, obj):

def GaudiPython::Bindings::iDataSvc::setRoot (   self,
  name,
  obj 
)

Definition at line 353 of file Bindings.py.

00353                               :
00354     if not self._idm : raise IndexError('C++ service %s does not exist' % self.__dict__['_name']) 
00355     return self._idm.setRoot(name,obj)
  def clearStore(self):

def GaudiPython::Bindings::iDataSvc::clearStore (   self  ) 

Definition at line 356 of file Bindings.py.

00356                       :
00357     if not self._idm : raise IndexError('C++ service %s does not exist' % self.__dict__['_name']) 
00358     return self._idm.clearStore()
00359   
00360   
00361 #----iHistogramSvc class--------------------------------------------------------------------- 
class iHistogramSvc(iDataSvc) :


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

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