SNAP Library 4.0, Developer Reference
2017-07-27 13:18:06
SNAP, a general purpose, high performance system for analysis and manipulation of large networks
|
#include <fl.h>
Public Member Functions | |
TFRnd (const TStr &_FNm, const TFAccess &FAccess, const bool &CreateIfNo=true, const int &_HdLen=-1, const int &_RecLen=-1) | |
~TFRnd () | |
TStr | GetFNm () const |
void | SetHdRecLen (const int &_HdLen, const int &_RecLen) |
void | SetFPos (const int &FPos) |
void | MoveFPos (const int &DFPos) |
int | GetFPos () |
int | GetFLen () |
bool | Empty () |
bool | Eof () |
void | SetRecN (const int &RecN) |
int | GetRecN () |
int | GetRecs () |
void | GetBf (void *Bf, const TSize &BfL) |
void | PutBf (const void *Bf, const TSize &BfL) |
void | Flush () |
void | GetHd (void *Hd) |
void | PutHd (const void *Hd) |
void | GetRec (void *Rec, const int &RecN=-1) |
void | PutRec (const void *Rec, const int &RecN=-1) |
void | PutCs (const TCs &Cs) |
TCs | GetCs () |
void | PutCh (const char &Ch) |
void | PutCh (const char &Ch, const int &Chs) |
char | GetCh () |
void | PutUCh (const uchar &UCh) |
uchar | GetUCh () |
void | PutInt (const int &Int) |
int | GetInt () |
void | PutUInt (const uint &UInt) |
uint | GetUInt () |
void | PutStr (const TStr &Str) |
TStr | GetStr (const int &StrLen) |
TStr | GetStr (const int &MxStrLen, bool &IsOk) |
void | PutSIn (const PSIn &SIn, TCs &Cs) |
PSIn | GetSIn (const int &SInLen, TCs &Cs) |
Static Public Member Functions | |
static PFRnd | New (const TStr &FNm, const TFAccess &FAccess, const bool &CreateIfNo=true, const int &HdLen=-1, const int &RecLen=-1) |
static TStr | GetStrFromFAccess (const TFAccess &FAccess) |
static TFAccess | GetFAccessFromStr (const TStr &Str) |
Private Member Functions | |
void | RefreshFPos () |
TFRnd (const TFRnd &) | |
TFRnd & | operator= (const TFRnd &) |
Private Attributes | |
TCRef | CRef |
TFileId | FileId |
TSStr | FNm |
bool | RecAct |
int | HdLen |
int | RecLen |
Friends | |
class | TPt< TFRnd > |
|
private |
TFRnd::TFRnd | ( | const TStr & | _FNm, |
const TFAccess & | FAccess, | ||
const bool & | CreateIfNo = true , |
||
const int & | _HdLen = -1 , |
||
const int & | _RecLen = -1 |
||
) |
|
inline |
Definition at line 597 of file fl.h.
Referenced by TGBlobBs::TGBlobBs().
void TFRnd::Flush | ( | ) |
Definition at line 1066 of file fl.cpp.
References EAssertR, FileId, and FNm.
Referenced by TGBlobBs::DelBlob(), TGBlobBs::PutBlob(), TGBlobBs::TGBlobBs(), and TGBlobBs::~TGBlobBs().
void TFRnd::GetBf | ( | void * | Bf, |
const TSize & | BfL | ||
) |
|
inline |
Definition at line 621 of file fl.h.
Referenced by TBlobBs::AssertBlobState(), and TBlobBs::GetBlobState().
|
inline |
Definition at line 618 of file fl.h.
Referenced by TGBlobBs::FNextBlobPt(), and TGBlobBs::GetBlob().
int TFRnd::GetFLen | ( | ) |
TStr TFRnd::GetFNm | ( | ) | const |
Definition at line 1003 of file fl.cpp.
References TSStr::CStr(), and FNm.
int TFRnd::GetFPos | ( | ) |
Definition at line 1019 of file fl.cpp.
References EAssertR, FileId, and FNm.
Referenced by TGBlobBs::DelBlob(), TGBlobBs::FNextBlobPt(), GetFLen(), GetRecN(), GetStr(), TGBlobBs::PutBlob(), and TGBlobBs::TGBlobBs().
|
inline |
Definition at line 608 of file fl.h.
References IAssert.
Referenced by TFRec< THd, TRec >::GetHd().
|
inline |
Definition at line 625 of file fl.h.
Referenced by TGBlobBs::DelBlob(), TGBlobBs::FNextBlobPt(), TGBlobBs::GetBlob(), TBlobBs::GetBlockLenV(), TBlobBs::GetFFreeBlobPtV(), TBlobBs::GetMxSegLen(), and TGBlobBs::PutBlob().
|
inline |
Definition at line 612 of file fl.h.
References IAssert.
Referenced by TFRec< THd, TRec >::GetRec().
int TFRnd::GetRecN | ( | ) |
int TFRnd::GetRecs | ( | ) |
Definition at line 1113 of file fl.cpp.
References GetBf(), and TCs::GetCsFromBf().
Referenced by TGBlobBs::FNextBlobPt(), and TGBlobBs::GetBlob().
TStr TFRnd::GetStr | ( | const int & | StrLen | ) |
Definition at line 1094 of file fl.cpp.
References EAssertR, FNm, GetBf(), and TCh::NullCh.
Referenced by TBlobBs::AssertBlobBsStateStr(), TBlobBs::AssertVersionStr(), TBlobBs::GetBlockLenV(), TBlobBs::GetFFreeBlobPtV(), and TBlobBs::GetMxSegLen().
TStr TFRnd::GetStr | ( | const int & | MxStrLen, |
bool & | IsOk | ||
) |
|
inline |
Definition at line 623 of file fl.h.
Referenced by TBlobPt::Load().
|
inline |
Definition at line 627 of file fl.h.
Referenced by TBlobBs::AssertBlobTag(), TBlobPt::Load(), and TBlobPt::LoadAddr().
void TFRnd::MoveFPos | ( | const int & | DFPos | ) |
Definition at line 1013 of file fl.cpp.
References EAssertR, FileId, FNm, and SEEK_CUR.
Referenced by TGBlobBs::FNextBlobPt(), and TGBlobBs::GetBlob().
|
inlinestatic |
Definition at line 583 of file fl.h.
Referenced by TGBlobBs::TGBlobBs().
void TFRnd::PutBf | ( | const void * | Bf, |
const TSize & | BfL | ||
) |
|
inline |
Definition at line 619 of file fl.h.
Referenced by TGBlobBs::DelBlob(), TGBlobBs::PutBlob(), and TBlobBs::PutBlobState().
void TFRnd::PutCh | ( | const char & | Ch, |
const int & | Chs | ||
) |
|
inline |
Definition at line 617 of file fl.h.
Referenced by TGBlobBs::PutBlob().
|
inline |
Definition at line 610 of file fl.h.
References IAssert.
Referenced by TFRec< THd, TRec >::PutHd().
|
inline |
Definition at line 624 of file fl.h.
Referenced by TGBlobBs::PutBlob(), TBlobBs::PutBlockLenV(), TBlobBs::PutFFreeBlobPtV(), and TBlobBs::PutMxSegLen().
|
inline |
Definition at line 614 of file fl.h.
References IAssert.
Referenced by TFRec< THd, TRec >::PutRec().
Definition at line 1104 of file fl.cpp.
References TSIn::GetBf(), TCs::GetCsFromBf(), TSIn::Len(), and PutBf().
Referenced by TGBlobBs::PutBlob().
void TFRnd::PutStr | ( | const TStr & | Str | ) |
Definition at line 1079 of file fl.cpp.
References TStr::CStr(), TStr::Len(), and PutBf().
Referenced by TBlobBs::PutBlobBsStateStr(), TBlobBs::PutBlockLenV(), TBlobBs::PutFFreeBlobPtV(), TBlobBs::PutMxSegLen(), and TBlobBs::PutVersionStr().
|
inline |
Definition at line 622 of file fl.h.
Referenced by TBlobPt::Save().
|
inline |
Definition at line 626 of file fl.h.
Referenced by TBlobBs::PutBlobTag(), TBlobPt::Save(), and TBlobPt::SaveAddr().
|
private |
void TFRnd::SetFPos | ( | const int & | FPos | ) |
Definition at line 1007 of file fl.cpp.
References EAssertR, FileId, FNm, and SEEK_SET.
Referenced by TGBlobBs::DelBlob(), TGBlobBs::FNextBlobPt(), TGBlobBs::GetBlob(), GetFLen(), TGBlobBs::PutBlob(), SetRecN(), TGBlobBs::TGBlobBs(), and TGBlobBs::~TGBlobBs().
|
inline |
void TFRnd::SetRecN | ( | const int & | RecN | ) |
|
private |
|
private |
|
private |
|
private |
|
private |