Pol  Rev 533
BinFile Class Reference

#include <binaryfilescrobj.h>

List of all members.

Public Member Functions

 BinFile ()
 BinFile (const std::string &filename, ios::openmode mode)
 ~BinFile ()
void Close ()
fstream::pos_type FileSize (Executor &exec)
void Flush ()
bool IsOpen ()
bool Open (const std::string &filename, ios::openmode mode)
int Peek ()
template<class T >
bool Read (T &val)
template<class T >
bool Read (T *arr, size_t count)
bool Seek (fstream::pos_type abs_offset, ios::seekdir origin)
fstream::pos_type Tell ()
template<class T >
bool Write (T &val)
bool WriteString (const char *chr, unsigned len)

Private Member Functions

bool ReadBuffer (void *buffer, streamsize length)
bool WriteBuffer (void *buffer, streamsize length)

Private Attributes

fstream _file

Detailed Description

Definition at line 17 of file binaryfilescrobj.h.


Constructor & Destructor Documentation

Definition at line 319 of file binaryfilescrobj.cpp.

BinFile::BinFile ( const std::string &  filename,
ios::openmode  mode 
)

Definition at line 323 of file binaryfilescrobj.cpp.

References Open().

+ Here is the call graph for this function:

Definition at line 328 of file binaryfilescrobj.cpp.

References Close().

+ Here is the call graph for this function:


Member Function Documentation

void BinFile::Close ( )

Definition at line 349 of file binaryfilescrobj.cpp.

References _file.

Referenced by BBinaryfile::call_method_id(), BBinaryfile::~BBinaryfile(), and ~BinFile().

+ Here is the caller graph for this function:

fstream::pos_type BinFile::FileSize ( Executor exec)

Definition at line 388 of file binaryfilescrobj.cpp.

References _file, and Executor::setFunctionResult().

Referenced by BBinaryfile::call_method_id().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void BinFile::Flush ( )

Definition at line 432 of file binaryfilescrobj.cpp.

References _file.

Referenced by BBinaryfile::call_method_id().

+ Here is the caller graph for this function:

bool BinFile::IsOpen ( )

Definition at line 344 of file binaryfilescrobj.cpp.

References _file.

Referenced by BBinaryfile::isTrue().

+ Here is the caller graph for this function:

bool BinFile::Open ( const std::string &  filename,
ios::openmode  mode 
)

Definition at line 333 of file binaryfilescrobj.cpp.

References _file, and binary().

Referenced by BBinaryfile::BBinaryfile(), and BinFile().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

int BinFile::Peek ( )

Definition at line 425 of file binaryfilescrobj.cpp.

References _file.

Referenced by BBinaryfile::call_method_id().

+ Here is the caller graph for this function:

template<class T >
bool BinFile::Read ( T &  val) [inline]

Definition at line 28 of file binaryfilescrobj.h.

References ReadBuffer().

Referenced by BBinaryfile::call_method_id().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

template<class T >
bool BinFile::Read ( T *  arr,
size_t  count 
) [inline]

Definition at line 34 of file binaryfilescrobj.h.

References ReadBuffer().

+ Here is the call graph for this function:

bool BinFile::ReadBuffer ( void *  buffer,
streamsize  length 
) [private]

Definition at line 367 of file binaryfilescrobj.cpp.

References _file.

Referenced by Read().

+ Here is the caller graph for this function:

bool BinFile::Seek ( fstream::pos_type  abs_offset,
ios::seekdir  origin 
)

Definition at line 357 of file binaryfilescrobj.cpp.

References _file.

Referenced by BBinaryfile::call_method_id().

+ Here is the caller graph for this function:

fstream::pos_type BinFile::Tell ( )

Definition at line 418 of file binaryfilescrobj.cpp.

References _file.

Referenced by BBinaryfile::call_method_id().

+ Here is the caller graph for this function:

template<class T >
bool BinFile::Write ( T &  val) [inline]

Definition at line 40 of file binaryfilescrobj.h.

References WriteBuffer().

Referenced by BBinaryfile::call_method_id().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

bool BinFile::WriteBuffer ( void *  buffer,
streamsize  length 
) [private]

Definition at line 374 of file binaryfilescrobj.cpp.

References _file.

Referenced by Write().

+ Here is the caller graph for this function:

bool BinFile::WriteString ( const char *  chr,
unsigned  len 
)

Definition at line 381 of file binaryfilescrobj.cpp.

References _file.

Referenced by BBinaryfile::call_method_id().

+ Here is the caller graph for this function:


Member Data Documentation

fstream BinFile::_file [private]

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