mirror of
https://github.com/IoTManagerProject/IoTManager.git
synced 2026-03-26 22:22:16 +03:00
24 lines
580 B
C++
24 lines
580 B
C++
|
|
#ifdef QUEUE_FROM_INST
|
||
|
|
#include "queue/QueueInst.h"
|
||
|
|
|
||
|
|
QueueInstance::QueueInstance(String text) {
|
||
|
|
_text = text;
|
||
|
|
}
|
||
|
|
QueueInstance::~QueueInstance() {}
|
||
|
|
|
||
|
|
String QueueInstance::get() {
|
||
|
|
return _text;
|
||
|
|
}
|
||
|
|
|
||
|
|
//========проверка очереди из экземпляров======
|
||
|
|
|
||
|
|
// myQueue = new QueueFromInstance;
|
||
|
|
|
||
|
|
// myQueue->push(QueueInstance("text1"));
|
||
|
|
// myQueue->push(QueueInstance("text2"));
|
||
|
|
// myQueue->push(QueueInstance("text3"));
|
||
|
|
|
||
|
|
// Serial.println(myQueue->front().get());
|
||
|
|
// Serial.println(myQueue->front().get());
|
||
|
|
// Serial.println(myQueue->front().get());
|
||
|
|
#endif
|