| The Gaudi Framework v32r1 (f65d50dc)

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__ (self, typeAndName)
def | __repr__ (self)
def | __str__ (self)
def | toStringProperty (self)
def | getType (self)
def | getName (self)
def | getGaudiHandle (self)
def | getFullName (self)

## Public Attributes
| typeAndName

## Static Public Attributes
string | componentType = "Unspecified"
bool | isPublic = True

## Detailed Description

Definition at line 17 of file GaudiHandles.py.

## Constructor & Destructor Documentation

## ◆ __init__()

def GaudiKernel.GaudiHandles.GaudiHandle.__init__ | ( |  | self,
|  |  | typeAndName
| ) |  |

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

Definition at line 21 of file GaudiHandles.py.

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

## Member Function Documentation

## ◆ __repr__()

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

Definition at line 32 of file GaudiHandles.py.

32 def __repr__(self):
33 return "%s(%r)" % (self.__class__.__name__, self.toStringProperty())
34
GaudiPython.HistoUtils.__repr__
__repr__
Definition: HistoUtils.py:508

## ◆ __str__()

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

Definition at line 35 of file GaudiHandles.py.

35 def __str__(self):
36 # FIXME: (Patch #1668) this creates problem with 2.5
37 # return "%s:%s" % (self.__class__.__name__, self.toStringProperty())
38 return self.toStringProperty()
39
GaudiPython.HistoUtils.__str__
__str__
Definition: HistoUtils.py:510

## ◆ getFullName()

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

Definition at line 71 of file GaudiHandles.py.

71 def getFullName(self):
72 return self.toStringProperty()
73
74

## ◆ getGaudiHandle()

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

Definition at line 68 of file GaudiHandles.py.

68 def getGaudiHandle(self):
69 return self
70

## ◆ getName()

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

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

## ◆ getType()

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

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

Definition at line 46 of file GaudiHandles.py.

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

## ◆ toStringProperty()

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

Definition at line 43 of file GaudiHandles.py.

43 def toStringProperty(self):
44 return self.typeAndName
45

## Member Data Documentation

## ◆ componentType

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

Definition at line 18 of file GaudiHandles.py.

## ◆ isPublic

bool GaudiKernel.GaudiHandles.GaudiHandle.isPublic = True
| static

Definition at line 19 of file GaudiHandles.py.

## ◆ typeAndName

GaudiKernel.GaudiHandles.GaudiHandle.typeAndName

Definition at line 30 of file GaudiHandles.py.

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

- GaudiKernel/python/GaudiKernel/GaudiHandles.py