TrinityCore
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
fileutils.cpp File Reference
#include <cstring>
#include <cstdio>
#include "G3D/platform.h"
#include "G3D/fileutils.h"
#include "G3D/BinaryInput.h"
#include "G3D/BinaryOutput.h"
#include "G3D/g3dmath.h"
#include "G3D/stringutils.h"
#include "G3D/Set.h"
#include "G3D/g3dfnmatch.h"
#include "G3D/FileSystem.h"
#include <sys/stat.h>
#include <sys/types.h>
#include <dirent.h>
#include <fnmatch.h>
#include <unistd.h>
+ Include dependency graph for fileutils.cpp:

Namespaces

 G3D
 
 G3D::_internal
 

Macros

#define _getcwd   getcwd
 
#define _stat   stat
 

Functions

std::string G3D::pathConcat (const std::string &dirname, const std::string &file)
 
std::string G3D::resolveFilename (const std::string &filename)
 
bool G3D::zipfileExists (const std::string &filename)
 
std::string G3D::readWholeFile (const std::string &filename)
 
int64 G3D::fileLength (const std::string &filename)
 
void G3D::writeWholeFile (const std::string &filename, const std::string &str, bool flush=true)
 
void G3D::createDirectory (const std::string &dir)
 
bool G3D::zipfileExists (const std::string &filename, std::string &outZipfile, std::string &outInternalFile)
 
std::string G3D::generateFilenameBase (const std::string &prefix="", const std::string &suffix="")
 
void G3D::copyFile (const std::string &source, const std::string &dest)
 
void G3D::parseFilename (const std::string &filename, std::string &drive, Array< std::string > &path, std::string &base, std::string &ext)
 
static void G3D::getFileOrDirListNormal (const std::string &filespec, Array< std::string > &files, bool wantFiles, bool includePath)
 
static void G3D::getFileOrDirListZip (const std::string &path, const std::string &prefix, Array< std::string > &files, bool wantFiles, bool includePath)
 
static void G3D::determineFileOrDirList (const std::string &filespec, Array< std::string > &files, bool wantFiles, bool includePath)
 
void G3D::getFiles (const std::string &filespec, Array< std::string > &files, bool includePath)
 
void G3D::getDirs (const std::string &filespec, Array< std::string > &files, bool includePath)
 
std::string G3D::filenameBaseExt (const std::string &filename)
 
std::string G3D::filenameBase (const std::string &filename)
 
std::string G3D::filenameExt (const std::string &filename)
 
std::string G3D::filenamePath (const std::string &filename)
 
bool G3D::isZipfile (const std::string &filename)
 
bool G3D::isDirectory (const std::string &filename)
 
bool G3D::filenameContainsWildcards (const std::string &filename)
 
bool G3D::fileIsNewer (const std::string &src, const std::string &dst)
 

Variables

Set< std::string > G3D::_internal::currentFilesUsed
 

Detailed Description

Author
Morgan McGuire, graphics3d.com
2002-06-06 2010-02-05

Macro Definition Documentation

#define _getcwd   getcwd
#define _stat   stat