ATLAS Offline Software
Loading...
Searching...
No Matches
python.root_pickle.Write_Wrapper Class Reference
Collaboration diagram for python.root_pickle.Write_Wrapper:

Public Member Functions

 __init__ (self)
 write (self, s)
 getvalue (self)
 reopen (self)

Protected Attributes

 _s = ROOT.TObjString()
 _str = self._s.String()

Detailed Description

Definition at line 105 of file root_pickle.py.

Constructor & Destructor Documentation

◆ __init__()

python.root_pickle.Write_Wrapper.__init__ ( self)

Definition at line 106 of file root_pickle.py.

106 def __init__ (self):
107 self.reopen()
108

Member Function Documentation

◆ getvalue()

python.root_pickle.Write_Wrapper.getvalue ( self)

Definition at line 129 of file root_pickle.py.

129 def getvalue (self):
130 return self._s
131

◆ reopen()

python.root_pickle.Write_Wrapper.reopen ( self)

Definition at line 132 of file root_pickle.py.

132 def reopen (self):
133 self._s = ROOT.TObjString()
134 self._str = self._s.String()
135 return
136
137

◆ write()

python.root_pickle.Write_Wrapper.write ( self,
s )

Definition at line 109 of file root_pickle.py.

109 def write (self, s):
110 ss = self._str
111 log = []
112 for c in s:
113 code = c
114 if code == 0xff:
115 ss.Append (0xff)
116 ss.Append (0xfe)
117 log.append (0xff)
118 log.append (0xfe)
119 elif code == 0x00:
120 ss.Append (0xff)
121 ss.Append (0x01)
122 log.append (0xff)
123 log.append (0x01)
124 else:
125 ss.Append (code)
126 log.append (code)
127 return
128

Member Data Documentation

◆ _s

python.root_pickle.Write_Wrapper._s = ROOT.TObjString()
protected

Definition at line 133 of file root_pickle.py.

◆ _str

python.root_pickle.Write_Wrapper._str = self._s.String()
protected

Definition at line 134 of file root_pickle.py.


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