Permalink
Cannot retrieve contributors at this time
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
40 lines (34 sloc)
910 Bytes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#ifndef __LOGFILE | |
#define __LOGFILE | |
// wxWindows includes | |
#include <wx/datetime.h> | |
#include <wx/string.h> | |
#include <wx/arrstr.h> | |
#include <wx/dynarray.h> | |
// Statsgen includes | |
#include "LogFileReader.h" | |
class LogFile; | |
class Server; | |
WX_DECLARE_OBJARRAY(LogFile,ArrayOfLogFile); | |
class LogFile | |
{ | |
public: | |
LogFile(); | |
void FakeTeamIDs(bool value); | |
bool Process(Server *server,int serverIndex,long maxLogfileSize); | |
virtual bool Initiate(wxString &serverTypeIn, | |
wxArrayString &filenamesIn); | |
virtual long Size(); | |
virtual ~LogFile(); | |
void StartFromBeginning(); | |
void SetLastRoundPositions(long lastRoundEndedAt, | |
long secondaryLastRoundEndedAt); | |
void RetrieveLastRoundPositions(long *lastRoundEndedAt, | |
long *secondaryLastRoundEndedAt); | |
protected: | |
LogFileReader *logFileReader; | |
wxArrayString filenames; | |
wxArrayString secondaryFilenames; | |
wxString serverType; | |
}; | |
#endif |