Go to the documentation of this file.
4 #ifndef tools_wroot_basket
5 #define tools_wroot_basket
18 static const std::string s_v(
"tools::wroot::basket");
23 static const std::string s_v(
"TBasket");
49 m_out <<
"tools::wroot::basket::stream :"
50 <<
" m_seek_key is not null (" <<
m_seek_key <<
")."
55 m_out <<
"tools::wroot::basket::stream :"
56 <<
" m_last is not null."
61 m_out <<
"tools::wroot::basket::stream :"
62 <<
" m_entry_offset is null."
88 m_out <<
"tools::wroot::basket::stream :"
89 <<
" m_data.displace_mapped() failed."
106 seek a_seek_directory,
107 const std::string& a_object_name,
108 const std::string& a_object_title,
109 const std::string& a_object_class,
110 uint32 a_basket_size,
bool a_verbose)
111 :
parent(a_out,a_seek_directory,a_object_name,a_object_title,a_object_class)
113 ,
m_data(a_out,a_byte_swap,a_basket_size)
121 mem::increment(
s_class().c_str());
145 mem::decrement(
s_class().c_str());
161 mem::increment(
s_class().c_str());
211 m_out <<
"tools::wroot::basket::update : realloc failed." << std::endl;
216 m_out <<
"tools::wroot::basket::update : realloc failed." << std::endl;
236 m_out <<
"tools::wroot::basket::write_on_file :"
237 <<
" m_seek_key should be 0 (" <<
m_seek_key <<
")."
244 m_out <<
"tools::wroot::basket::write_on_file : "
245 <<
" we should not pass here (1)."
306 bool kdelete =
false;
310 m_out <<
"tools::wroot::basket::write_on_file :"
311 <<
" compression anomaly "
315 if(kdelete)
delete [] kbuf;
320 m_out <<
"tools::wroot::basket::write_on_file :"
321 <<
" initialize() failed."
323 if(kdelete)
delete [] kbuf;
331 m_out <<
"tools::wroot::basket::write_on_file :"
332 <<
" key len anomaly " << bref.
length()
335 if(kdelete)
delete [] kbuf;
341 if(kdelete)
delete [] kbuf;
356 nbytes +=
sizeof(short);
361 nbytes +=
sizeof(char);
368 if(!a_buffer.
expand(a_buffer.
size()+l))
return false;
378 if(!a_buffer.
write(a_flag))
return false;