#include <TObjectFile.hh>
TObjectFileに対する継承グラフ
Public 型 | |
enum | { ERROR = -1 } |
enum | { tSeekBegin = SEEK_SET, tSeekCurrent = SEEK_CUR, tSeekEnd = SEEK_END } |
Public メソッド | |
TObjectFile (const Tstring &filename, const Tstring &mode) | |
const Tstring & | GetFileName () const |
const Tstring & | GetMode () const |
TFileStream * | GetFileStream () const |
Tvoid | SetFileName (const Tstring &filename) |
Tvoid | SetMode (const Tstring &mode) |
const TFileProperty & | GetFileProperty () const |
Tvoid | SetOffset (Tint offset, Tint whence=tSeekCurrent) |
Tint | GetOffset () |
Tbool | IsEnd () const |
Tbool | IsError () const |
Tint | GetStreamSize () const |
ファイルサイズをバイトで得る | |
Tint | Size () const |
何個のレコードからなるか | |
Tint | FindDataRecord (const Tstring &id, Tint offset=0) const |
見つかれば id をもつレコードの位置を返す | |
Tint | FindDataRecord (Tint index, Tint offset=0) const |
見つかれば index 番目のレコードの位置を返す | |
Tint | Find (const Tstring &id, Tint offset=0) const |
見つかれば id をもつレコードの位置を返す | |
Tint | Find (Tint index, Tint offset=0) const |
見つかれば index 番目のレコードの位置を返す | |
Protected メソッド | |
virtual | ~TObjectFile () |
Protected 変数 | |
Tstring | theFileName |
Tstring | theMode |
TFileStream * | theFileStream |
TFileProperty | theFileProperty |
|
|
|
|
|
|
|
|
|
見つかれば index 番目のレコードの位置を返す
|
|
見つかれば id をもつレコードの位置を返す
|
|
見つかれば index 番目のレコードの位置を返す
|
|
見つかれば id をもつレコードの位置を返す
|
|
|
|
|
|
|
|
|
|
|
|
ファイルサイズをバイトで得る
|
|
|
|
|
|
|
|
|
|
|
|
何個のレコードからなるか
|
|
|
|
|
|
|
|
|