Go to the documentation of this file.
9 #ifndef mrpt_synch_pipe_H
10 #define mrpt_synch_pipe_H
22 class CPipeReadEndPoint;
23 class CPipeWriteEndPoint;
47 static void createPipe(std::auto_ptr<CPipeReadEndPoint>& outReadPipe,std::auto_ptr<CPipeWriteEndPoint>& outWritePipe);
71 std::string serialize();
77 inline bool isOpen()
const {
return m_pipe_file!=0; }
83 #ifdef MRPT_OS_WINDOWS
88 virtual size_t Read(
void *Buffer,
size_t Count)
MRPT_OVERRIDE;
89 virtual size_t Write(
const void *Buffer,
size_t Count)
MRPT_OVERRIDE;
91 virtual uint64_t Seek(uint64_t Offset, CStream::TSeekOrigin Origin = sFromBeginning)
MRPT_OVERRIDE;
107 void WriteBuffer (
const void *Buffer,
size_t Count);
122 size_t ReadBuffer(
void *Buffer,
size_t Count);
bool isOpen() const
Returns false if the pipe was closed due to some error.
This is the global namespace for all Mobile Robot Programming Toolkit (MRPT) libraries.
This base class is used to provide a unified interface to files,memory buffers,..Please see the deriv...
Common interface of read & write pipe end-points.
The base class of classes that cannot be copied: compile-time errors will be issued on any copy opera...
unsigned int timeout_read_start_us
(Default=0) Timeout for read operations: microseconds (us) to wait for the first byte....
The write end-point in a pipe created with mrpt::synch::CPipe.
A pipe, portable across different OS.
The read end-point in a pipe created with mrpt::synch::CPipe.
unsigned int timeout_read_between_us
(Default=0) Timeout between burst reads operations: microseconds (us) to wait between two partial rea...
#define MRPT_OVERRIDE
C++11 "override" for virtuals:
Page generated by Doxygen 1.8.16 for MRPT 1.4.0 SVN: at Mon Oct 14 23:08:25 UTC 2019 | | |