3#ifndef ENGINE_SHARED_FILECOLLECTION_H
4#define ENGINE_SHARED_FILECOLLECTION_H
41 bool ParseFilename(
const char *pFilename, time_t *pTimestamp);
44 void Init(
IStorage *pStorage,
const char *pPath,
const char *pFileDesc,
const char *pFileExt,
int MaxEntries);
46 static int FilelistCallback(
const char *pFilename,
int IsDir,
int StorageType,
void *pUser);
Definition: filecollection.h:15
@ TIMESTAMP_LENGTH
Definition: filecollection.h:18
char m_aPath[IO_MAX_PATH_LENGTH]
Definition: filecollection.h:37
std::vector< CFileEntry > m_vFileEntries
Definition: filecollection.h:32
bool ParseFilename(const char *pFilename, time_t *pTimestamp)
Definition: filecollection.cpp:55
bool ExtractTimestamp(const char *pTimestring, time_t *pTimestamp)
Definition: filecollection.cpp:47
void Init(IStorage *pStorage, const char *pPath, const char *pFileDesc, const char *pFileExt, int MaxEntries)
Definition: filecollection.cpp:11
IStorage * m_pStorage
Definition: filecollection.h:38
static int FilelistCallback(const char *pFilename, int IsDir, int StorageType, void *pUser)
Definition: filecollection.cpp:89
char m_aFileExt[32]
Definition: filecollection.h:35
int m_FileExtLength
Definition: filecollection.h:36
char m_aFileDesc[128]
Definition: filecollection.h:33
int m_FileDescLength
Definition: filecollection.h:34
int str_copy(char *dst, const char *src, int dst_size)
Definition: system.cpp:2761
Definition: filecollection.h:22
char m_aFilename[IO_MAX_PATH_LENGTH]
Definition: filecollection.h:24
CFileEntry(int64_t Timestamp, const char *pFilename)
Definition: filecollection.h:25
time_t m_Timestamp
Definition: filecollection.h:23
@ IO_MAX_PATH_LENGTH
Definition: types.h:43