Main Page | Namespace List | Class Hierarchy | Class List | File List | Namespace Members | Class Members | File Members

RageFileManager.cpp File Reference

#include "global.h"
#include "StepMania.h"
#include "RageFileManager.h"
#include "RageFileDriver.h"
#include "RageUtil.h"
#include "RageUtil_FileDB.h"
#include "RageLog.h"
#include "RageThreads.h"
#include <cerrno>

Classes

struct  LoadedDriver
class  RageFileDriverMountpoints

Typedefs

typedef map< const RageFileBasic *,
RageFileDriver * > 
FileReferences

Functions

void ReferenceAllDrivers (vector< LoadedDriver > &aDriverList)
void UnreferenceAllDrivers (vector< LoadedDriver > &aDriverList)
bool GrabDriver (RageFileDriver *pDriver)
CString GetDirOfExecutable (CString argv0)
void ChangeToDirOfExecutable (CString argv0)
void NormalizePath (CString &sPath)
bool ilt (const CString &a, const CString &b)
bool ieq (const CString &a, const CString &b)
bool SortBySecond (const pair< int, int > &a, const pair< int, int > &b)
void AddReference (const RageFileBasic *obj, RageFileDriver *driver)
void RemoveReference (const RageFileBasic *obj)
bool PathUsesSlowFlush (const CString &sPath)
bool DoesFileExist (const CString &sPath)
bool IsAFile (const CString &sPath)
bool IsADirectory (const CString &sPath)
unsigned GetFileSizeInBytes (const CString &sPath)
void GetDirListing (const CString &sPath, CStringArray &AddTo, bool bOnlyDirs, bool bReturnPathToo)
void FlushDirCache ()
unsigned int GetHashForFile (const CString &sPath)
unsigned int GetHashForDirectory (const CString &sDir)

Variables

RageFileManagerFILEMAN = NULL
RageEventg_Mutex
CString InitialWorkingDirectory
CString DirOfExecutable
FileReferences g_Refs
vector< LoadedDriverg_Drivers
RageFileDriverMountpointsg_Mountpoints = NULL

Typedef Documentation

typedef map< const RageFileBasic *, RageFileDriver * > FileReferences
 


Function Documentation

void AddReference const RageFileBasic obj,
RageFileDriver driver
 

void ChangeToDirOfExecutable CString  argv0  )  [static]
 

bool DoesFileExist const CString &  sPath  ) 
 

void FlushDirCache  ) 
 

void GetDirListing const CString &  sPath,
CStringArray &  AddTo,
bool  bOnlyDirs,
bool  bReturnPathToo
 

CString GetDirOfExecutable CString  argv0  )  [static]
 

unsigned GetFileSizeInBytes const CString &  sPath  ) 
 

unsigned int GetHashForDirectory const CString &  sDir  ) 
 

unsigned int GetHashForFile const CString &  sPath  ) 
 

bool GrabDriver RageFileDriver pDriver  ) 
 

bool ieq const CString &  a,
const CString &  b
 

bool ilt const CString &  a,
const CString &  b
 

bool IsADirectory const CString &  sPath  ) 
 

bool IsAFile const CString &  sPath  ) 
 

void NormalizePath CString &  sPath  )  [static]
 

bool PathUsesSlowFlush const CString &  sPath  )  [static]
 

void ReferenceAllDrivers vector< LoadedDriver > &  aDriverList  ) 
 

void RemoveReference const RageFileBasic obj  ) 
 

bool SortBySecond const pair< int, int > &  a,
const pair< int, int > &  b
[static]
 

void UnreferenceAllDrivers vector< LoadedDriver > &  aDriverList  ) 
 


Variable Documentation

CString DirOfExecutable
 

RageFileManager* FILEMAN = NULL
 

vector<LoadedDriver> g_Drivers [static]
 

RageFileDriverMountpoints* g_Mountpoints = NULL [static]
 

RageEvent* g_Mutex [static]
 

FileReferences g_Refs [static]
 

CString InitialWorkingDirectory
 


Generated on Thu Jan 27 20:57:50 2005 for StepMania by doxygen 1.3.7