|
| | CBofStringTable (const char *pszFileName) |
| |
| virtual | ~CBofStringTable () |
| |
| const char * | getString (int nId) |
| |
| | CBofFile () |
| |
| | CBofFile (const char *pszFileName, uint32 lFlags=(0x00000002|0x00000004)) |
| |
| virtual | ~CBofFile () |
| |
| ErrorCode | open (const char *pszFileName, uint32 lFlags=(0x00000002|0x00000004)) |
| |
| ErrorCode | create (const char *pszFileName, uint32 lFlags=(0x00000002|0x00000004)|0x00000020) |
| |
| virtual ErrorCode | close () |
| |
| virtual ErrorCode | read (void *pDestBuf, int32 lBytes) |
| |
| virtual ErrorCode | write (const void *pSrcBuf, int32 lBytes) |
| |
| void | commit () |
| |
| ErrorCode | seek (uint32 lPos) |
| |
| ErrorCode | seekToBeginning () |
| |
| ErrorCode | seekToEnd () |
| |
| ErrorCode | setPosition (uint32 lPos) |
| |
| uint32 | getPosition () |
| |
| uint32 | getLength () |
| |
|
| operator Common::SeekableReadStream * () const |
| |
|
virtual void | DeleteObject () |
| |
| void | reportError (ErrorCode errCode, const char *format,...) |
| |
|
bool | errorOccurred () const |
| |
|
ErrorCode | getErrorCode () const |
| |
|
void | clearError () |
| |
|
|
static bool | isValidObject (const CBofObject *pObject) |
| |
| static void | fatalError (ErrorCode errCode, const char *format,...) |
| |
|
static void | initialize () |
| |
|
static int | getErrorCount () |
| |
|
char | _szFileName [MAX_FNAME] |
| |
|
Common::Stream * | _stream = nullptr |
| |
|
uint32 | _lFlags = ( 0x00000002 | 0x00000004 ) |
| |
|
ErrorCode | _errCode |
| |
|
static int | _count |
| |
◆ CBofStringTable()
| Bagel::SpaceBar::CBofStringTable::CBofStringTable |
( |
const char * |
pszFileName | ) |
|
Constructor for Boffo Resource String Table
- Parameters
-
| pszFileName | Name of file containing resources |
◆ ~CBofStringTable()
| virtual Bagel::SpaceBar::CBofStringTable::~CBofStringTable |
( |
| ) |
|
|
virtual |
◆ load()
| ErrorCode Bagel::SpaceBar::CBofStringTable::load |
( |
const char * |
pszFileName | ) |
|
|
protected |
Loads string table from specified res file
- Parameters
-
| pszFileName | Name of file containing resources |
- Returns
- Error return code
◆ release()
| void Bagel::SpaceBar::CBofStringTable::release |
( |
| ) |
|
|
protected |
De-allocates the current Resource String Table
◆ buildTable()
| ErrorCode Bagel::SpaceBar::CBofStringTable::buildTable |
( |
| ) |
|
|
protected |
Allocates the current Resource String Table
- Returns
- Error return code
◆ killTable()
| void Bagel::SpaceBar::CBofStringTable::killTable |
( |
| ) |
|
|
protected |
De-allocates the current Resource String Table
◆ getString()
| const char* Bagel::SpaceBar::CBofStringTable::getString |
( |
int |
nId | ) |
|
Retrieves the specified resource string
- Parameters
-
| nId | Res ID for string to be retrieved |
The documentation for this class was generated from the following file:
- engines/bagel/spacebar/boflib/res.h