class VFileSystem

Class to abstact file system operations

Public Methods

static void createDir( const string& dirName ) throw(VException&)
Create a directory
static bool dirExists( const string& dirName ) throw(VException&)
Check if a directory exists
static bool fileExists( const string& fileName ) throw(VException&)
Check if a file exists
static int getFileSize( const string& fileName) throw(VException&)
Get the size of a file
static TimeStamp getFileTime( const string& fileName) throw(VException&)
Get the time stamp of when a file was last modified
static StringList readDir( const string& dirName) throw(VException&)
Find all the entires in a dirctory (ignores . and ..)
static string readFile( const string& fileName ) throw(VException&)
read in a file
static void removeDir( const string& dirName ) throw(VException&)
Remove a directory
static void removeFile( const string& fileName ) throw(VException&)
Remove a file
static void setFileTime( const string& fileName, TimeStamp time ) throw(VException&)
Set the time stamp on a file
static void VFileSystem::writeFile( const string& fileName, const string& data ) throw(VException&)
Write data to the given file

Documentation

Class to abstact file system operations
static string readFile( const string& fileName ) throw(VException&)
read in a file

static void VFileSystem::writeFile( const string& fileName, const string& data ) throw(VException&)
Write data to the given file

static void setFileTime( const string& fileName, TimeStamp time ) throw(VException&)
Set the time stamp on a file

static TimeStamp getFileTime( const string& fileName) throw(VException&)
Get the time stamp of when a file was last modified

static int getFileSize( const string& fileName) throw(VException&)
Get the size of a file

static void removeFile( const string& fileName ) throw(VException&)
Remove a file

static bool fileExists( const string& fileName ) throw(VException&)
Check if a file exists

static void createDir( const string& dirName ) throw(VException&)
Create a directory

static void removeDir( const string& dirName ) throw(VException&)
Remove a directory

static bool dirExists( const string& dirName ) throw(VException&)
Check if a directory exists

static StringList readDir( const string& dirName) throw(VException&)
Find all the entires in a dirctory (ignores . and ..)


This class has no child classes.

alphabetic index hierarchy of classes


generated by doc++