Typedefs | Functions | Variables

file.cpp File Reference

#include "file.h"
#include "common/wave_ex.h"
#include <ctype.h>
#include <sstream>
Include dependency graph for file.cpp:

Go to the source code of this file.

Typedefs

typedef struct stat stat_t

Functions

const char * GetExtension (IN const char *filename) throw ()
bool hasExtension (IN const char *filename, IN const char *extension) throw ()
 returns true if the given filename ends with the specified string (NOT case-sensitive)
void GetFileRoot (IN const char *filename, OUT std::string &root_name)
void GetParentDirectory (IN const char *filename, OUT std::string &directory) throw ()
const char * getTopDirectory (IN const char *filename, OUT std::string &topDir)
 retrieves the highest known folder for the given file.
const char * GetFilename (IN const char *path) throw ()
void getTempfile (IN const char *filename, OUT std::string &tempfile) throw ()
void getUserHomePath (OUT std::string &path)
bool ContainsWhitespace (IN const char *test) throw ()
bool doesPathExist (IN const char *path) throw ()
void createEmptyFileIfDoesNotExist (IN const char *path) throw ()
bool matchesExtension (IN const char *filename, IN const char *extension) throw ()
void walkDirectoryTree (IN const char *rootDir, IN const char *matchExt, OUT VecString &paths)
 does a recursive directory walk, and returns all paths relative to root
std::string getPathRelativeTo (IN const char *startFile, IN const char *relPath)
 given a starting filename, and then a path relative to that, return the full path of the file.
void appendPath (IN const char *parentDirectory, IN const char *nextPath, OUT std::string &path)
 given a starting path (directory), append another piece of the path

Variables

static const char s_separator

Typedef Documentation

typedef struct stat stat_t

Definition at line 371 of file file.cpp.


Function Documentation

bool matchesExtension ( IN const char *  filename,
IN const char *  extension 
) throw ()

Definition at line 419 of file file.cpp.


Variable Documentation

const char s_separator [static]
Initial value:




        '/'

Definition at line 43 of file file.cpp.