SNAP Library 2.0, User Reference
2013-05-13 16:33:57
SNAP, a general purpose, high performance system for analysis and manipulation of large networks
|
#include <xfl.h>
Public Member Functions | |
TFFile (const TStr &_FNmWc, const bool &_RecurseP=false) | |
TFFile (const TStr &_FPath, const TStr &_FExt, const bool &_RecurseP=false) | |
TFFile (const TStrV &_FPathV, const TStrV &_FExtV, const TStr &_FBaseWc, const bool &_RecurseP) | |
~TFFile () | |
TFFile (TSIn &) | |
void | Save (TSOut &) |
bool | Next (TStr &FNm) |
bool | Next () |
TStr | GetFNm () const |
int | GetFNmN () const |
bool | IsDir () const |
Static Public Member Functions | |
static PFFile | New (const TStr &FNmWc, const bool &RecurseP) |
static PFFile | New (const TStrV &FPathV, const TStrV &FExtV, const TStr FBaseWc, const bool &RecurseP) |
static PFFile | New (const TStr &FPath, const TStr &FExt, const bool &RecurseP) |
static PFFile | Load (TSIn &SIn) |
static void | GetFNmV (const TStr &FPath, const TStrV &FExtV, const bool &RecurseP, TStrV &FNmV) |
Private Member Functions | |
UndefDefaultCopyAssign (TFFile) | |
Private Attributes | |
TCRef | CRef |
TStrV | FPathV |
TStrV | FExtV |
TStr | FBaseWc |
bool | CsImpP |
bool | RecurseP |
int | FPathN |
PFFileDesc | FFileDesc |
PFFile | SubFFile |
TStr | CurFNm |
int | CurFNmN |
Friends | |
class | TPt< TFFile > |
TFFile::TFFile | ( | const TStr & | _FNmWc, |
const bool & | _RecurseP = false |
||
) |
Definition at line 37 of file xfl.cpp.
: FPathV(), FExtV(), FBaseWc(), CsImpP(false), RecurseP(_RecurseP), FPathN(0-1), FFileDesc(TFFileDesc::New()), SubFFile(), CurFNm(), CurFNmN(0-1){ // prepare file-base-name wild-card FBaseWc=FNmWc.GetFBase(); if (!CsImpP){FBaseWc.ToUc();} // get & assign file-name TStr FPath=FNmWc.GetFPath(); FPathV.Add(TStr::GetNrFPath(FPath)); }
TFFile::TFFile | ( | const TStr & | _FPath, |
const TStr & | _FExt, | ||
const bool & | _RecurseP = false |
||
) |
TFFile::TFFile | ( | const TStrV & | _FPathV, |
const TStrV & | _FExtV, | ||
const TStr & | _FBaseWc, | ||
const bool & | _RecurseP | ||
) |
Definition at line 59 of file xfl.cpp.
: FPathV(_FPathV), FExtV(_FExtV), FBaseWc(_FBaseWc), CsImpP(false), RecurseP(_RecurseP), FPathN(0-1), FFileDesc(TFFileDesc::New()), SubFFile(), CurFNm(), CurFNmN(0-1){ // prepare file-paths for (int FPathN=0; FPathN<FPathV.Len(); FPathN++){ FPathV[FPathN]=TStr::GetNrFPath(FPathV[FPathN]);} // prepare file-extensions for (int FExtN=0; FExtN<FExtV.Len(); FExtN++){ FExtV[FExtN]=TStr::GetNrFExt(FExtV[FExtN]); if (!CsImpP){FExtV[FExtN].ToUc();} } // prepare file-base wild-card if (!CsImpP){FBaseWc.ToUc();} }
TFFile::~TFFile | ( | ) |
TFFile::TFFile | ( | TSIn & | ) | [inline] |
TStr TFFile::GetFNm | ( | ) | const [inline] |
int TFFile::GetFNmN | ( | ) | const [inline] |
void TFFile::GetFNmV | ( | const TStr & | FPath, |
const TStrV & | FExtV, | ||
const bool & | RecurseP, | ||
TStrV & | FNmV | ||
) | [static] |
bool TFFile::IsDir | ( | ) | const [inline] |
static PFFile TFFile::Load | ( | TSIn & | SIn | ) | [inline, static] |
static PFFile TFFile::New | ( | const TStr & | FNmWc, |
const bool & | RecurseP | ||
) | [inline, static] |
static PFFile TFFile::New | ( | const TStrV & | FPathV, |
const TStrV & | FExtV, | ||
const TStr | FBaseWc, | ||
const bool & | RecurseP | ||
) | [inline, static] |
static PFFile TFFile::New | ( | const TStr & | FPath, |
const TStr & | FExt, | ||
const bool & | RecurseP | ||
) | [inline, static] |
bool TFFile::Next | ( | TStr & | FNm | ) |
bool TFFile::Next | ( | ) | [inline] |
void TFFile::Save | ( | TSOut & | ) | [inline] |
TFFile::UndefDefaultCopyAssign | ( | TFFile | ) | [private] |
TCRef TFFile::CRef [private] |
bool TFFile::CsImpP [private] |
TStr TFFile::CurFNm [private] |
int TFFile::CurFNmN [private] |
TStr TFFile::FBaseWc [private] |
TStrV TFFile::FExtV [private] |
PFFileDesc TFFile::FFileDesc [private] |
int TFFile::FPathN [private] |
TStrV TFFile::FPathV [private] |
bool TFFile::RecurseP [private] |
PFFile TFFile::SubFFile [private] |