OpendTect-6_4  6.4
Classes | Enumerations | Functions | Variables
File Namespace Reference

Interface for several file and directory related services. More...

Classes

class  ViewPars
 

Enumerations

enum  ViewStyle { Text, Table, Log, Bin }
 

Functions

bool exists (const char *)
 
bool isEmpty (const char *)
 
bool isDirEmpty (const char *)
 
bool isFile (const char *)
 
bool isDirectory (const char *)
 
const char * getCanonicalPath (const char *)
 
const char * getAbsolutePath (const char *dir, const char *relfnm)
 
const char * getRelativePath (const char *reltodir, const char *fnm)
 
void makeRecursiveFileList (const char *dir, BufferStringSet &filelist, bool followlinks=false)
 
bool createLink (const char *from, const char *to)
 
bool isLink (const char *)
 
const char * linkTarget (const char *linkname)
 
const char * linkValue (const char *linkname)
 
void hide (const char *, bool yn)
 only Windows More...
 
bool isHidden (const char *)
 
bool isWritable (const char *)
 
bool makeWritable (const char *, bool yesno, bool recursive)
 
bool isExecutable (const char *)
 
bool makeExecutable (const char *, bool yesno)
 
bool setPermissions (const char *, const char *perms, bool recursive)
 
bool isFileInUse (const char *fnm)
 
bool createDir (const char *)
 
bool rename (const char *oldname, const char *newname)
 
bool copy (const char *from, const char *to, BufferString *errmsg=0)
 
ExecutorgetRecursiveCopier (const char *from, const char *to)
 
ExecutorgetRecursiveDeleter (const char *dirnm, const BufferStringSet *externallist=0, bool filesonly=false)
 
bool resize (const char *, int64_t)
 
bool remove (const char *)
 
bool saveCopy (const char *from, const char *to)
 
bool copyDir (const char *from, const char *to, BufferString *errmsg=0)
 
bool removeDir (const char *)
 
bool changeDir (const char *path)
 
bool getContent (const char *, BufferString &)
 
int64_t getFileSize (const char *fnm, bool followlink=true)
 bytes More...
 
int64_t getKbSize (const char *)
 
BufferString getFileSizeString (int64_t fileszinkb)
 
BufferString getFileSizeString (const char *fnm)
 
const char * timeCreated (const char *filenm, const char *fmt=Time::defDateTimeFmt())
 
const char * timeLastModified (const char *filenm, const char *fmt=Time::defDateTimeFmt())
 
int64_t getTimeInSeconds (const char *, bool modif=true)
 
int64_t getTimeInMilliSeconds (const char *fnm, bool lastmodif=true)
 
const char * getCurrentPath ()
 
const char * getHomePath ()
 
const char * getTempPath ()
 
const char * getRootPath (const char *path)
 
Export_Basic const EnumDefImpl< ViewStyle > & ViewStyleDef ()
 
Export_Basic const char ** ViewStyleNames ()
 
Export_Basic bool parseEnum (const IOPar &, const char *, ViewStyle &)
 
Export_Basic bool parseEnum (const char *, ViewStyle &)
 
Export_Basic bool parseEnumViewStyle (const char *, ViewStyle &)
 
Export_Basic ViewStyle parseEnumViewStyle (const char *)
 
Export_Basic const char * toString (ViewStyle)
 
Export_Basic uiString toUiString (ViewStyle)
 
Export_Basic const char * getViewStyleString (ViewStyle)
 
bool launchViewer (const char *, const ViewPars &vp=ViewPars())
 

Variables

const char * ViewStyleKeys_ []
 

Detailed Description

Interface for several file and directory related services.

Enumeration Type Documentation

Enumerator
Text 
Table 
Log 
Bin 

Function Documentation

bool File::changeDir ( const char *  path)
bool File::copy ( const char *  from,
const char *  to,
BufferString errmsg = 0 
)
bool File::copyDir ( const char *  from,
const char *  to,
BufferString errmsg = 0 
)
bool File::createDir ( const char *  )
bool File::createLink ( const char *  from,
const char *  to 
)
bool File::exists ( const char *  )
const char* File::getAbsolutePath ( const char *  dir,
const char *  relfnm 
)
const char* File::getCanonicalPath ( const char *  )
bool File::getContent ( const char *  ,
BufferString  
)
const char* File::getCurrentPath ( )
int64_t File::getFileSize ( const char *  fnm,
bool  followlink = true 
)

bytes

BufferString File::getFileSizeString ( int64_t  fileszinkb)
BufferString File::getFileSizeString ( const char *  fnm)
const char* File::getHomePath ( )
int64_t File::getKbSize ( const char *  )
Executor* File::getRecursiveCopier ( const char *  from,
const char *  to 
)
Executor* File::getRecursiveDeleter ( const char *  dirnm,
const BufferStringSet externallist = 0,
bool  filesonly = false 
)
const char* File::getRelativePath ( const char *  reltodir,
const char *  fnm 
)
const char* File::getRootPath ( const char *  path)
const char* File::getTempPath ( )
int64_t File::getTimeInMilliSeconds ( const char *  fnm,
bool  lastmodif = true 
)
int64_t File::getTimeInSeconds ( const char *  ,
bool  modif = true 
)
Export_Basic const char* File::getViewStyleString ( ViewStyle  )
void File::hide ( const char *  ,
bool  yn 
)

only Windows

bool File::isDirectory ( const char *  )
bool File::isDirEmpty ( const char *  )
bool File::isEmpty ( const char *  )
bool File::isExecutable ( const char *  )
bool File::isFile ( const char *  )
bool File::isFileInUse ( const char *  fnm)
bool File::isHidden ( const char *  )
bool File::isLink ( const char *  )
bool File::isWritable ( const char *  )
bool File::launchViewer ( const char *  ,
const ViewPars vp = ViewPars() 
)
const char* File::linkTarget ( const char *  linkname)
const char* File::linkValue ( const char *  linkname)
bool File::makeExecutable ( const char *  ,
bool  yesno 
)
void File::makeRecursiveFileList ( const char *  dir,
BufferStringSet filelist,
bool  followlinks = false 
)
bool File::makeWritable ( const char *  ,
bool  yesno,
bool  recursive 
)
Export_Basic bool File::parseEnum ( const char *  ,
ViewStyle  
)
Export_Basic bool File::parseEnum ( const IOPar ,
const char *  ,
ViewStyle  
)
Export_Basic ViewStyle File::parseEnumViewStyle ( const char *  )
Export_Basic bool File::parseEnumViewStyle ( const char *  ,
ViewStyle  
)
bool File::remove ( const char *  )
bool File::removeDir ( const char *  )
bool File::rename ( const char *  oldname,
const char *  newname 
)
bool File::resize ( const char *  ,
int64_t   
)
bool File::saveCopy ( const char *  from,
const char *  to 
)
bool File::setPermissions ( const char *  ,
const char *  perms,
bool  recursive 
)
const char* File::timeCreated ( const char *  filenm,
const char *  fmt = Time::defDateTimeFmt() 
)
const char* File::timeLastModified ( const char *  filenm,
const char *  fmt = Time::defDateTimeFmt() 
)
Export_Basic const char* File::toString ( ViewStyle  )
Export_Basic uiString File::toUiString ( ViewStyle  )
Export_Basic const EnumDefImpl< ViewStyle >& File::ViewStyleDef ( )
Export_Basic const char** File::ViewStyleNames ( )

Variable Documentation

const char* File::ViewStyleKeys_[]

Generated at for the OpendTect seismic interpretation project. Copyright (C): dGB Beheer B. V. 2019