| # Gaudi Framework, version v22r2 |

Home |  | Generated: Tue May 10 2011

Public Member Functions | Public Attributes | Static Public Attributes

# GaudiHandles::GaudiHandle Class Reference

Inheritance diagram for GaudiHandles::GaudiHandle:
[legend]
Collaboration 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.

## Constructor & Destructor Documentation

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

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

Definition at line 19 of file GaudiHandles.py.

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

## Member Function Documentation

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

Definition at line 29 of file GaudiHandles.py.

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

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

Definition at line 32 of file GaudiHandles.py.

    00033                      :
    00034         # FIXME: (Patch #1668) this creates problem with 2.5
    00035         # return "%s:%s" % (self.__class__.__name__, self.toStringProperty())
    00036         return self.toStringProperty()

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

Definition at line 68 of file GaudiHandles.py.

    00069                          :
    00070         return self.toStringProperty()

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

Definition at line 65 of file GaudiHandles.py.

    00066                             :
    00067         return 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.

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

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

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

Definition at line 43 of file GaudiHandles.py.

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

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

Definition at line 40 of file GaudiHandles.py.

    00041                               :
    00042         return self.typeAndName

## 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 19 of file GaudiHandles.py.

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

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

All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Defines