Go to the documentation of this file.
4 #ifndef tools_wroot_key
5 #define tools_wroot_key
23 static uint32 class_version() {
return 2;}
24 static const std::string& s_class() {
25 static const std::string s_v(
"tools::wroot::key");
32 return uint32(x.size()+
sizeof(
unsigned char)+
sizeof(
int));
34 return uint32(x.size()+
sizeof(
unsigned char));
37 key(std::ostream& a_out,
38 seek a_seek_directory,
39 const std::string& a_object_name,
40 const std::string& a_object_title,
41 const std::string& a_object_class)
59 mem::increment(s_class().c_str());
71 key(std::ostream& a_out,
73 seek a_seek_directory,
74 const std::string& a_object_name,
75 const std::string& a_object_title,
76 const std::string& a_object_class,
95 mem::increment(s_class().c_str());
115 mem::decrement(s_class().c_str());
121 mem::increment(s_class().c_str());
150 m_out <<
"tools::wroot::key::write_file :"
151 <<
" writing " <<
m_nbytes <<
" bytes"
182 unsigned int _date = 0;
183 if(!a_wb.
write(_date))
return false;
191 m_out <<
"tools::wroot::key::to_buffer :"
192 <<
" attempt to write big seek "
199 m_out <<
"tools::wroot::key::to_buffer :"
200 <<
" (2) attempt to write big seek "
211 m_out <<
"tools::wroot::key::to_buffer :"
227 nbytes +=
sizeof(short);
229 nbytes +=
sizeof(
date);
233 nbytes +=
sizeof(
seek);
234 nbytes +=
sizeof(
seek);