|
Pol
Rev 533
|
#include <binaryfilescrobj.h>
Inheritance diagram for BBinaryfile:
Collaboration diagram for BBinaryfile:Public Member Functions | |
| BBinaryfile () | |
| BBinaryfile (std::string filename, unsigned short mode, bool _bigendian) | |
| ~BBinaryfile () | |
| virtual BObjectImp * | call_method (const char *methodname, Executor &ex) |
| virtual BObjectImp * | call_method_id (const int id, Executor &ex, bool forcebuiltin=false) |
| virtual BObjectImp * | copy () 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 |
Definition at line 61 of file binaryfilescrobj.h.
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:| 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::call_method_id | ( | const int | id, |
| Executor & | ex, | ||
| bool | forcebuiltin = false |
||
| ) | [virtual] |
Reimplemented from BObjectImp.
Definition at line 81 of file binaryfilescrobj.cpp.
References bigendian, cfBEu16, cfBEu32, BinFile::Close(), file, BinFile::FileSize(), BinFile::Flush(), Executor::getParam(), Executor::getStringParam(), MTH_CLOSE, MTH_FLUSH, MTH_GETINT16, MTH_GETINT32, MTH_GETINT8, MTH_GETSINT16, MTH_GETSINT32, MTH_GETSINT8, MTH_GETSTRING, MTH_PEEK, MTH_SEEK, MTH_SETINT16, MTH_SETINT32, MTH_SETINT8, MTH_SETSINT16, MTH_SETSINT32, MTH_SETSINT8, MTH_SETSTRING, MTH_SIZE, MTH_TELL, Executor::numParams(), BinFile::Peek(), BinFile::Read(), BinFile::Seek(), BinFile::Tell(), BObjectImp::type(), String::value(), BinFile::Write(), and BinFile::WriteString().
Referenced by call_method().
Here is the call graph for this function:
Here is the caller 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.
std::string BBinaryfile::_filename [private] |
Definition at line 81 of file binaryfilescrobj.h.
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().