Main Page | Class Hierarchy | Class List | Directories | File List | Class Members | File Members | Related Pages | Examples

ArServerFileUtil Class Reference

This is a static class with some functions for helping with filenames and what not. More...

#include <ArServerFileUtils.h>

List of all members.

Static Public Member Functions

static bool getDirectory (const char *fileName, char *result, size_t resultLen)
 Pulls the directory out of a file name.
static bool getFileName (const char *fileName, char *result, size_t resultLen)
 Pulls the filename out of the file name.
static bool squashCase (const char *baseDir, const char *fileName, char *result, size_t resultLen)
 this squashes the case out of what file we want

Static Protected Member Functions

static std::list< std::string > splitFileName (const char *fileName)
 this splits up a file name (it isn't exported since it'd crash with dlls)


Detailed Description

This is a static class with some functions for helping with filenames and what not.

Definition at line 35 of file ArServerFileUtils.h.


Member Function Documentation

bool ArServerFileUtil::getDirectory const char *  fileName,
char *  result,
size_t  resultLen
[static]
 

Pulls the directory out of a file name.

Definition at line 152 of file ArServerFileUtils.cpp.

References ArUtil::fixSlashes(), and ArLog::log().

bool ArServerFileUtil::getFileName const char *  fileName,
char *  result,
size_t  resultLen
[static]
 

Pulls the filename out of the file name.

Definition at line 190 of file ArServerFileUtils.cpp.

References ArUtil::fixSlashes(), and ArLog::log().

std::list< std::string > ArServerFileUtil::splitFileName const char *  fileName  )  [static, protected]
 

this splits up a file name (it isn't exported since it'd crash with dlls)

Definition at line 244 of file ArServerFileUtils.cpp.

References ArLog::log().

Referenced by squashCase().

bool ArServerFileUtil::squashCase const char *  baseDir,
const char *  fileName,
char *  result,
size_t  resultLen
[static]
 

this squashes the case out of what file we want

Parameters:
baseDir the base directory to work from
fileName the fileName to squash the case from
result where to put the result
resultLen length of the result
Returns:
true if it could find the file, the result is in result, false if it couldn't find the file

Definition at line 45 of file ArServerFileUtils.cpp.

References ArLog::log(), and splitFileName().


The documentation for this class was generated from the following files:
Generated on Tue Feb 20 10:51:51 2007 for ArNetworking by  doxygen 1.4.0