Public Member Functions

zeus::IOwnCommPipe Class Reference

#include <IOwnCommPipe.hpp>

Inheritance diagram for zeus::IOwnCommPipe:
zeus::ICommPipe zeus::IZUnknown zeus::TCommPipe zeus::TMappedCommPipe

List of all members.

Public Member Functions

virtual void MQUALIFIER lock ()=0
virtual void MQUALIFIER unlock ()=0
virtual void MQUALIFIER flush ()=0
virtual Retval MQUALIFIER getMessage (IMessage *&rpMessage)=0
virtual Retval MQUALIFIER peekMessage (IMessage *&rpMessage)=0
virtual bool MQUALIFIER isEmpty () const =0
virtual Int MQUALIFIER getCount () const =0

Detailed Description

The IOwnCommPipe interface defines a pipe, which is owned by some one. Through this interface a message can be read. The sender interface is defined by ICommPipe, which defines methods to send a message. This interface inherits the ICommInterface, so the owner can do both, sending and receiving through this pipe.


Member Function Documentation

virtual void MQUALIFIER zeus::IOwnCommPipe::flush (  ) [pure virtual]

This flushes the pipe. All messages and their objects will be released.

Implemented in zeus::TCommPipe, and zeus::TMappedCommPipe.

virtual Int MQUALIFIER zeus::IOwnCommPipe::getCount (  ) const [pure virtual]

Returns the number of posted messages, which a still remaining in the pipe.

Returns:
count

Implemented in zeus::TCommPipe.

virtual Retval MQUALIFIER zeus::IOwnCommPipe::getMessage ( IMessage *&  rpMessage ) [pure virtual]

Returns the top message object from the pipe. The message will be removed from the pipe.

Parameters:
rpMessage: Return value of the message
Return values:
RET_NOERROR: Message has been successfully returned
RET_REQUEST_FAILED: No message available or pipe is locked

Implemented in zeus::TCommPipe, and zeus::TMappedCommPipe.

virtual bool MQUALIFIER zeus::IOwnCommPipe::isEmpty (  ) const [pure virtual]

Checkes if the pipe is empty.

Return values:
true: Pipe is empty
false,:pipe is not empty

Implemented in zeus::TCommPipe.

virtual void MQUALIFIER zeus::IOwnCommPipe::lock (  ) [pure virtual]

This method locks the pipe. Throu a locked pipe no message can be sent or received

Implemented in zeus::TCommPipe.

virtual Retval MQUALIFIER zeus::IOwnCommPipe::peekMessage ( IMessage *&  rpMessage ) [pure virtual]

Returns the top message object from the pipe. The message wont be removed from the pipe. To remove the message call getMessage().

Parameters:
rpMessage: Return value of the message
Return values:
RET_NOERROR: Message has been successfully returned
RET_INVALID_PARAMETER: The msg parameter is invalid
RET_REQUEST_FAILED: No message available or pipe is locked

Implemented in zeus::TCommPipe.

virtual void MQUALIFIER zeus::IOwnCommPipe::unlock (  ) [pure virtual]

This method unlocks the pipe. This method must be called before a communication starts using this pipe.

Implemented in zeus::TCommPipe.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines


Written by Benjamin Hadorn http://www.xatlantis.ch.
Last change made on Sun Jan 22 2012 15:28:25