OpendTect
7.0
|
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 | checkDir (const char *fnm, bool forread, uiString *errmsg=nullptr) |
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 () |
std::int64_t | getFileSize (const char *fnm, bool followlink=true) |
bytes More... | |
BufferString | getFileSizeString (const char *fnm) |
BufferString | getFileSizeString (std::int64_t fileszinkb) |
const char * | getHomePath () |
std::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 () |
std::int64_t | getTimeInMilliSeconds (const char *fnm, bool lastmodif=true) |
std::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 | isURI (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 *, std::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 () |
bool | waitUntilExists (const char *fnm, double maxwaittm, double *actualwaited) |
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::checkDir | ( | const char * | fnm, |
bool | forread, | ||
uiString * | errmsg = nullptr |
||
) |
checks if the parent directory of a file is readable/writable
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 | ( | ) |
std::int64_t File::getFileSize | ( | const char * | fnm, |
bool | followlink = true |
||
) |
bytes
BufferString File::getFileSizeString | ( | const char * | fnm | ) |
BufferString File::getFileSizeString | ( | std::int64_t | fileszinkb | ) |
const char* File::getHomePath | ( | ) |
std::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 | ( | ) |
std::int64_t File::getTimeInMilliSeconds | ( | const char * | fnm, |
bool | lastmodif = true |
||
) |
std::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::isURI | ( | 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 * | , |
std::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 | ( | ) |
bool File::waitUntilExists | ( | const char * | fnm, |
double | maxwaittm, | ||
double * | actualwaited | ||
) |
|
extern |
Generated at for the OpendTect seismic interpretation project. Copyright (C): dGB Beheer B.V. 1995-2024