|
virtual const std::string & | store_cls () const |
|
virtual bool | stream (buffer &a_buffer) const |
|
| basket (std::ostream &a_out, bool a_byte_swap, seek a_seek_directory, const std::string &a_object_name, const std::string &a_object_title, const std::string &a_object_class, uint32 a_basket_size, bool a_verbose) |
|
virtual | ~basket () |
|
const buffer & | datbuf () const |
|
buffer & | datbuf () |
|
const int * | entry_offset () const |
|
int * | entry_offset () |
|
const int * | displacement () const |
|
int * | displacement () |
|
uint32 | nev_buf_size () const |
|
uint32 | nev () const |
|
uint32 | last () const |
|
void | set_nev (uint32 a_last, uint32 a_nev_buf_size, uint32 a_nev, const int *a_entry_offset, const int *a_displacement) |
|
bool | update (uint32 a_offset) |
|
bool | write_on_file (ifile &a_file, uint16 a_cycle, uint32 &a_nbytes) |
|
virtual | ~ibo () |
|
| key (std::ostream &a_out, seek a_seek_directory, const std::string &a_object_name, const std::string &a_object_title, const std::string &a_object_class) |
|
| key (std::ostream &a_out, ifile &a_file, seek a_seek_directory, const std::string &a_object_name, const std::string &a_object_title, const std::string &a_object_class, uint32 a_object_size) |
|
virtual | ~key () |
|
uint16 | cycle () const |
|
void | set_cycle (uint16 a_cycle) |
|
const std::string & | object_name () const |
|
const std::string & | object_title () const |
|
const std::string & | object_class () const |
|
bool | write_self (ifile &a_file) |
|
bool | write_file (ifile &a_file, uint32 &a_nbytes) |
|
void | set_number_of_bytes (uint32 a_n) |
|
uint32 | number_of_bytes () const |
|
uint32 | object_size () const |
|
seek | seek_key () const |
|
short | key_length () const |
|
char * | data_buffer () |
|
const char * | eob () const |
|
bool | to_buffer (wbuf &a_wb, bool a_verbose) const |
|
Definition at line 14 of file basket.
◆ basket() [1/2]
tools::wroot::basket::basket |
( |
std::ostream & |
a_out, |
|
|
bool |
a_byte_swap, |
|
|
seek |
a_seek_directory, |
|
|
const std::string & |
a_object_name, |
|
|
const std::string & |
a_object_title, |
|
|
const std::string & |
a_object_class, |
|
|
uint32 |
a_basket_size, |
|
|
bool |
a_verbose |
|
) |
| |
|
inline |
Definition at line 104 of file basket.
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());
◆ ~basket()
virtual tools::wroot::basket::~basket |
( |
| ) |
|
|
inlinevirtual |
◆ basket() [2/2]
tools::wroot::basket::basket |
( |
const basket & |
a_from | ) |
|
|
inlineprotected |
◆ _stream_header()
bool tools::wroot::basket::_stream_header |
( |
buffer & |
a_buffer, |
|
|
bool |
a_verbose, |
|
|
char |
a_flag = 0 |
|
) |
| const |
|
inlineprotected |
Definition at line 365 of file basket.
367 if((a_buffer.length()+l)>a_buffer.size()) {
368 if(!a_buffer.expand(a_buffer.size()+l))
return false;
370 wbuf wb(
m_out,a_buffer.byte_swap(),a_buffer.max_pos(),a_buffer.pos());
373 if(!a_buffer.write_version(2))
return false;
376 if(!a_buffer.write(
m_nev))
return false;
377 if(!a_buffer.write(
m_last))
return false;
378 if(!a_buffer.write(a_flag))
return false;
◆ datbuf() [1/2]
buffer& tools::wroot::basket::datbuf |
( |
| ) |
|
|
inline |
◆ datbuf() [2/2]
const buffer& tools::wroot::basket::datbuf |
( |
| ) |
const |
|
inline |
◆ displacement() [1/2]
int* tools::wroot::basket::displacement |
( |
| ) |
|
|
inline |
◆ displacement() [2/2]
const int* tools::wroot::basket::displacement |
( |
| ) |
const |
|
inline |
◆ entry_offset() [1/2]
int* tools::wroot::basket::entry_offset |
( |
| ) |
|
|
inline |
◆ entry_offset() [2/2]
const int* tools::wroot::basket::entry_offset |
( |
| ) |
const |
|
inline |
◆ header_record_size()
uint32 tools::wroot::basket::header_record_size |
( |
uint32 |
a_version | ) |
const |
|
inlineprotected |
Definition at line 352 of file basket.
356 nbytes +=
sizeof(short);
361 nbytes +=
sizeof(char);
◆ last()
uint32 tools::wroot::basket::last |
( |
| ) |
const |
|
inline |
◆ nev()
uint32 tools::wroot::basket::nev |
( |
| ) |
const |
|
inline |
◆ nev_buf_size()
uint32 tools::wroot::basket::nev_buf_size |
( |
| ) |
const |
|
inline |
◆ operator=()
basket& tools::wroot::basket::operator= |
( |
const basket & |
a_from | ) |
|
|
inlineprotected |
◆ s_class()
static const std::string& tools::wroot::basket::s_class |
( |
| ) |
|
|
inlinestatic |
Definition at line 17 of file basket.
18 static const std::string s_v(
"tools::wroot::basket");
◆ set_nev()
void tools::wroot::basket::set_nev |
( |
uint32 |
a_last, |
|
|
uint32 |
a_nev_buf_size, |
|
|
uint32 |
a_nev, |
|
|
const int * |
a_entry_offset, |
|
|
const int * |
a_displacement |
|
) |
| |
|
inline |
◆ store_cls()
virtual const std::string& tools::wroot::basket::store_cls |
( |
| ) |
const |
|
inlinevirtual |
◆ stream()
virtual bool tools::wroot::basket::stream |
( |
buffer & |
a_buffer | ) |
const |
|
inlinevirtual |
Implements tools::wroot::ibo.
Definition at line 26 of file basket.
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."
69 const_cast<basket&
>(*this).m_last = _last;
88 m_out <<
"tools::wroot::basket::stream :"
89 <<
" m_data.displace_mapped() failed."
95 buffer bref(
m_out,a_buffer.byte_swap(),256);
99 if(!a_buffer.write_fast_array(bref.buf(),bref.length()))
return false;
◆ update()
bool tools::wroot::basket::update |
( |
uint32 |
a_offset | ) |
|
|
inline |
Definition at line 205 of file basket.
211 m_out <<
"tools::wroot::basket::update : realloc failed." << std::endl;
216 m_out <<
"tools::wroot::basket::update : realloc failed." << std::endl;
◆ write_on_file()
bool tools::wroot::basket::write_on_file |
( |
ifile & |
a_file, |
|
|
uint16 |
a_cycle, |
|
|
uint32 & |
a_nbytes |
|
) |
| |
|
inline |
Definition at line 228 of file basket.
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;
307 a_file.compress_buffer(
m_data,kbuf,klen,kdelete);
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;
328 {buffer bref(
m_out,a_file.byte_swap(),256);
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;
◆ m_data
buffer tools::wroot::basket::m_data |
|
protected |
◆ m_displacement
int* tools::wroot::basket::m_displacement |
|
protected |
◆ m_entry_offset
int* tools::wroot::basket::m_entry_offset |
|
protected |
◆ m_last
uint32 tools::wroot::basket::m_last |
|
protected |
◆ m_nev
uint32 tools::wroot::basket::m_nev |
|
protected |
◆ m_nev_buf_size
uint32 tools::wroot::basket::m_nev_buf_size |
|
protected |
◆ m_verbose
bool tools::wroot::basket::m_verbose |
|
protected |
The documentation for this class was generated from the following file:
- /Users/barrand/private/dev/softinex/g4tools/g4tools/tools/wroot/basket