|
YARP
Yet Another Robot Platform
|
|
Go to the documentation of this file.
10 #ifndef YARP_MPISTREAM_H
11 #define YARP_MPISTREAM_H
50 bool isOk()
const override;
65 #endif // YARP_MPISTREAM_H
A stream which can be asked to perform bidirectional communication.
void endPacket() override
Mark the end of a logical packet (see beginPacket).
virtual void write(char ch)
Write a single byte to the stream.
Simple specification of the minimum functions needed from output streams.
const yarp::os::Contact & getRemoteAddress() const override
Get the address of the remote side of the stream.
void write(const yarp::os::Bytes &b) override=0
Write a block of bytes to the stream.
void reset() override
Reset the stream.
MpiStream(std::string name, MpiComm *comm)
const yarp::os::Contact & getLocalAddress() const override
Get the address of the local side of the stream.
InputStream & getInputStream() override
Get an InputStream to read from.
void beginPacket() override
Mark the beginning of a logical packet.
A simple abstraction for a block of bytes.
bool isOk() const override
Check if the stream is ok or in an error state.
void interrupt() override
Interrupt the stream.
OutputStream & getOutputStream() override
Get an OutputStream to write to.
Wrapper for MPI_Comm communicator.
void close() override=0
Terminate the stream.
Abstract base class for port communication via MPI.