diff -r fcf435874395 -r 45c889eae324 front_idill/extern/fajran-npTuioClient/TuioClient/TuioString.h --- a/front_idill/extern/fajran-npTuioClient/TuioClient/TuioString.h Thu Apr 19 11:53:06 2012 +0200 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,57 +0,0 @@ -/* - Modified by alexandre.bastien@iri.centrepompidou.fr to manage TUIO strings. -*/ - -#ifndef INCLUDED_TUIOSTRING_H -#define INCLUDED_TUIOSTRING_H - -class TuioString { - - protected: - int session_id; - int string_id; - const char* code; - long timestamp; - int state; - - public: - TuioString (int s_id, int string_id, const char* _code) { - this->session_id = s_id; - this->string_id = string_id; - this->code = _code; - timestamp = TUIO_UNDEFINED; - state = TUIO_ADDED; - }; - - TuioString (TuioString *tuioString) { - this->session_id = tuioString->getSessionID(); - this->string_id = tuioString->getStringID(); - this->code = tuioString->getCode(); - timestamp = TUIO_UNDEFINED; - state = TUIO_ADDED; - }; - - ~TuioString(){}; - - int getSessionID() { return session_id; }; - int getStringID() { return string_id; }; - const char* getCode() { return code; }; - - - void update(const char* _code) - { - this->code = _code; - timestamp = TUIO_UNDEFINED; - state = TUIO_UPDATED; - } - - void remove() { - state = TUIO_REMOVED; - timestamp = TUIO_UNDEFINED; - } - - long getUpdateTime() { return timestamp; }; - void setUpdateTime(long timestamp) { this->timestamp = timestamp; }; -}; - -#endif