47 lines
1.2 KiB
C
47 lines
1.2 KiB
C
|
/*
|
||
|
Header MessageQueue
|
||
|
|
||
|
Copyright (C) 2019 AleaJactaEst
|
||
|
|
||
|
This program is free software: you can redistribute it and/or modify
|
||
|
it under the terms of the GNU General Public License as published by
|
||
|
the Free Software Foundation, either version 3 of the License, or
|
||
|
(at your option) any later version.
|
||
|
|
||
|
This program is distributed in the hope that it will be useful,
|
||
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||
|
GNU General Public License for more details.
|
||
|
|
||
|
You should have received a copy of the GNU General Public License
|
||
|
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||
|
|
||
|
*/
|
||
|
|
||
|
|
||
|
#ifndef MESSAGEQUEUE_H
|
||
|
#define MESSAGEQUEUE_H
|
||
|
|
||
|
/*
|
||
|
class Message
|
||
|
{
|
||
|
public:
|
||
|
virtual void send_message(PoolByteArray & msgbytes);
|
||
|
};
|
||
|
|
||
|
class MessageDirect : public Message
|
||
|
{
|
||
|
public:
|
||
|
void send_message(uint32_t msgid, PoolByteArray & msgbytes);
|
||
|
};
|
||
|
|
||
|
// Class store message and execute if is correct ID
|
||
|
class MessageQueue : public Message
|
||
|
{
|
||
|
BitStreamQueue queue;
|
||
|
public:
|
||
|
void send_message(uint32_t msgid, PoolByteArray & msgbytes);
|
||
|
};
|
||
|
*/
|
||
|
#endif // MESSAGEQUEUE_H
|