#include <InMessage.h>
Inheritance diagram for InMessageQueue:
Public Member Functions | |
InMessageQueue () | |
virtual bool | exists () const |
virtual bool | getEof () const |
Protected Member Functions | |
void | open (MessageQueueBase *q) |
virtual void | readFromStream (void *p, int size) |
Private Attributes | |
MessageQueueBase * | queue |
Definition at line 23 of file InMessage.h.
InMessageQueue::InMessageQueue | ( | ) |
Default constructor
Definition at line 12 of file InMessage.cpp.
bool InMessageQueue::exists | ( | ) | const [virtual] |
The function states whether the stream actually exists.
Reimplemented from PhysicalInStream.
Definition at line 17 of file InMessage.cpp.
bool InMessageQueue::getEof | ( | ) | const [virtual] |
The function states whether the end of the file has been reached.
Implements PhysicalInStream.
Definition at line 22 of file InMessage.cpp.
References MessageQueueBase::eof(), and queue.
Referenced by InTextMessage::readAll().
void InMessageQueue::open | ( | MessageQueueBase * | q | ) | [protected] |
opens the stream.
q | A pointer to the message queue base |
Definition at line 27 of file InMessage.cpp.
References queue.
Referenced by InBinaryMessage::InBinaryMessage(), InConfigMessage::InConfigMessage(), and InTextMessage::InTextMessage().
void InMessageQueue::readFromStream | ( | void * | p, | |
int | size | |||
) | [protected, virtual] |
The function reads a number of bytes from the stream.
p | The address the data is written to. Note that p must point to a memory area that is at least "size" bytes large. | |
size | The number of bytes to be read. |
Implements PhysicalInStream.
Definition at line 32 of file InMessage.cpp.
References queue, and MessageQueueBase::read().
MessageQueueBase* InMessageQueue::queue [private] |
The queue where the data are read from
Definition at line 27 of file InMessage.h.
Referenced by getEof(), open(), and readFromStream().