My Project
 All Classes Files Functions Variables Enumerations Enumerator Friends Macros Pages
gcp::util::PipeQ< Msg > Class Template Reference

#include <PipeQ.h>

Public Member Functions

 PipeQ ()
 
 ~PipeQ ()
 
void sendMsg (Msg *msg)
 
void readMsg (Msg *msg)
 
int fd ()
 
fd_set rfds ()
 

Detailed Description

template<class Msg>
class gcp::util::PipeQ< Msg >

Template class for a message queue implemented using pipes

Constructor & Destructor Documentation

template<class Msg >
gcp::util::PipeQ< Msg >::PipeQ ( )

Constructor.

Constructor function.

Exceptions
Exception(via Pipe::Pipe)
template<class Msg >
gcp::util::PipeQ< Msg >::~PipeQ ( )

Destructor.

Destructor function.

Exceptions
Exception(via Pipe::~Pipe)

Member Function Documentation

template<class Msg >
int gcp::util::PipeQ< Msg >::fd ( )

Return the selectable file descriptor associated with this message queue.

Get the readable file descriptor associated with this queue

template<class Msg>
void gcp::util::PipeQ< Msg >::readMsg ( Msg *  msg)

Read message method simply gets the next message off the pipe.

Exceptions
ExceptionRead the next message off the pipe.
Exception
template<class Msg >
fd_set gcp::util::PipeQ< Msg >::rfds ( )

Return an intialized set of readable file descriptors associated with this queue.

Get the readable file descriptor associated with this queue.

template<class Msg>
void gcp::util::PipeQ< Msg >::sendMsg ( Msg *  msg)

Method to send a message to the message queue.

Exceptions
ExceptionWrite the next message to the pipe.
Exception

The documentation for this class was generated from the following file: