OpendTect
7.0
|
Interface to files and directories, whether local or cloud. More...
Public Member Functions | |
virtual bool | copy (const char *from, const char *to, uiString *errmsg=nullptr) const |
virtual bool | createDirectory (const char *) const |
virtual StreamData | createIStream (const char *, bool binary=true) const =0 |
virtual StreamData | createOStream (const char *, bool binary=true, bool inplaceedit=false) const =0 |
const BufferString & | errMsg () const |
virtual bool | exists (const char *) const |
virtual std::int64_t | getFileSize (const char *, bool followlink) const |
0 for non-existing, -1 for unknown More... | |
virtual BufferString | iconName () const |
virtual bool | isDirectory (const char *) const |
virtual bool | isFile (const char *) const |
virtual bool | isReadable (const char *) const =0 |
virtual bool | isWritable (const char *) const |
virtual bool | listDirectory (const char *, File::DirListType, BufferStringSet &, const char *mask) const |
virtual bool | operationsSupported () const |
virtual const char * | protocol () const =0 |
virtual bool | queriesSupported () const |
virtual bool | readingSupported () const |
virtual bool | remove (const char *, bool recursive=true) const |
virtual bool | rename (const char *from, const char *to, uiString *errmsg=nullptr) const |
virtual bool | setWritable (const char *, bool yn, bool recursive=true) const |
virtual BufferString | timeCreated (const char *) const |
virtual BufferString | timeLastModified (const char *) const |
virtual uiString | userName () const =0 |
virtual bool | writingSupported () const |
Static Public Member Functions | |
static const FileSystemAccess & | get (const char *fnm) |
static const FileSystemAccess & | getByProtocol (const char *prot) |
static const FileSystemAccess & | getLocal () |
static BufferString | getProtocol (const char *fnm) |
static void | getProtocolNames (BufferStringSet &, bool forread) |
static BufferString | iconForProtocol (const char *) |
static BufferString | withoutProtocol (const char *) |
static BufferString | withProtocol (const char *fnm, const char *prot) |
Protected Member Functions | |
virtual | ~FileSystemAccess () |
Static Protected Member Functions | |
static const FileSystemAccess & | gtByProt (BufferString &) |
Protected Attributes | |
BufferString | errmsg_ |
Interface to files and directories, whether local or cloud.
OpendTect objects will always, one way or the other, use this interface to: Get information about files (and directories) Manipulate files (remove, rename, etc.) Get streams to read or write content
Utilties like od_stream's and File::exists() will use an instance of this class to get their services.
<>
|
inlineprotectedvirtual |
|
inlinevirtual |
|
inlinevirtual |
|
pure virtual |
keep binary==true also for text files unless you know what you are doing. win32 thing only.
|
pure virtual |
keep binary==true also for text files unless you know what you are doing. win32 thing only.
|
inline |
|
virtual |
|
static |
Looks at first part of filename to determine what system it belongs to. If nothing matches, local FileSystemAccess will be returned.
|
static |
|
virtual |
0 for non-existing, -1 for unknown
|
static |
|
static |
|
static |
|
staticprotected |
|
static |
|
inlinevirtual |
|
inlinevirtual |
|
virtual |
|
pure virtual |
|
inlinevirtual |
|
inlinevirtual |
|
inlinevirtual |
|
pure virtual |
|
inlinevirtual |
|
inlinevirtual |
|
inlinevirtual |
|
inlinevirtual |
|
inlinevirtual |
|
inlinevirtual |
|
inlinevirtual |
|
pure virtual |
|
static |
|
static |
|
inlinevirtual |
|
mutableprotected |
Generated at for the OpendTect seismic interpretation project. Copyright (C): dGB Beheer B.V. 1995-2024