The Gaudi Framework  v41r0 (bdbe7744)
Loading...
Searching...
No Matches
GaudiKernel.DataHandle.DataHandle Class Reference

Public Member Functions

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

Public Attributes

 Path = path
 Mode = mode
 Type = _type
 IsCondition = isCond

Static Private Attributes

tuple __slots__ = ("Path", "Mode", "Type", "IsCondition")
 __hash__ = None

Detailed Description

Definition at line 14 of file DataHandle.py.

Constructor & Destructor Documentation

◆ __init__()

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__()

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 f"Unknown equality check: type={type(other)!r}, repr={other!r}"
45 )
46

◆ __getstate__()

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__()

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__()

GaudiKernel.DataHandle.DataHandle.__opt_value__ ( self)

Definition at line 77 of file DataHandle.py.

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

◆ __repr__()

GaudiKernel.DataHandle.DataHandle.__repr__ ( self)

Definition at line 56 of file DataHandle.py.

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

◆ __setstate__()

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__()

GaudiKernel.DataHandle.DataHandle.__str__ ( self)

Definition at line 53 of file DataHandle.py.

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

◆ isCondition()

GaudiKernel.DataHandle.DataHandle.isCondition ( self)

Definition at line 74 of file DataHandle.py.

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

◆ mode()

GaudiKernel.DataHandle.DataHandle.mode ( self)

Definition at line 68 of file DataHandle.py.

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

◆ path()

GaudiKernel.DataHandle.DataHandle.path ( self)

Definition at line 65 of file DataHandle.py.

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

◆ toStringProperty()

GaudiKernel.DataHandle.DataHandle.toStringProperty ( self)

Definition at line 62 of file DataHandle.py.

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

◆ type()

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__ = None
staticprivate

Definition at line 17 of file DataHandle.py.

◆ __slots__

tuple GaudiKernel.DataHandle.DataHandle.__slots__ = ("Path", "Mode", "Type", "IsCondition")
staticprivate

Definition at line 15 of file DataHandle.py.

◆ IsCondition

GaudiKernel.DataHandle.DataHandle.IsCondition = isCond

Definition at line 24 of file DataHandle.py.

◆ Mode

GaudiKernel.DataHandle.DataHandle.Mode = mode

Definition at line 22 of file DataHandle.py.

◆ Path

GaudiKernel.DataHandle.DataHandle.Path = path

Definition at line 21 of file DataHandle.py.

◆ Type

GaudiKernel.DataHandle.DataHandle.Type = _type

Definition at line 23 of file DataHandle.py.


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