OpendTect
6.6
|
Interface for several file and directory related services. More...
Classes | |
class | ViewPars |
Enumerations | |
enum | DirListType { AllEntriesInDir , FilesInDir , DirsInDir } |
enum | ViewStyle { Text , Table , Log , Bin } |
Functions | |
const char * | allFilesFilter () |
const char * | asciiFilesFilter () |
bool | changeDir (const char *path) |
bool | copy (const char *from, const char *to, BufferString *errmsg=0) |
bool | copyDir (const char *from, const char *to, BufferString *errmsg=0) |
bool | createDir (const char *) |
bool | createLink (const char *from, const char *to) |
bool | exists (const char *) |
BufferString | findExecutable (const char *exenm, const BufferStringSet &paths, bool includesyspath=true) |
const char * | getAbsolutePath (const char *dir, const char *relfnm) |
const char * | getCanonicalPath (const char *) |
bool | getContent (const char *, BufferString &) |
const char * | getCurrentPath () |
int64_t | getFileSize (const char *fnm, bool followlink=true) |
bytes More... | |
BufferString | getFileSizeString (const char *fnm) |
BufferString | getFileSizeString (int64_t fileszinkb) |
const char * | getHomePath () |
int64_t | getKbSize (const char *) |
Executor * | getRecursiveCopier (const char *from, const char *to) |
Executor * | getRecursiveDeleter (const char *dirnm, const BufferStringSet *externallist=0, bool filesonly=false) |
const char * | getRelativePath (const char *reltodir, const char *fnm) |
const char * | getRootPath (const char *path) |
const char * | getTempPath () |
int64_t | getTimeInMilliSeconds (const char *fnm, bool lastmodif=true) |
int64_t | getTimeInSeconds (const char *, bool modif=true) |
const char * | getUserAppDataPath () |
const char * | getViewStyleString (ViewStyle) |
bool | hasSystemFileAttrib (const char *) |
void | hide (const char *, bool yn) |
only Windows More... | |
bool | initTempDir () |
bool | isDirectory (const char *) |
bool | isDirEmpty (const char *) |
bool | isEmpty (const char *) |
bool | isExecutable (const char *) |
bool | isFile (const char *) |
bool | isFileInUse (const char *fnm) |
bool | isHidden (const char *) |
bool | isInUse (const char *fnm) |
bool | isLink (const char *) |
bool | isReadable (const char *) |
bool | isWritable (const char *) |
bool | launchViewer (const char *, const ViewPars &vp=ViewPars()) |
const char * | linkEnd (const char *linkname) |
const char * | linkTarget (const char *linkname) |
Direct, first target. More... | |
const char * | linkValue (const char *linkname) |
not sure why and when to use - used by zip More... | |
bool | listDir (const char *, DirListType, BufferStringSet &fnames, const char *mask=0) |
bool | makeExecutable (const char *, bool yesno) |
bool | makeReadOnly (const char *fnm, bool recursive) |
void | makeRecursiveFileList (const char *dir, BufferStringSet &filelist, bool followlinks=false) |
bool | makeWritable (const char *, bool yesno, bool recursive) |
bool | parseEnum (const char *, ViewStyle &) |
bool | parseEnum (const IOPar &, const char *, ViewStyle &) |
ViewStyle | parseEnumViewStyle (const char *) |
bool | parseEnumViewStyle (const char *, ViewStyle &) |
bool | remove (const char *) |
bool | removeDir (const char *) |
bool | rename (const char *oldname, const char *newname, uiString *errmsg=nullptr) |
bool | resize (const char *, int64_t) |
bool | saveCopy (const char *from, const char *to) |
bool | setPermissions (const char *, const char *perms, bool recursive) |
void | setSystemFileAttrib (const char *, bool yn) |
const char * | textFilesFilter () |
const char * | timeCreated (const char *filenm, const char *fmt=Time::defDateTimeFmt()) |
const char * | timeLastModified (const char *filenm, const char *fmt=Time::defDateTimeFmt()) |
const char * | toString (ViewStyle) |
uiString | toUiString (ViewStyle) |
const EnumDefImpl< ViewStyle > & | ViewStyleDef () |
const char ** | ViewStyleNames () |
Variables | |
const char * | ViewStyleKeys_ [] |
Interface for several file and directory related services.
enum File::DirListType |
enum File::ViewStyle |
const char* File::allFilesFilter | ( | ) |
const char* File::asciiFilesFilter | ( | ) |
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 * | ) |
BufferString File::findExecutable | ( | const char * | exenm, |
const BufferStringSet & | paths, | ||
bool | includesyspath = true |
||
) |
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 | ( | const char * | fnm | ) |
BufferString File::getFileSizeString | ( | int64_t | fileszinkb | ) |
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 |
||
) |
const char* File::getUserAppDataPath | ( | ) |
const char* File::getViewStyleString | ( | ViewStyle | ) |
bool File::hasSystemFileAttrib | ( | const char * | ) |
void File::hide | ( | const char * | , |
bool | yn | ||
) |
only Windows
bool File::initTempDir | ( | ) |
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::isInUse | ( | const char * | fnm | ) |
bool File::isLink | ( | const char * | ) |
bool File::isReadable | ( | const char * | ) |
bool File::isWritable | ( | const char * | ) |
const char* File::linkEnd | ( | const char * | linkname | ) |
'Final' destination of link protected against circular links
const char* File::linkTarget | ( | const char * | linkname | ) |
Direct, first target.
const char* File::linkValue | ( | const char * | linkname | ) |
not sure why and when to use - used by zip
bool File::listDir | ( | const char * | , |
DirListType | , | ||
BufferStringSet & | fnames, | ||
const char * | mask = 0 |
||
) |
bool File::makeExecutable | ( | const char * | , |
bool | yesno | ||
) |
bool File::makeReadOnly | ( | const char * | fnm, |
bool | recursive | ||
) |
void File::makeRecursiveFileList | ( | const char * | dir, |
BufferStringSet & | filelist, | ||
bool | followlinks = false |
||
) |
bool File::makeWritable | ( | const char * | , |
bool | yesno, | ||
bool | recursive | ||
) |
bool File::parseEnum | ( | const char * | , |
ViewStyle & | |||
) |
ViewStyle File::parseEnumViewStyle | ( | const char * | ) |
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, | ||
uiString * | errmsg = nullptr |
||
) |
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 | ||
) |
void File::setSystemFileAttrib | ( | const char * | , |
bool | yn | ||
) |
const char* File::textFilesFilter | ( | ) |
const char* File::timeCreated | ( | const char * | filenm, |
const char * | fmt = Time::defDateTimeFmt() |
||
) |
const char* File::timeLastModified | ( | const char * | filenm, |
const char * | fmt = Time::defDateTimeFmt() |
||
) |
const char* File::toString | ( | ViewStyle | ) |
const EnumDefImpl< ViewStyle >& File::ViewStyleDef | ( | ) |
const char** File::ViewStyleNames | ( | ) |
|
extern |
Generated at for the OpendTect seismic interpretation project. Copyright (C): dGB Beheer B.V. 1995-2022