Sorry - big commit since I've been holding off until it worked again Fixed
[dasher.git] / Src / DasherCore / BasicLog.h
blobf78706e611d3771072835e34931ff1f8d29edcf3
1 #ifndef __BasicLog_h__
2 #define __BasicLog_h__
4 #include "UserLogBase.h"
6 class CBasicLog : public CUserLogBase {
7 public:
8 CBasicLog(Dasher::CEventHandler *pEventHandler, CSettingsStore *pSettingsStore);
9 ~CBasicLog();
11 virtual void AddParam(const string& strName, const string& strValue, int iOptionMask = 0) {};
12 virtual void AddParam(const string& strName, double dValue, int iOptionMask = 0) {};
13 virtual void AddParam(const string& strName, int iValue, int iOptionMask = 0) {};
14 virtual void StartWriting();
15 virtual void StopWriting(float dNats);
16 virtual void StopWriting() {};
17 virtual void AddSymbols(Dasher::VECTOR_SYMBOL_PROB* pVectorNewSymbolProbs, eUserLogEventType iEvent = userLogEventMouse);
18 virtual void DeleteSymbols(int iNumToDelete, eUserLogEventType iEvent = userLogEventMouse);
19 virtual void NewTrial();
20 virtual void AddWindowSize(int iTop, int iLeft, int iBottom, int iRight) {};
21 virtual void AddCanvasSize(int iTop, int iLeft, int iBottom, int iRight) {};
22 virtual void AddMouseLocation(int iX, int iY, float dNats) {};
23 virtual void AddMouseLocationNormalized(int iX, int iY, bool bStoreIntegerRep, float dNats) {};
24 virtual void OutputFile() {};
25 virtual void SetAlphabetPtr(Dasher::CAlphabet* pAlphabet = 0) {};
26 virtual void InitIsDone() {};
27 virtual void SetOuputFilename(const string& strFilename = "") {};
28 virtual int GetLogLevelMask() {return 0;};
29 virtual void KeyDown(int iId, int iType, int iEffect);
30 virtual void HandleEvent(Dasher::CEvent* pEvent) {};
32 private:
33 void StartTrial();
34 void EndTrial();
35 std::string GetDateStamp();
37 bool m_bStarted;
38 int m_iSymbolCount;
39 int m_iKeyCount;
40 int m_iInitialRate;
41 double m_dBits;
42 std::string m_strStartDate;
45 #endif