SNAP Library 2.4, User Reference  2015-05-11 19:40:56
SNAP, a general purpose, high performance system for analysis and manipulation of large networks
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
TDir Class Reference

#include <xfl.h>

Static Public Member Functions

static TStr GetCurDir ()
 
static TStr GetExeDir ()
 
static bool Exists (const TStr &FPathFNm)
 
static bool GenDir (const TStr &FPathFNm)
 
static bool DelDir (const TStr &FPathFNm)
 

Detailed Description

Definition at line 73 of file xfl.h.

Member Function Documentation

bool TDir::DelDir ( const TStr FPathFNm)
static

Definition at line 260 of file xfl.cpp.

260  {
261  return RemoveDirectory(FPathFNm.CStr())!=0;
262 }
char * CStr()
Definition: dt.h:476
bool TDir::Exists ( const TStr FPathFNm)
static

Definition at line 249 of file xfl.cpp.

249  {
250  struct stat Stat;
251  const int ErrCd = stat(FPathFNm.CStr(), &Stat);
252  if (ErrCd == 0 && S_ISDIR(Stat.st_mode)) { return true; }
253  return false;
254 }
char * CStr()
Definition: dt.h:476
bool TDir::GenDir ( const TStr FPathFNm)
static

Definition at line 256 of file xfl.cpp.

256  {
257  return CreateDirectory(FPathFNm.CStr(), NULL)!=0;
258 }
char * CStr()
Definition: dt.h:476
TStr TDir::GetCurDir ( )
static

Definition at line 233 of file xfl.cpp.

233  {
234  const int MxBfL=1000;
235  char Bf[MxBfL];
236  int BfL=GetCurrentDirectory(MxBfL, Bf);
237  IAssert((BfL!=0)&&(BfL<MxBfL));
238  return TStr::GetNrFPath(TStr(Bf));
239 }
#define IAssert(Cond)
Definition: bd.h:262
static TStr GetNrFPath(const TStr &FPath)
Definition: dt.cpp:1430
Definition: dt.h:412
TStr TDir::GetExeDir ( )
static

Definition at line 241 of file xfl.cpp.

241  {
242  const int MxBfL=1000;
243  char Bf[MxBfL];
244  int BfL=GetModuleFileName(NULL, Bf, MxBfL);
245  IAssert((BfL!=0)&&(BfL<MxBfL));
246  return TStr::GetNrFPath(TStr(Bf).GetFPath());
247 }
#define IAssert(Cond)
Definition: bd.h:262
static TStr GetNrFPath(const TStr &FPath)
Definition: dt.cpp:1430
Definition: dt.h:412

The documentation for this class was generated from the following files: