Go to the documentation of this file.
4 #ifndef tools_rroot_basket
5 #define tools_rroot_basket
19 static uint32 kDisplacementMask() {
return 0xFF000000;}
22 static const std::string s_v(
"tools::rroot::basket");
26 virtual void*
cast(
const std::string& a_class)
const {
27 if(
void* p = cmp_cast<basket>(
this,a_class))
return p;
34 if(
void* p = cmp_cast<basket>(
this,a_class)) {
return p;}
50 if(!a_buffer.
read(fBufferSize))
return false;
55 if(!a_buffer.
read(flag))
return false;
77 if(!flag)
return true;
80 if( (flag!=1) &&(flag!=2) &&
81 (flag!=11)&&(flag!=12) &&
82 (flag!=41)&&(flag!=42) &&
83 (flag!=51)&&(flag!=52) ) {
84 m_out <<
"tools::rroot::basket::stream :"
85 <<
" bad flag " << (int)flag
94 m_out <<
"tools::rroot::basket::stream :"
95 <<
" m_nev_buf_size is zero." << std::endl;
99 m_out <<
"tools::rroot::basket::stream :"
100 <<
" m_nev>m_nev_buf_size !"
101 <<
" m_nev " <<
m_nev
114 m_out <<
"tools::rroot::basket::stream :"
115 <<
" m_entry_offset read len mismatch."
117 <<
" m_nev " <<
m_nev
138 m_out <<
"tools::rroot::basket::stream :"
139 <<
" m_displacement read len mismatch."
141 <<
" m_nev " <<
m_nev
150 if((flag==1)||(flag>10)) {
155 char* _buf =
new char[fBufferSize];
157 m_out <<
"tools::rroot::basket::stream :"
158 <<
" can't alloc " << fBufferSize << std::endl;
170 if(!a_buffer.
read_array<
char>(fBufferSize,_buf,n)) {
195 mem::increment(
s_class().c_str());
199 :
parent(a_out,a_pos,a_nbytes)
207 mem::increment(
s_class().c_str());
213 mem::decrement(
s_class().c_str());
227 mem::increment(
s_class().c_str());
232 m_out <<
"tools::rroot::basket::basket(cpcstor) :"
233 <<
" can't alloc " << a_from.
m_nev <<
"."
243 m_out <<
"tools::rroot::basket::basket(cpcstor) :"
244 <<
" can't alloc " << a_from.
m_nev <<
"."
255 if(&a_from==
this)
return *
this;
269 m_out <<
"tools::rroot::basket::operator=() :"
270 <<
" can't alloc " << a_from.
m_nev <<
"."
280 m_out <<
"tools::rroot::basket::operator=() :"
281 <<
" can't alloc " << a_from.
m_nev <<
"."
310 m_out <<
"tools::rroot::basket::read_offset_tables :"
311 <<
" read_array failed."
316 m_out <<
"tools::rroot::basket::read_offset_tables :"
317 <<
" m_entry_offset read len mismatch."
319 <<
" m_nev " <<
m_nev
331 m_out <<
"tools::rroot::basket::read_offset_tables :"
332 <<
" readArray(2) failed."
337 m_out <<
"tools::rroot::basket::read_offset_tables :"
338 <<
" m_displacement read len mismatch."
340 <<
" m_nev " <<
m_nev