H::UtilFile Class Reference

Main UtilFile class. More...

#include <UtilFile.hpp>

List of all members.

Public Member Functions

 UtilFile ()
 Default Constructor.
virtual ~UtilFile ()

Static Public Member Functions

static bool createDirectory (std::string const &FileName)
 Create a directory.
static void relativeToAbsolute (std::string &FilePath)
 create a directory
static bool touch (std::string const &FilePath)
 Relative to absolute path.
static bool touchRecursive (std::string const &FilePath, bool DoRecursive=true)
 Recursively touch a file / directory.

Detailed Description

Main UtilFile class.

This is an interface for classes wishing to receive socket events

Definition at line 60 of file UtilFile.hpp.

Member Function Documentation

bool UtilFile::createDirectory ( std::string const &  FileName  )  [static]

Create a directory.

FileName The directory to create
true on success

Definition at line 99 of file UtilFile.cpp.

Referenced by touch().

void UtilFile::relativeToAbsolute ( std::string &  FilePath  )  [static]

create a directory

Change a file path from relative to absolute.

FilePath The path

Definition at line 114 of file UtilFile.cpp.

References DIRSTR.

bool UtilFile::touch ( std::string const &  FilePath  )  [static]

Relative to absolute path.

Touch a file.

Touch a file / directory

FilePath The file / directory to touch
true on success

Definition at line 129 of file UtilFile.cpp.

References createDirectory(), and DIRCHAR.

Referenced by touchRecursive().

bool UtilFile::touchRecursive ( std::string const &  FilePath,
bool  DoRecursive = true 
) [static]

Recursively touch a file / directory.

Recursively touch a file.

FilePath The file to touch
DoRecursive Do the operation recursively if true
true on success

Definition at line 149 of file UtilFile.cpp.

References DIRCHAR, DIRSTR, and touch().

The documentation for this class was generated from the following files:
Generated on Wed Nov 7 10:07:20 2007 for gizmod by  doxygen 1.5.3