| 
    SNAP Library 2.0, Developer 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.
References TVec< TVal, TSizeTy >::Add(), CsImpP, FBaseWc, FPathV, TStr::GetFBase(), TStr::GetFPath(), TStr::GetNrFPath(), and TStr::ToUc().
: 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  | 
        ||
| ) | 
Definition at line 48 of file xfl.cpp.
References TVec< TVal, TSizeTy >::Add(), CsImpP, TStr::Empty(), FExtV, FPathV, TStr::GetNrFExt(), TStr::GetNrFPath(), TVec< TVal, TSizeTy >::Last(), and TStr::ToUc().
: FPathV(), FExtV(), FBaseWc(), CsImpP(false), RecurseP(_RecurseP), FPathN(0-1), FFileDesc(TFFileDesc::New()), SubFFile(), CurFNm(), CurFNmN(0-1){ FPathV.Add(TStr::GetNrFPath(_FPath)); if (!_FExt.Empty()){ FExtV.Add(TStr::GetNrFExt(_FExt)); if (!CsImpP){FExtV.Last().ToUc();} } }

| TFFile::TFFile | ( | const TStrV & | _FPathV, | 
| const TStrV & | _FExtV, | ||
| const TStr & | _FBaseWc, | ||
| const bool & | _RecurseP | ||
| ) | 
Definition at line 59 of file xfl.cpp.
References CsImpP, FBaseWc, FExtV, FPathN, FPathV, TStr::GetNrFExt(), TStr::GetNrFPath(), TVec< TVal, TSizeTy >::Len(), and TStr::ToUc().
: 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 | ( | ) | 
| 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] | 
        
Definition at line 215 of file xfl.cpp.
References TVec< TVal, TSizeTy >::Add(), TVec< TVal, TSizeTy >::Clr(), FPathV, and Next().
                                                                          {
  // prepare file-directory traversal
  TStrV FPathV; FPathV.Add(FPath);
  TFFile FFile(FPathV, FExtV, "", RecurseP); TStr FNm;
  // traverse directory
  FNmV.Clr();
  while (FFile.Next(FNm)){
    FNmV.Add(FNm);
  }
}

| 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 | ) | 
Referenced by TFile::DelWc(), GetFNmV(), and TNcpGraphsBase::TNcpGraphsBase().

| 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] |