Pol  Rev 533
BBinaryfile Class Reference

#include <binaryfilescrobj.h>

+ Inheritance diagram for BBinaryfile:
+ Collaboration diagram for BBinaryfile:

List of all members.

Public Member Functions

 BBinaryfile ()
 BBinaryfile (std::string filename, unsigned short mode, bool _bigendian)
 ~BBinaryfile ()
virtual BObjectImpcall_method (const char *methodname, Executor &ex)
virtual BObjectImpcall_method_id (const int id, Executor &ex, bool forcebuiltin=false)
virtual BObjectImpcopy () const
virtual BObjectRef get_member (const char *membername)
virtual BObjectRef get_member_id (const int id)
virtual std::string getStringRep () const
virtual bool isEqual (const BObjectImp &objimp) const
virtual bool isTrue () const
virtual size_t sizeEstimate () const
virtual const char * typeOf () const
virtual int typeOfInt () const

Private Attributes

std::string _filename
bool bigendian
BinFile file
ios::openmode openmode

Detailed Description

Definition at line 61 of file binaryfilescrobj.h.


Constructor & Destructor Documentation

Definition at line 26 of file binaryfilescrobj.cpp.

Referenced by copy().

+ Here is the caller graph for this function:

BBinaryfile::BBinaryfile ( std::string  filename,
unsigned short  mode,
bool  _bigendian 
)

Definition at line 33 of file binaryfilescrobj.cpp.

References file, BinFile::Open(), and openmode.

+ Here is the call graph for this function:

Definition at line 54 of file binaryfilescrobj.cpp.

References BinFile::Close(), and file.

+ Here is the call graph for this function:


Member Function Documentation

BObjectImp * BBinaryfile::call_method ( const char *  methodname,
Executor ex 
) [virtual]

Reimplemented from BObjectImp.

Definition at line 72 of file binaryfilescrobj.cpp.

References call_method_id(), getKnownObjMethod(), and ObjMethod::id.

+ Here is the call graph for this function:

BObjectImp * BBinaryfile::copy ( void  ) const [virtual]

Implements BObjectImp.

Definition at line 291 of file binaryfilescrobj.cpp.

References _filename, BBinaryfile(), bigendian, and openmode.

+ Here is the call graph for this function:

BObjectRef BBinaryfile::get_member ( const char *  membername) [virtual]

Reimplemented from BObjectImp.

Definition at line 63 of file binaryfilescrobj.cpp.

References UninitObject::create(), get_member_id(), getKnownObjMember(), and ObjMember::id.

+ Here is the call graph for this function:

BObjectRef BBinaryfile::get_member_id ( const int  id) [virtual]

Reimplemented from BObjectImp.

Definition at line 59 of file binaryfilescrobj.cpp.

Referenced by get_member().

+ Here is the caller graph for this function:

std::string BBinaryfile::getStringRep ( ) const [virtual]

Implements BObjectImp.

Definition at line 296 of file binaryfilescrobj.cpp.

bool BBinaryfile::isEqual ( const BObjectImp objimp) const [virtual]

Reimplemented from BObjectImp.

Definition at line 308 of file binaryfilescrobj.cpp.

References _filename, BObjectImp::isa(), and BObjectImp::OTBinaryFile.

+ Here is the call graph for this function:

bool BBinaryfile::isTrue ( void  ) const [virtual]

Reimplemented from BObjectImp.

Definition at line 301 of file binaryfilescrobj.cpp.

References _filename, file, and BinFile::IsOpen().

+ Here is the call graph for this function:

virtual size_t BBinaryfile::sizeEstimate ( ) const [inline, virtual]

Implements BObjectImp.

Definition at line 73 of file binaryfilescrobj.h.

virtual const char* BBinaryfile::typeOf ( ) const [inline, virtual]

Reimplemented from BObjectImp.

Definition at line 74 of file binaryfilescrobj.h.

virtual int BBinaryfile::typeOfInt ( ) const [inline, virtual]

Reimplemented from BObjectImp.

Definition at line 75 of file binaryfilescrobj.h.

References BObjectImp::OTBinaryFile.


Member Data Documentation

std::string BBinaryfile::_filename [private]

Definition at line 81 of file binaryfilescrobj.h.

Referenced by copy(), isEqual(), and isTrue().

bool BBinaryfile::bigendian [private]

Definition at line 83 of file binaryfilescrobj.h.

Referenced by call_method_id(), and copy().

BinFile BBinaryfile::file [mutable, private]

Definition at line 80 of file binaryfilescrobj.h.

Referenced by BBinaryfile(), call_method_id(), isTrue(), and ~BBinaryfile().

ios::openmode BBinaryfile::openmode [private]

Definition at line 82 of file binaryfilescrobj.h.

Referenced by BBinaryfile(), and copy().


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