40 lines
729 B
C
40 lines
729 B
C
|
#ifndef _GAMEPARSER_H_
|
||
|
#define _GAMEPARSER_H_
|
||
|
|
||
|
#include "gamelist.h"
|
||
|
#include "thread.h"
|
||
|
#include "config.h"
|
||
|
#include "recvqueue.h"
|
||
|
#include "modulelist.h"
|
||
|
#include "timerservice.h"
|
||
|
|
||
|
class GameParser : public GameList, public Thread {
|
||
|
public:
|
||
|
GameParser(Config& conf, RecvQueue& rxQueue, ModuleList& modlist);
|
||
|
~GameParser();
|
||
|
|
||
|
int execute(void* arg);
|
||
|
|
||
|
void cleanup();
|
||
|
|
||
|
protected:
|
||
|
GameParser(const GameParser& rp);
|
||
|
GameParser& operator=(const GameParser& rp);
|
||
|
|
||
|
private:
|
||
|
class CleanupEvent : public Command {
|
||
|
public:
|
||
|
CleanupEvent(GameList* sl) : sl(sl) {}
|
||
|
~CleanupEvent() {}
|
||
|
void execute() { sl->cleanup(); }
|
||
|
|
||
|
private:
|
||
|
GameList* sl;
|
||
|
};
|
||
|
|
||
|
RecvQueue& rxQueue;
|
||
|
ModuleList& modList;
|
||
|
};
|
||
|
|
||
|
#endif // _GAMEPARSER_H_
|