Mercurial > hg > soniczoomios
diff eventLogger.h @ 7:845ea04f8e33
more logging, user id, preset info
author | Robert Tubb <rt300@eecs.qmul.ac.uk> |
---|---|
date | Thu, 06 Dec 2012 18:26:51 +0000 |
parents | 5ee5ef99e117 |
children | e2c6cfe8c6b7 |
line wrap: on
line diff
--- a/eventLogger.h Thu Dec 06 13:55:58 2012 +0000 +++ b/eventLogger.h Thu Dec 06 18:26:51 2012 +0000 @@ -60,7 +60,7 @@ os << e.eventType << ',' << e.val1 << ',' << e.val2 << ',' << e.sliderID << '\n'; return os; - } +} //--------------------------------------------------------------------------- class EventLogger{ @@ -73,13 +73,20 @@ vector<lEvent> theEvents; - string userID; // get something from hardware?? + unsigned int deviceID; // get something from hardware?? + unsigned int totalInteractionTime, sessionTime, sessionStartTime; + string userName; EventLogger(); + void init(); + void logEvent(const leventType& evtType,const TwoVector& centre = TwoVector(), const double& scale = 1.0, const int& sliderID = -1, const double& sliderVal = 0.0); void logEvent(const leventType& evtType,const int& sliderID, const double& sliderVal); void sendHttp(); - + void checkLogFile(); + void attemptUpload(); + void firstEverAppOpen(); + void exitAndSave(); void printAll(){ cout << "ALL LOGGED EVENTS!: \n"; vector<lEvent>::iterator evIter;