50 #if defined (PLAYER_STATIC)
51 #define PLAYERCORE_EXPORT
52 #elif defined (playercore_EXPORTS)
53 #define PLAYERCORE_EXPORT __declspec (dllexport)
55 #define PLAYERCORE_EXPORT __declspec (dllimport)
58 #define PLAYERCORE_EXPORT
63 #include <libplayerinterface/player.h>
96 bool operator == (
void * pointer);
100 bool operator != (
void * pointer);
164 return(((type < 0) || (hdr->
type == (uint8_t)type)) &&
165 ((subtype < 0) || (hdr->
subtype == (uint8_t)subtype)) &&
181 return(((type < 0) || (hdr->
type == (uint8_t)type)) &&
182 ((subtype < 0) || (hdr->
subtype == (uint8_t)subtype)));
248 int host, robot, interf, index;
253 int _type,
int _subtype,
int _replace) :
254 host(_host), robot(_robot), interf(_interf), index(_index),
255 type(_type), subtype(_subtype), replace(_replace), next(NULL) {}
259 return(((this->host < 0) ||
260 ((uint32_t)this->host == hdr->
addr.
host)) &&
261 ((this->robot < 0) ||
262 ((uint32_t)this->robot == hdr->
addr.
robot)) &&
263 ((this->interf < 0) ||
264 ((uint16_t)this->interf == hdr->
addr.
interf)) &&
265 ((this->index < 0) ||
266 ((uint16_t)this->index == hdr->
addr.
index)) &&
268 ((uint8_t)this->type == hdr->
type)) &&
269 ((this->subtype < 0) ||
270 ((uint8_t)this->subtype == hdr->
subtype)));
273 bool Equivalent (
int _host,
int _robot,
int _interf,
int _index,
int _type,
int _subtype)
275 return (host == _host && robot == _robot && interf ==_interf && index == _index &&
276 type == _type && subtype == _subtype);
345 bool Empty() {
return(this->head == NULL); }
354 void PushFront(
Message & msg,
bool haveLock);
360 void PushBack(
Message & msg,
bool haveLock);
369 void SetReplace(
bool _Replace) { this->Replace = _Replace; };
376 void AddReplaceRule(
int _host,
int _robot,
int _interf,
int _index,
377 int _type,
int _subtype,
int _replace);
384 int _type,
int _subtype,
int _replace);
394 bool Wait(
double TimeOut=0.0);
397 void DataAvailable(
void);
401 void ClearFilter(
void);
403 void SetFilter(
int host,
int robot,
int interf,
int index,
404 int type,
int subtype);
406 void SetPull (
bool _pull) { this->pull = _pull; }
409 size_t GetLength(
void);
412 void SetDataRequested(
bool d,
bool haveLock);
416 void Lock() {pthread_mutex_lock(&lock);};
418 void Unlock() {pthread_mutex_unlock(&lock);};
445 int filter_host, filter_robot, filter_interf,
446 filter_index, filter_type, filter_subtype;