MRPT
2.0.1
|
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
See also the example: MRPT/samples/threadsPipe/
#include <mrpt/io/CPipe.h>
Public Member Functions | |
CPipe ()=delete | |
Create via createPipe() instead. More... | |
~CPipe ()=delete | |
Static Public Member Functions | |
template<typename ReadPtr , typename WritePtr > | |
static void | createPipe (ReadPtr &outReadPipe, WritePtr &outWritePipe) |
Creates a new pipe and returns the read & write end-points as newly allocated objects. More... | |
static void | initializePipe (CPipeReadEndPoint &outReadPipe, CPipeWriteEndPoint &outWritePipe) |
Creates a new pipe and returns the read & write end-points as newly allocated objects. More... | |
|
delete |
Create via createPipe() instead.
|
delete |
|
static |
Creates a new pipe and returns the read & write end-points as newly allocated objects.
std::exception | On any error during the pipe creation Creates a new pipe and returns the read & write end-points as newly allocated objects. |
Definition at line 169 of file CPipe.h.
References initializePipe().
|
static |
Creates a new pipe and returns the read & write end-points as newly allocated objects.
Definition at line 30 of file CPipe.cpp.
References mrpt::io::CPipeBaseEndPoint::m_pipe_file, and THROW_EXCEPTION.
Referenced by createPipe().
Page generated by Doxygen 1.8.14 for MRPT 2.0.1 Git: 0fef1a6d7 Fri Apr 3 23:00:21 2020 +0200 at vie abr 3 23:20:28 CEST 2020 |