| # Gaudi Framework, version v21r10p1 |

Home |  | Generated: 29 Jul 2010

# GaudiHandles::GaudiHandle Class Reference

Inheritance diagram for GaudiHandles::GaudiHandle:

[legend]

List of all members.

## Public Member Functions
def | __init__
def | __repr__
def | __str__
def | toStringProperty
def | getType
def | getName
def | getGaudiHandle
def | getFullName
## Public Attributes
| typeAndName
## Static Public Attributes
string | componentType = "Unspecified"
| isPublic = True

## Detailed Description

Definition at line 15 of file GaudiHandles.py.

## Member Function Documentation

def GaudiHandles::GaudiHandle::__init__ | ( |  | self,
|  |  | typeAndName |
| ) |  |  |

Reimplemented in GaudiHandles::PublicToolHandle, GaudiHandles::PrivateToolHandle, and GaudiHandles::ServiceHandle.

Definition at line 19 of file GaudiHandles.py.

    00019                                   :
    00020         object.__init__(self)
    00021         if hasattr(typeAndName,"toStringProperty"):
    00022             # this is a GaudiHandle or equivalent
    00023             typeAndName = typeAndName.toStringProperty()
    00024         if type(typeAndName) != str:
    00025             raise TypeError("Argument to %s must be a string. Got a %s instead" % \
    00026                             ( self.__class__.__name__, type(typeAndName).__name__) )
    00027         self.typeAndName = typeAndName
    00028
        def __repr__(self):

def GaudiHandles::GaudiHandle::__repr__ | ( |  | self | ) |

Definition at line 29 of file GaudiHandles.py.

    00029                       :
    00030         return "%s(%r)" % (self.__class__.__name__,self.toStringProperty())
    00031
        def __str__(self):

def GaudiHandles::GaudiHandle::__str__ | ( |  | self | ) |

Definition at line 32 of file GaudiHandles.py.

    00032                      :
    00033         # FIXME: (Patch #1668) this creates problem with 2.5
    00034         # return "%s:%s" % (self.__class__.__name__, self.toStringProperty())
    00035         return self.toStringProperty()
    00036
    00037     #
        # Several member functions which are the same as Configurables

def GaudiHandles::GaudiHandle::toStringProperty | ( |  | self | ) |

Definition at line 40 of file GaudiHandles.py.

    00040                               :
    00041         return self.typeAndName
    00042
        def getType(self):

def GaudiHandles::GaudiHandle::getType | ( |  | self | ) |

    Get the 'type' part of the \"type/name\" string.

Definition at line 43 of file GaudiHandles.py.

    00043                      :
    00044         """Get the 'type' part of the \"type/name\" string."""
    00045         slash = self.typeAndName.find('/')
    00046         if slash != -1:
    00047             # includes name. Return part before /
    00048             return self.typeAndName[0:slash]
    00049         else:
    00050             # only type is given, return full string
    00051             return self.typeAndName
    00052
        def getName(self):

def GaudiHandles::GaudiHandle::getName | ( |  | self | ) |

    Get the 'name' part of the \"type/name\" string.
    If only a type is given, this will be returned as the name.
    If the \"type/name\" string is empty, it will return an emtpy string.

Definition at line 53 of file GaudiHandles.py.

    00053                      :
    00054         """Get the 'name' part of the \"type/name\" string.
    00055         If only a type is given, this will be returned as the name.
    00056         If the \"type/name\" string is empty, it will return an emtpy string."""
    00057         slash = self.typeAndName.find('/')
    00058         if slash != -1:
    00059             # explicit name. Return part after the /
    00060             return self.typeAndName[slash+1:]
    00061         else:
    00062             # only type is given. return type as default name
    00063             return self.typeAndName
    00064
        def getGaudiHandle(self):

def GaudiHandles::GaudiHandle::getGaudiHandle | ( |  | self | ) |

Definition at line 65 of file GaudiHandles.py.

    00065                             :
    00066         return self
    00067
        def getFullName(self):

def GaudiHandles::GaudiHandle::getFullName | ( |  | self | ) |

Definition at line 68 of file GaudiHandles.py.

    00068                          :
    00069         return self.toStringProperty()
    00070
    class PublicToolHandle(GaudiHandle):

## Member Data Documentation

string GaudiHandles::GaudiHandle::componentType = "Unspecified"`[static]`

Reimplemented in GaudiHandles::PublicToolHandle, GaudiHandles::PrivateToolHandle, and GaudiHandles::ServiceHandle.

Definition at line 16 of file GaudiHandles.py.

GaudiHandles::GaudiHandle::isPublic = True`[static]`

Reimplemented in GaudiHandles::PublicToolHandle, GaudiHandles::PrivateToolHandle, and GaudiHandles::ServiceHandle.

Definition at line 17 of file GaudiHandles.py.

GaudiHandles::GaudiHandle::typeAndName

Definition at line 27 of file GaudiHandles.py.

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

- /afs/cern.ch/sw/Gaudi/releases/GAUDI/GAUDI_v21r10p1/GaudiKernel/python/GaudiKernel/GaudiHandles.py