|
Public Member Functions |
| | FileSystem (CString data, CString dataServer) |
| bool | Valid () const |
| void | SetDataPath (String data) |
| String | GetDataPath () |
| void | SetOverride (bool override) |
| String | MakeDir (CString dir) |
| void | DeleteDir (CString dir) |
| String | GetFilePath (CString file, bool toWrite, bool silent) |
| String | GetFilePath (CString dir, CString file, bool toWrite, bool silent) |
| void | DeleteFile (CString path) |
| Util::IOBuffer * | GetIOBuffer (CString fileName, bool readMode, bool useMemoryIfLocal, String useLocalFileIfRemote, Int64 useLocalSizeIfRemote=0, bool useIOBufferChannel=false) |
| | Obtain a new IOBuffer to read/write the given fileName.
|
| Util::Channel * | GetDataChannel () |
| void | Dump () const |
Private Member Functions |
| void | DoMkDir (CString dir) |
| String | DoMkDirPath (CString dir) |
| String | DoMkDirPathLocal (CString dirWithBackSlashes) |
| String | DoMkDirPathServer (CString dir) |
| void | DoDeleteDir (String dir) |
| String | GetReadableFile (StringListCI begin, StringListCI end, CString file, bool silent) |
| String | GetReadableFileLocal (StringListCI begin, StringListCI end, CString file, bool silent) |
| String | GetReadableFileServer (CString file, bool silent) |
| String | GetWritableFile (StringListCI begin, StringListCI end, CString file, bool silent) |
| String | GetWritableFileLocal (StringListCI begin, StringListCI end, CString file, bool silent) |
| String | GetWritableFileServer (CString file, bool silent) |
| String | ConcatDir (CString dir, CString subDir) |
Private Attributes |
| bool | mOverride |
| String | mDataString |
| StringList | mData |
| String | mDataServer |
| Util::Channel * | mDataChannel |
| | ILOG_VAR_DEC |
Part of refers to the fact that read and write access may be limited by specifying (a number of) roots via the "data" path. The "data" path is a ';' seperated list of directories in the real file system to ease/shorten file naming. Writing is only allowed in the first root. For reading, all root are inspected in order. The dataServer argument indicates whether the file system is remote.