Home || Architecture || Video Search || Visual Search || Scripts || Applications || Important Messages || OGL || Src

Impala::Persistency::FileSystem Class Reference

Provides access to (part of) the local/remote file system. More...

#include <FileSystem.h>

Collaboration diagram for Impala::Persistency::FileSystem:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 FileSystem (CString data, CString dataServer)
void SetDataPath (String data)
String GetDataPath ()
void SetOverride (bool override)
String MakeDir (CString dir)
String GetFilePath (CString file, bool toWrite, bool silent)
String GetFilePath (CString dir, CString file, bool toWrite, bool silent)
Util::IOBufferGetIOBuffer (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::ChannelGetDataChannel ()
void Dump () const

Private Member Functions

void DoMkDir (CString dir)
String DoMkDirPath (CString dir)
String DoMkDirPathLocal (CString dirWithBackSlashes)
String DoMkDirPathServer (CString 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::ChannelmDataChannel
 ILOG_VAR_DEC

Detailed Description

Provides access to (part of) the local/remote file system.

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.

Definition at line 33 of file FileSystem.h.


The documentation for this class was generated from the following file:
Generated on Fri Mar 19 11:35:13 2010 for ImpalaSrc by  doxygen 1.5.1