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 109 of file root_pickle.py.

Constructor & Destructor Documentation

◆ __init__()

python.root_pickle.Write_Wrapper.__init__ ( self)

Definition at line 110 of file root_pickle.py.

110 def __init__ (self):
111 self.reopen()
112

Member Function Documentation

◆ getvalue()

python.root_pickle.Write_Wrapper.getvalue ( self)

Definition at line 133 of file root_pickle.py.

133 def getvalue (self):
134 return self._s
135

◆ reopen()

python.root_pickle.Write_Wrapper.reopen ( self)

Definition at line 136 of file root_pickle.py.

136 def reopen (self):
137 self._s = ROOT.TObjString()
138 self._str = self._s.String()
139 return
140
141

◆ write()

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

Definition at line 113 of file root_pickle.py.

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

Member Data Documentation

◆ _s

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

Definition at line 137 of file root_pickle.py.

◆ _str

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

Definition at line 138 of file root_pickle.py.


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