mirror of
https://github.com/IoTManagerProject/IoTManager.git
synced 2026-03-26 22:22:16 +03:00
26 lines
438 B
C
26 lines
438 B
C
|
|
#pragma once
|
||
|
|
#include "Global.h"
|
||
|
|
#ifdef QUEUE_FROM_INST
|
||
|
|
#include "classes/QueueInst.h"
|
||
|
|
#include <queue>
|
||
|
|
#include <iostream>
|
||
|
|
|
||
|
|
using namespace std;
|
||
|
|
|
||
|
|
class QueueFromInstance;
|
||
|
|
|
||
|
|
class QueueFromInstance {
|
||
|
|
public:
|
||
|
|
QueueFromInstance();
|
||
|
|
~QueueFromInstance();
|
||
|
|
|
||
|
|
void push(QueueInstance instance);
|
||
|
|
void pop();
|
||
|
|
QueueInstance front();
|
||
|
|
|
||
|
|
private:
|
||
|
|
queue<QueueInstance> queue1;
|
||
|
|
};
|
||
|
|
|
||
|
|
// extern QueueFromInstance* myQueue;
|
||
|
|
#endif
|