DDraceNetwork Docs
CFileCollection Class Reference

#include <filecollection.h>

Collaboration diagram for CFileCollection:
[legend]

Classes

struct  CFileEntry
 

Public Member Functions

void Init (IStorage *pStorage, const char *pPath, const char *pFileDesc, const char *pFileExt, int MaxEntries)
 

Static Public Member Functions

static int FilelistCallback (const char *pFilename, int IsDir, int StorageType, void *pUser)
 

Private Types

enum  { TIMESTAMP_LENGTH = 20 }
 

Private Member Functions

bool ExtractTimestamp (const char *pTimestring, time_t *pTimestamp)
 
bool ParseFilename (const char *pFilename, time_t *pTimestamp)
 

Private Attributes

std::vector< CFileEntrym_vFileEntries
 
char m_aFileDesc [128]
 
int m_FileDescLength
 
char m_aFileExt [32]
 
int m_FileExtLength
 
char m_aPath [IO_MAX_PATH_LENGTH]
 
IStoragem_pStorage
 

Member Enumeration Documentation

◆ anonymous enum

anonymous enum
private
Enumerator
TIMESTAMP_LENGTH 

Member Function Documentation

◆ ExtractTimestamp()

bool CFileCollection::ExtractTimestamp ( const char *  pTimestring,
time_t *  pTimestamp 
)
private

◆ FilelistCallback()

int CFileCollection::FilelistCallback ( const char *  pFilename,
int  IsDir,
int  StorageType,
void *  pUser 
)
static

◆ Init()

void CFileCollection::Init ( IStorage pStorage,
const char *  pPath,
const char *  pFileDesc,
const char *  pFileExt,
int  MaxEntries 
)

◆ ParseFilename()

bool CFileCollection::ParseFilename ( const char *  pFilename,
time_t *  pTimestamp 
)
private

Member Data Documentation

◆ m_aFileDesc

char CFileCollection::m_aFileDesc[128]
private

◆ m_aFileExt

char CFileCollection::m_aFileExt[32]
private

◆ m_aPath

char CFileCollection::m_aPath[IO_MAX_PATH_LENGTH]
private

◆ m_FileDescLength

int CFileCollection::m_FileDescLength
private

◆ m_FileExtLength

int CFileCollection::m_FileExtLength
private

◆ m_pStorage

IStorage* CFileCollection::m_pStorage
private

◆ m_vFileEntries

std::vector<CFileEntry> CFileCollection::m_vFileEntries
private

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