LLDir_Linux Class Reference

#include <lldir_linux.h>

Inheritance diagram for LLDir_Linux:

Inheritance graph
[legend]
Collaboration diagram for LLDir_Linux:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 LLDir_Linux ()
virtual ~LLDir_Linux ()
virtual void initAppDirs (const std::string &app_name)
virtual std::string getCurPath ()
virtual U32 countFilesInDir (const std::string &dirname, const std::string &mask)
virtual BOOL getNextFileInDir (const std::string &dirname, const std::string &mask, std::string &fname, BOOL wrap)
virtual void getRandomFileInDir (const std::string &dirname, const std::string &mask, std::string &fname)
BOOL fileExists (const std::string &filename)

Private Attributes

DIR * mDirp
int mCurrentDirIndex
int mCurrentDirCount
std::string mCurrentDir


Detailed Description

Definition at line 40 of file lldir_linux.h.


Constructor & Destructor Documentation

LLDir_Linux::LLDir_Linux (  ) 

LLDir_Linux::~LLDir_Linux (  )  [virtual]

Definition at line 130 of file lldir_linux.cpp.


Member Function Documentation

void LLDir_Linux::initAppDirs ( const std::string &  app_name  )  [virtual]

std::string LLDir_Linux::getCurPath (  )  [virtual]

Implements LLDir.

Definition at line 340 of file lldir_linux.cpp.

References LL_MAX_PATH, llendl, llwarns, and NULL.

U32 LLDir_Linux::countFilesInDir ( const std::string &  dirname,
const std::string &  mask 
) [virtual]

Implements LLDir.

Definition at line 213 of file lldir_linux.cpp.

References NULL.

Referenced by getRandomFileInDir().

Here is the caller graph for this function:

BOOL LLDir_Linux::getNextFileInDir ( const std::string &  dirname,
const std::string &  mask,
std::string &  fname,
BOOL  wrap 
) [virtual]

Implements LLDir.

Definition at line 234 of file lldir_linux.cpp.

References FALSE, mCurrentDir, mCurrentDirCount, mCurrentDirIndex, NULL, and TRUE.

void LLDir_Linux::getRandomFileInDir ( const std::string &  dirname,
const std::string &  mask,
std::string &  fname 
) [virtual]

Implements LLDir.

Definition at line 300 of file lldir_linux.cpp.

References countFilesInDir(), ll_rand(), NULL, and S32.

Here is the call graph for this function:

BOOL LLDir_Linux::fileExists ( const std::string &  filename  )  [virtual]

Implements LLDir.

Definition at line 352 of file lldir_linux.cpp.

References FALSE, and TRUE.


Member Data Documentation

DIR* LLDir_Linux::mDirp [private]

Definition at line 55 of file lldir_linux.h.

Referenced by LLDir_Linux().

Definition at line 56 of file lldir_linux.h.

Referenced by getNextFileInDir(), and LLDir_Linux().

Definition at line 57 of file lldir_linux.h.

Referenced by getNextFileInDir(), and LLDir_Linux().

std::string LLDir_Linux::mCurrentDir [private]

Definition at line 58 of file lldir_linux.h.

Referenced by getNextFileInDir().


The documentation for this class was generated from the following files:

Generated on Fri May 16 08:43:44 2008 for SecondLife by  doxygen 1.5.5