FileList Class Reference

#include <FileList.h>

List of all members.

Public Types

typedef std::list
< std::string
ListType

Public Member Functions

 FileList (const std::string &directory, const std::string &filter="*.*", bool fullPath=true, bool recurse=false)
virtual ~FileList ()
bool getStatus ()
ListTypegetFiles ()

Protected Member Functions

bool readFiles (const std::string &directory, const std::string &filter, bool fullPath)
bool addAllFiles (const std::string &baseDir, const std::string &directory, const std::string &filter, bool fullPath)

Protected Attributes

ListType files_
bool status_


Detailed Description

Definition at line 27 of file FileList.h.


Member Typedef Documentation

typedef std::list<std::string> FileList::ListType

Definition at line 30 of file FileList.h.


Constructor & Destructor Documentation

FileList::FileList ( const std::string directory,
const std::string filter = "*.*",
bool  fullPath = true,
bool  recurse = false 
)

Definition at line 39 of file FileList.cpp.

References addAllFiles(), readFiles(), and status_.

FileList::~FileList (  )  [virtual]

Definition at line 53 of file FileList.cpp.


Member Function Documentation

bool FileList::getStatus (  ) 

Definition at line 103 of file FileList.cpp.

References status_.

Referenced by addAllFiles(), SaveSelectDialog::display(), and ServerWebHandler::LogFileHandler::processRequest().

ListType& FileList::getFiles (  )  [inline]

Definition at line 38 of file FileList.h.

References files_.

Referenced by addAllFiles(), GLWImageList::addDirectory(), SaveSelectDialog::display(), LUAScriptHook::loadHooks(), ModFiles::loadModDir(), ModFiles::loadModFiles(), and ServerWebHandler::LogFileHandler::processRequest().

bool FileList::readFiles ( const std::string directory,
const std::string filter,
bool  fullPath 
) [protected]

Definition at line 108 of file FileList.cpp.

References files_, HANDLE(), and NULL.

Referenced by FileList().

bool FileList::addAllFiles ( const std::string baseDir,
const std::string directory,
const std::string filter,
bool  fullPath 
) [protected]

Definition at line 58 of file FileList.cpp.

References files_, getFiles(), getStatus(), and MIN.

Referenced by FileList().


Member Data Documentation

ListType FileList::files_ [protected]

Definition at line 41 of file FileList.h.

Referenced by addAllFiles(), getFiles(), and readFiles().

bool FileList::status_ [protected]

Definition at line 42 of file FileList.h.

Referenced by FileList(), and getStatus().


The documentation for this class was generated from the following files:
Generated on Mon Feb 16 15:15:01 2009 for Scorched3D by  doxygen 1.5.3