Root streamer that calls our converter when reading in non-split mode.
More...
#include <TConverterStreamer.h>
Root streamer that calls our converter when reading in non-split mode.
Definition at line 43 of file TConverterStreamer.h.
◆ CheckSumMap
◆ Payload
◆ TConverterStreamer()
TConverterStreamer::TConverterStreamer |
( |
const CheckSumMap & |
convmap, |
|
|
TClass * |
cls |
|
) |
| |
Constructor.
- Parameters
-
convmap | Map from checksums to converter instances. |
cls | The transient class that we're reading. |
Definition at line 24 of file TConverterStreamer.cxx.
◆ FindVersion()
void TConverterStreamer::FindVersion |
( |
TBuffer & |
buf, |
|
|
UInt_t & |
startpos, |
|
|
UInt_t & |
bcnt, |
|
|
Version_t & |
version |
|
) |
| |
|
private |
Read the initial byte count/version from an object.
- Parameters
-
| buf | The Root I/O buffer. |
[out] | startpos | The starting position of the object. |
[out] | bcnt | The length of the object, in bytes. |
[out] | version | The version of the object being read. |
As a side effect, this sets fStreamerChecksum
.
Definition at line 75 of file TConverterStreamer.cxx.
80 const UInt_t kByteCountMask = 0x40000000;
83 startpos =
buf.Length();
102 if (!(
v.cnt & kByteCountMask)) {
104 buf.SetBufferOffset(
buf.Length() -
sizeof(UInt_t));
107 bcnt = (
v.cnt & ~kByteCountMask);
131 fClass->GetStreamerInfos()->GetLast() > 1)
133 const TList*
list =
parent->GetStreamerInfoList();
134 const TStreamerInfo*
local = (TStreamerInfo*)
list->FindObject(
fClass->GetName());
◆ operator()()
void TConverterStreamer::operator() |
( |
TBuffer & |
b, |
|
|
void * |
obj |
|
) |
| |
|
virtual |
◆ R__FindStreamerInfoVersion()
Version_t TConverterStreamer::R__FindStreamerInfoVersion |
( |
const TClass * |
cl, |
|
|
UInt_t |
checksum |
|
) |
| |
|
private |
Translate a Root checksum to a class version number.
- Parameters
-
cl | The class being examined. |
checksum | The checksum to translate. |
- Returns
- The class version number of
cl
with checksum checksum
, or 0 if there's no match.
Definition at line 158 of file TConverterStreamer.cxx.
167 Int_t ninfos =
cl->GetStreamerInfos()->GetEntriesFast();
168 for (Int_t
i = 1;
i < ninfos;
i++) {
171 TStreamerInfo*
info = (TStreamerInfo*)
cl->GetStreamerInfos()->At(
i);
175 if (
info->GetCheckSum() == checksum) {
◆ fClass
TClass* TConverterStreamer::fClass |
|
private |
◆ fConvmap
◆ fLastFile
TFile* TConverterStreamer::fLastFile |
|
private |
◆ fStreamerChecksum
UInt_t TConverterStreamer::fStreamerChecksum |
|
private |
The documentation for this class was generated from the following files: