sqlite-logging: include log in pokerth_lib; new function for game-logging

This commit is contained in:
floty
2010-12-28 23:01:39 +00:00
parent 05cae76aee
commit 121575caa5
6 changed files with 15 additions and 5 deletions
+1
View File
@@ -25,6 +25,7 @@
#include "configfile.h"
#include "game_defs.h"
#include "log.h"
#include "playerinterface.h"
using namespace std;
+8 -2
View File
@@ -20,10 +20,16 @@
#ifndef LOG_H
#define LOG_H
#include "playerinterface.h"
#include <boost/shared_ptr.hpp>
#include <list>
struct sqlite3;
class ConfigFile;
class PlayerInterface;
typedef boost::shared_ptr<std::list<boost::shared_ptr<PlayerInterface> > > PlayerList;
typedef std::list<boost::shared_ptr<PlayerInterface> >::iterator PlayerListIterator;
typedef std::list<boost::shared_ptr<PlayerInterface> >::const_iterator PlayerListConstIterator;
class Log
{
@@ -33,7 +39,7 @@ public:
~Log();
void logNewGameMsg(int, int, int, unsigned, PlayerList);
void logNewGameMsg(int gameID, int startCash, int startSmallBlind, unsigned dealerPosition, PlayerList seatsList);
// void closeLogDbAtExit();