19 #ifndef IDASCLIENT_CPP
20 #define IDASCLIENT_CPP
22 #include "IDAsClient.hpp"
31 this->_queue.push_back(message);
37 const IDevent event,
const int direction) {
39 throw TCException(
"iD message needs to be allocated",
47 throw TCException(
"Block number must be set for searching Prev/Next",
61 bool fmatch =
false, tmatch =
false, ematch =
false;
62 for(
unsigned int i = 0; i < this->_queue.size(); i++) {
64 t_type = (this->_queue.at(i)).GetFamilyType();
65 t_event = (this->_queue.at(i)).GetEvent();
86 case IDMessage::FamilyBiosig:
87 tmatch = (type == t_type);
90 case IDMessage::FamilyUndef:
97 case IDMessage::EventNull:
101 ematch = (
event == t_event);
105 if(tmatch && ematch && fmatch) {
106 message->Copy(&(this->_queue.at(i)));
107 this->_queue.erase(this->_queue.begin() + i);
116 return this->_queue.size();
120 this->_queue.clear();
125 for(
unsigned int i = 0; i < this->_queue.size(); i++)
126 (this->_queue.at(i)).
Dump();