| # Gaudi Framework, version v25r0 |

Home |  | Generated: Mon Feb 17 2014

- Main Page
- Related Pages
- Modules
- Namespaces
- Classes
- Files

- Class List
- Class Index
- Class Hierarchy
- Class Members

All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Public Member Functions | Public Attributes | Static Public Attributes | List of all members
GaudiKernel.GaudiHandles.GaudiHandle Class Reference
Inheritance diagram for GaudiKernel.GaudiHandles.GaudiHandle:
[legend]
Collaboration diagram for GaudiKernel.GaudiHandles.GaudiHandle:
[legend]

## 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 GaudiKernel.GaudiHandles.GaudiHandle.__init__ | ( |  | self,
|  |  | typeAndName
| ) |  |

Definition at line 19 of file GaudiHandles.py.

19
20 def __init__(self,typeAndName):
21 object.__init__(self)
22 if hasattr(typeAndName,"toStringProperty"):
23 # this is a GaudiHandle or equivalent
24 typeAndName = typeAndName.toStringProperty()
25 if type(typeAndName) != str:
26 raise TypeError("Argument to %s must be a string. Got a %s instead" % \
27 ( self.__class__.__name__, type(typeAndName).__name__) )
28 self.typeAndName = typeAndName

## Member Function Documentation

def GaudiKernel.GaudiHandles.GaudiHandle.__repr__ | ( |  | self | ) |

Definition at line 29 of file GaudiHandles.py.

29
30 def __repr__(self):
31 return "%s(%r)" % (self.__class__.__name__,self.toStringProperty())

def GaudiKernel.GaudiHandles.GaudiHandle.__str__ | ( |  | self | ) |

Definition at line 32 of file GaudiHandles.py.

32
33 def __str__(self):
34 # FIXME: (Patch #1668) this creates problem with 2.5
35 # return "%s:%s" % (self.__class__.__name__, self.toStringProperty())
36 return self.toStringProperty()

def GaudiKernel.GaudiHandles.GaudiHandle.getFullName | ( |  | self | ) |

Definition at line 68 of file GaudiHandles.py.

68
69 def getFullName(self):
70 return self.toStringProperty()

def GaudiKernel.GaudiHandles.GaudiHandle.getGaudiHandle | ( |  | self | ) |

Definition at line 65 of file GaudiHandles.py.

65
66 def getGaudiHandle(self):
67 return self

def GaudiKernel.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.

53
54 def getName(self):
55 """Get the 'name' part of the \"type/name\" string.
56 If only a type is given, this will be returned as the name.
57 If the \"type/name\" string is empty, it will return an emtpy string."""
58 slash = self.typeAndName.find('/')
59 if slash != -1:
60 # explicit name. Return part after the /
61 return self.typeAndName[slash+1:]
62 else:
63 # only type is given. return type as default name
64 return self.typeAndName

def GaudiKernel.GaudiHandles.GaudiHandle.getType | ( |  | self | ) |

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

Definition at line 43 of file GaudiHandles.py.

43
44 def getType(self):
45 """Get the 'type' part of the \"type/name\" string."""
46 slash = self.typeAndName.find('/')
47 if slash != -1:
48 # includes name. Return part before /
49 return self.typeAndName[0:slash]
50 else:
51 # only type is given, return full string
52 return self.typeAndName

def GaudiKernel.GaudiHandles.GaudiHandle.toStringProperty | ( |  | self | ) |

Definition at line 40 of file GaudiHandles.py.

40
41 def toStringProperty(self):
42 return self.typeAndName

## Member Data Documentation

string GaudiKernel.GaudiHandles.GaudiHandle.componentType "Unspecified"
| static

Definition at line 16 of file GaudiHandles.py.

GaudiKernel.GaudiHandles.GaudiHandle.isPublic True
| static

Definition at line 17 of file GaudiHandles.py.

GaudiKernel.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_v25r0/GaudiKernel/python/GaudiKernel/GaudiHandles.py