ARB
Public Member Functions | Static Public Attributes | List of all members
PS_FileBuffer Class Reference

#include <ps_filebuffer.hxx>

Inheritance diagram for PS_FileBuffer:
Inheritance graph
[legend]
Collaboration diagram for PS_FileBuffer:
Collaboration graph
[legend]

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
 

Detailed Description

Definition at line 31 of file ps_filebuffer.hxx.

Constructor & Destructor Documentation

PS_FileBuffer::PS_FileBuffer ( const char _name,
bool  _readonly 
)

Definition at line 189 of file ps_filebuffer.cxx.

References buffer, BUFFER_SIZE, and CRASH.

PS_FileBuffer::~PS_FileBuffer ( )
inline

Definition at line 188 of file ps_filebuffer.hxx.

Member Function Documentation

void PS_FileBuffer::put ( const void *  _data,
int  _length 
)
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.

void PS_FileBuffer::put_char ( unsigned char  _c)
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().

void PS_FileBuffer::get_char ( unsigned char _c)
inline

Definition at line 81 of file ps_filebuffer.hxx.

Referenced by PS_BitSet::load(), and PS_BitMap::load().

unsigned char PS_FileBuffer::get_char ( )
inline

Definition at line 92 of file ps_filebuffer.hxx.

void PS_FileBuffer::put_ulong ( unsigned long int  _ul)

Definition at line 46 of file ps_filebuffer.cxx.

Referenced by main(), and PS_Candidate::save().

void PS_FileBuffer::get_ulong ( unsigned long int _ul)

Definition at line 76 of file ps_filebuffer.cxx.

References long.

Referenced by PS_Candidate::load(), and main().

void PS_FileBuffer::put_long ( long int  _l)
inline

Definition at line 106 of file ps_filebuffer.hxx.

Referenced by PS_print_and_evaluate_map(), PS_BitSet::save(), and PS_BitMap::save().

void PS_FileBuffer::get_long ( long int _l)
inline

Definition at line 116 of file ps_filebuffer.hxx.

References long.

Referenced by PS_BitSet::load(), PS_BitMap::load(), and main().

void PS_FileBuffer::put_uint ( unsigned int  _ui)
inline

Definition at line 128 of file ps_filebuffer.hxx.

Referenced by main(), PS_Node::save(), and PS_Candidate::save().

void PS_FileBuffer::get_uint ( unsigned int _ui)
inline
void PS_FileBuffer::put_int ( int  _i)
inline
void PS_FileBuffer::get_int ( int _i)
inline
bool PS_FileBuffer::store_pos ( )
inline

Definition at line 149 of file ps_filebuffer.hxx.

bool PS_FileBuffer::restore_pos ( )
inline

Definition at line 155 of file ps_filebuffer.hxx.

bool PS_FileBuffer::empty ( )
inline

Definition at line 165 of file ps_filebuffer.hxx.

void PS_FileBuffer::clear ( )
inline

Definition at line 170 of file ps_filebuffer.hxx.

Referenced by FINAL_TYPE< SEQTYPE >::~PS_Database().

bool PS_FileBuffer::isReadonly ( )
inline
void PS_FileBuffer::flush ( )

Definition at line 126 of file ps_filebuffer.cxx.

References buffer, and CRASH.

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().

Member Data Documentation

const bool PS_FileBuffer::READONLY = true
static

Definition at line 52 of file ps_filebuffer.hxx.

Referenced by main(), and runtests().

const bool PS_FileBuffer::WRITEONLY = false
static
const int PS_FileBuffer::BUFFER_SIZE = 4096
static

Definition at line 54 of file ps_filebuffer.hxx.

Referenced by PS_BitSet::load(), PS_FileBuffer(), and PS_BitSet::save().


The documentation for this class was generated from the following files: