The Gaudi Framework  v37r0 (b608885e)
GaudiKernel.DataHandle.DataHandle Class Reference
Inheritance diagram for GaudiKernel.DataHandle.DataHandle:
Collaboration diagram for GaudiKernel.DataHandle.DataHandle:

Public Member Functions

def __init__ (self, path, mode="R", _type="unknown_t", isCond=False)
 
def __getstate__ (self)
 
def __setstate__ (self, state)
 
def __eq__ (self, other)
 
def __ne__ (self, other)
 
def __str__ (self)
 
def __repr__ (self)
 
def toStringProperty (self)
 
def path (self)
 
def mode (self)
 
def type (self)
 
def isCondition (self)
 
def __opt_value__ (self)
 

Public Attributes

 Path
 
 Mode
 
 Type
 
 IsCondition
 

Static Private Attributes

 __slots__
 
 __hash__
 

Detailed Description

Definition at line 14 of file DataHandle.py.

Constructor & Destructor Documentation

◆ __init__()

def GaudiKernel.DataHandle.DataHandle.__init__ (   self,
  path,
  mode = "R",
  _type = "unknown_t",
  isCond = False 
)

Definition at line 19 of file DataHandle.py.

19  def __init__(self, path, mode="R", _type="unknown_t", isCond=False):
20  object.__init__(self)
21  self.Path = path
22  self.Mode = mode
23  self.Type = _type
24  self.IsCondition = isCond
25 

Member Function Documentation

◆ __eq__()

def GaudiKernel.DataHandle.DataHandle.__eq__ (   self,
  other 
)
Need especially Configurable.isPropertySet when checked against default.

Definition at line 33 of file DataHandle.py.

33  def __eq__(self, other):
34  """
35  Need especially Configurable.isPropertySet when checked against default.
36  """
37  if isinstance(other, DataHandle):
38  return self.__getstate__() == other.__getstate__()
39  if isinstance(other, str):
40  return self.Path == other
41  if other is None:
42  return False
43  raise ValueError(
44  "Unknown equality check: type=%r, repr=%r" % (type(other), other)
45  )
46 

◆ __getstate__()

def GaudiKernel.DataHandle.DataHandle.__getstate__ (   self)

Definition at line 26 of file DataHandle.py.

26  def __getstate__(self):
27  return {s: getattr(self, s) for s in self.__slots__}
28 

◆ __ne__()

def GaudiKernel.DataHandle.DataHandle.__ne__ (   self,
  other 
)
This is mandatory if __eq__ is defined.

Definition at line 47 of file DataHandle.py.

47  def __ne__(self, other):
48  """
49  This is mandatory if __eq__ is defined.
50  """
51  return not self == other
52 

◆ __opt_value__()

def GaudiKernel.DataHandle.DataHandle.__opt_value__ (   self)

Definition at line 77 of file DataHandle.py.

77  def __opt_value__(self):
78  return repr(str(self))

◆ __repr__()

def GaudiKernel.DataHandle.DataHandle.__repr__ (   self)

Definition at line 56 of file DataHandle.py.

56  def __repr__(self):
57  args = "'%s','%s','%s'" % (self.Path, self.Mode, self.Type)
58  if self.IsCondition:
59  args += ",%s" % self.IsCondition
60  return "%s(%s)" % (self.__class__.__name__, args)
61 

◆ __setstate__()

def GaudiKernel.DataHandle.DataHandle.__setstate__ (   self,
  state 
)

Definition at line 29 of file DataHandle.py.

29  def __setstate__(self, state):
30  for s in state:
31  setattr(self, s, state[s])
32 

◆ __str__()

def GaudiKernel.DataHandle.DataHandle.__str__ (   self)

Definition at line 53 of file DataHandle.py.

53  def __str__(self):
54  return self.Path
55 

◆ isCondition()

def GaudiKernel.DataHandle.DataHandle.isCondition (   self)

Definition at line 74 of file DataHandle.py.

74  def isCondition(self):
75  return self.IsCondition
76 

◆ mode()

def GaudiKernel.DataHandle.DataHandle.mode (   self)

Definition at line 68 of file DataHandle.py.

68  def mode(self):
69  return self.Mode
70 

◆ path()

def GaudiKernel.DataHandle.DataHandle.path (   self)

Definition at line 65 of file DataHandle.py.

65  def path(self):
66  return self.Path
67 

◆ toStringProperty()

def GaudiKernel.DataHandle.DataHandle.toStringProperty (   self)

Definition at line 62 of file DataHandle.py.

62  def toStringProperty(self):
63  return self.__str__()
64 

◆ type()

def GaudiKernel.DataHandle.DataHandle.type (   self)

Definition at line 71 of file DataHandle.py.

71  def type(self):
72  return self.Type
73 

Member Data Documentation

◆ __hash__

GaudiKernel.DataHandle.DataHandle.__hash__
staticprivate

Definition at line 17 of file DataHandle.py.

◆ __slots__

GaudiKernel.DataHandle.DataHandle.__slots__
staticprivate

Definition at line 15 of file DataHandle.py.

◆ IsCondition

GaudiKernel.DataHandle.DataHandle.IsCondition

Definition at line 24 of file DataHandle.py.

◆ Mode

GaudiKernel.DataHandle.DataHandle.Mode

Definition at line 22 of file DataHandle.py.

◆ Path

GaudiKernel.DataHandle.DataHandle.Path

Definition at line 21 of file DataHandle.py.

◆ Type

GaudiKernel.DataHandle.DataHandle.Type

Definition at line 23 of file DataHandle.py.


The documentation for this class was generated from the following file:
GaudiAlg.HistoUtils.path
path
Definition: HistoUtils.py:961
GaudiAlg.HistoUtils.__str__
__str__
Definition: HistoUtils.py:539
gaudirun.type
type
Definition: gaudirun.py:162
GaudiAlg.HistoUtils.__repr__
__repr__
Definition: HistoUtils.py:536