ContainerCollector Class Reference

Inheritance diagram for ContainerCollector:

Inheritance graph
[legend]
List of all members.

Public Member Functions

 ContainerCollector (void)
void init (const char *wildcard)
void addfile (const char *filename, const pncontainerstream stream, int directoryLevel)
FileIndexgetfile (const ASCString &filename)
FileIndexgetfirstname (void)
FileIndexgetnextname (void)
ASCString listContainer ()
virtual ~ContainerCollector ()

Protected Attributes

dynamic_array< FileIndexindex [256]
dynamic_array< pncontainerstreamcontainer
int containernum
struct {
   int   alpha
   int   index
namesearch

Classes

struct  FileIndex

Detailed Description

Definition at line 829 of file basestrm.cpp.


Constructor & Destructor Documentation

ContainerCollector::ContainerCollector ( void   ) 

Definition at line 1046 of file basestrm.cpp.

References containernum.

ContainerCollector::~ContainerCollector (  )  [virtual]

Definition at line 1144 of file basestrm.cpp.

References container, and containernum.


Member Function Documentation

void ContainerCollector::init ( const char *  wildcard  ) 

Definition at line 1051 of file basestrm.cpp.

References ASC_direct, closedir(), constructFileName(), container, containernum, extractFileName(), extractPath(), maxFileStringSize, opendir(), patimat(), readdir(), and searchDirNum.

Referenced by opencontainer().

void ContainerCollector::addfile ( const char *  filename,
const pncontainerstream  stream,
int  directoryLevel 
) [virtual]

Implements ContainerIndexer.

Definition at line 1079 of file basestrm.cpp.

References ContainerCollector::FileIndex::container, ContainerCollector::FileIndex::directoryLevel, index, and ContainerCollector::FileIndex::name.

ContainerCollector::FileIndex * ContainerCollector::getfile ( const ASCString filename  ) 

Definition at line 1103 of file basestrm.cpp.

References index.

Referenced by locateFile().

ContainerCollector::FileIndex * ContainerCollector::getfirstname ( void   ) 

Definition at line 1114 of file basestrm.cpp.

References getnextname(), and namesearch.

Referenced by tfindfile::tfindfile().

ContainerCollector::FileIndex * ContainerCollector::getnextname ( void   ) 

Definition at line 1121 of file basestrm.cpp.

References index, and namesearch.

Referenced by getfirstname(), and tfindfile::tfindfile().

ASCString ContainerCollector::listContainer (  ) 

Definition at line 1132 of file basestrm.cpp.

References container, and containernum.

Referenced by listContainer().


Member Data Documentation

dynamic_array<FileIndex> ContainerCollector::index[256] [protected]

Definition at line 838 of file basestrm.cpp.

Referenced by addfile(), getfile(), and getnextname().

dynamic_array<pncontainerstream> ContainerCollector::container [protected]

Definition at line 840 of file basestrm.cpp.

Referenced by init(), listContainer(), and ~ContainerCollector().

int ContainerCollector::containernum [protected]

Definition at line 841 of file basestrm.cpp.

Referenced by ContainerCollector(), init(), listContainer(), and ~ContainerCollector().

int ContainerCollector::alpha [protected]

Definition at line 843 of file basestrm.cpp.

int ContainerCollector::index [protected]

Definition at line 844 of file basestrm.cpp.

struct { ... } ContainerCollector::namesearch [protected]

Referenced by getfirstname(), and getnextname().


The documentation for this class was generated from the following file:
Generated on Mon May 21 01:46:36 2012 for Advanced Strategic Command by  doxygen 1.5.1