ARB
|
#include <ps_filebuffer.hxx>
Public Member Functions | |
void | put (const void *_data, int _length) |
void | get (void *_data, int _length) |
void | peek (void *_data, int _length) |
void | put_char (unsigned char _c) |
void | get_char (unsigned char &_c) |
unsigned char | get_char () |
void | put_ulong (unsigned long int _ul) |
void | get_ulong (unsigned long int &_ul) |
void | put_long (long int _l) |
void | get_long (long int &_l) |
void | put_uint (unsigned int _ui) |
void | get_uint (unsigned int &_ui) |
void | put_int (int _i) |
void | get_int (int &_i) |
bool | store_pos () |
bool | restore_pos () |
bool | empty () |
void | clear () |
bool | isReadonly () |
void | flush () |
void | reinit (const char *name, bool _readonly) |
PS_FileBuffer (const char *_name, bool _readonly) | |
~PS_FileBuffer () | |
Static Public Attributes | |
static const bool | READONLY = true |
static const bool | WRITEONLY = false |
static const int | BUFFER_SIZE = 4096 |
Definition at line 31 of file ps_filebuffer.hxx.
PS_FileBuffer::PS_FileBuffer | ( | const char * | _name, |
bool | _readonly | ||
) |
Definition at line 189 of file ps_filebuffer.cxx.
References buffer, BUFFER_SIZE, and CRASH.
|
inline |
Definition at line 188 of file ps_filebuffer.hxx.
void PS_FileBuffer::put | ( | const void * | _data, |
int | _length | ||
) |
Definition at line 6 of file ps_filebuffer.cxx.
References buffer, BUFFER_SIZE, and CRASH.
Referenced by main(), PS_BitMap::printGNUplot(), PS_GNUPlot(), PS_BitSet::save(), PS_Node::save(), and PS_Node::saveASCII().
void PS_FileBuffer::get | ( | void * | _data, |
int | _length | ||
) |
Definition at line 28 of file ps_filebuffer.cxx.
References buffer, BUFFER_SIZE, and CRASH.
Referenced by PS_Node::append(), PS_BitSet::load(), PS_Node::load(), main(), PS_Node::read(), and runtests().
void PS_FileBuffer::peek | ( | void * | _data, |
int | _length | ||
) |
Definition at line 111 of file ps_filebuffer.cxx.
References buffer, BUFFER_SIZE, and CRASH.
|
inline |
Definition at line 66 of file ps_filebuffer.hxx.
References CRASH.
Referenced by main(), PS_BitSet::save(), PS_BitMap::save(), and PS_Node::saveASCII().
|
inline |
Definition at line 81 of file ps_filebuffer.hxx.
Referenced by PS_BitSet::load(), and PS_BitMap::load().
|
inline |
Definition at line 92 of file ps_filebuffer.hxx.
Definition at line 46 of file ps_filebuffer.cxx.
Referenced by main(), and PS_Candidate::save().
Definition at line 76 of file ps_filebuffer.cxx.
References long.
Referenced by PS_Candidate::load(), and main().
Definition at line 106 of file ps_filebuffer.hxx.
Referenced by PS_print_and_evaluate_map(), PS_BitSet::save(), and PS_BitMap::save().
Definition at line 116 of file ps_filebuffer.hxx.
References long.
Referenced by PS_BitSet::load(), PS_BitMap::load(), and main().
|
inline |
Definition at line 128 of file ps_filebuffer.hxx.
Referenced by main(), PS_Node::save(), and PS_Candidate::save().
|
inline |
Definition at line 131 of file ps_filebuffer.hxx.
Referenced by PS_Node::append(), PS_Node::load(), PS_Candidate::load(), main(), and PS_Node::read().
|
inline |
Definition at line 136 of file ps_filebuffer.hxx.
Referenced by main(), PS_print_and_evaluate_map(), PS_Node::save(), and PS_Candidate::save().
|
inline |
Definition at line 139 of file ps_filebuffer.hxx.
Referenced by PS_Node::append(), PS_Node::load(), PS_Candidate::load(), main(), and PS_Node::read().
|
inline |
Definition at line 149 of file ps_filebuffer.hxx.
|
inline |
Definition at line 155 of file ps_filebuffer.hxx.
|
inline |
Definition at line 165 of file ps_filebuffer.hxx.
|
inline |
Definition at line 170 of file ps_filebuffer.hxx.
Referenced by FINAL_TYPE< SEQTYPE >::~PS_Database().
|
inline |
Definition at line 175 of file ps_filebuffer.hxx.
Referenced by FINAL_TYPE< SEQTYPE >::isReadonly(), PS_BitMap::load(), FINAL_TYPE< SEQTYPE >::load(), PS_BitSet::save(), PS_BitMap::save(), and FINAL_TYPE< SEQTYPE >::save().
void PS_FileBuffer::flush | ( | ) |
Definition at line 126 of file ps_filebuffer.cxx.
Referenced by PS_BitMap::printGNUplot().
void PS_FileBuffer::reinit | ( | const char * | name, |
bool | _readonly | ||
) |
Definition at line 153 of file ps_filebuffer.cxx.
References CRASH.
Referenced by main(), PS_GNUPlot(), and runtests().
|
static |
Definition at line 52 of file ps_filebuffer.hxx.
Referenced by main(), and runtests().
|
static |
Definition at line 53 of file ps_filebuffer.hxx.
Referenced by main(), PS_GNUPlot(), PS_print_and_evaluate_map(), runtests(), and FINAL_TYPE< SEQTYPE >::saveTo().
|
static |
Definition at line 54 of file ps_filebuffer.hxx.
Referenced by PS_BitSet::load(), PS_FileBuffer(), and PS_BitSet::save().