Main MRPT website > C++ reference for MRPT 1.4.0
List of all members | Static Public Member Functions | Private Member Functions
mrpt::synch::CPipe Class Reference

Detailed Description

A pipe, portable across different OS.

Pipes can be used as intraprocess (inter-threads) or interprocess communication mechanism. Read more on pipes here: http://www.gnu.org/software/libc/manual/html_node/Pipes-and-FIFOs.html

std::auto_ptr<CPipeReadEndPoint> read_pipe;
std::auto_ptr<CPipeWriteEndPoint> write_pipe;
CPipe::createPipe(read_pipe,write_pipe);

See also the example: MRPT/samples/threadsPipe/

Definition at line 41 of file CPipe.h.

#include <mrpt/synch/CPipe.h>

Static Public Member Functions

static void createPipe (std::auto_ptr< CPipeReadEndPoint > &outReadPipe, std::auto_ptr< CPipeWriteEndPoint > &outWritePipe)
 Creates a new pipe and returns the read & write end-points as newly allocated objects. More...
 

Private Member Functions

 CPipe ()
 No need to create any object of this class. More...
 
 ~CPipe ()
 

Constructor & Destructor Documentation

mrpt::synch::CPipe::CPipe ( )
private

No need to create any object of this class.

mrpt::synch::CPipe::~CPipe ( )
private

Member Function Documentation

static void mrpt::synch::CPipe::createPipe ( std::auto_ptr< CPipeReadEndPoint > &  outReadPipe,
std::auto_ptr< CPipeWriteEndPoint > &  outWritePipe 
)
static

Creates a new pipe and returns the read & write end-points as newly allocated objects.

Exceptions
std::exceptionOn any error during the pipe creation



Page generated by Doxygen 1.8.11 for MRPT 1.4.0 SVN: at Mon Aug 15 11:50:21 UTC 2016