|
Public 型 |
| enum | { ERROR = -1
} |
| enum | {
tSeekBegin = SEEK_SET,
tSeekCurrent = SEEK_CUR,
tSeekEnd = SEEK_END
} |
Public メソッド |
| | TOutputObjectFile (const Tstring &filename, const Tstring &mode="w") |
| | TOutputObjectFile (TOutputObjectFilter *filter, const Tstring &filename, const Tstring &mode="w") |
| | ~TOutputObjectFile () |
| Tint | Write (TStreamableObject &object) |
| 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 番目のレコードの位置を返す
|
| TOutputObjectFilter * | GetObjectFilter () const |
| Tvoid | SetObjectFilter (TOutputObjectFilter *filter) |
| Tbool | HasFilter () const |
| Tstream_t | GetStreamType () const |
| Tint | GetDataSize () const |
| Tint | GetLastDataSize () const |
| Tint | GetTotalDataSize () const |
| Tvoid | SetStreamType (Tstream_t streamtype) |
| Tvoid | SetDataSize (Tint datasize) |
| Tvoid | SetLastDataSize (Tint datasize) |
| Tvoid | SetTotalDataSize (Tint datasize) |
Protected 変数 |
| Tstring | theFileName |
| Tstring | theMode |
| TFileStream * | theFileStream |
| TFileProperty | theFileProperty |
| TOutputObjectFilter * | theObjectFilter |
| Tstream_t | theStreamType |
| | ストリームタイプ(そのまんま)
|
| Tint | theDataSize |
| | 対象のデータサイズ(レコードサイズとは似て非なるものです)
|
| Tint | theLastDataSize |
| | 直前の処理(Read/Write)のよる処理サイズ
|
| Tint | theTotalDataSize |
| | ここまで処理したデータの合計サイズ
|
フレンド |
| Tint | operator<< (TOutputObjectStream &left, TStreamableObject &object) |
| Tint | operator<< (TOutputObjectStream &left, const TStreamableObject &object) |