YARP
Yet Another Robot Platform
 
Loading...
Searching...
No Matches
ConnectionWriter.cpp
Go to the documentation of this file.
1/*
2 * SPDX-FileCopyrightText: 2006-2021 Istituto Italiano di Tecnologia (IIT)
3 * SPDX-FileCopyrightText: 2006-2010 RobotCub Consortium
4 * SPDX-License-Identifier: BSD-3-Clause
5 */
6
10
11using namespace yarp::os;
12using namespace yarp::os::impl;
13
15
17{
18 return false;
19}
20
21
26
28{
30 if (!portable.write(writer)) {
31 return false;
32 }
33 writer.write(os);
34 return os.isOk();
35}
An interface for writing to a network connection.
static ConnectionWriter * createBufferedConnectionWriter()
Create a connection writer implementation that stores to a buffer which can be read later using getBu...
static bool writeToStream(PortWriter &portable, OutputStream &os)
virtual ~ConnectionWriter()
Destructor.
virtual bool isNull() const
Simple specification of the minimum functions needed from output streams.
virtual bool isOk() const =0
Check if the stream is ok or in an error state.
Interface implemented by all objects that can write themselves to the network, such as Bottle objects...
Definition PortWriter.h:23
virtual bool write(ConnectionWriter &writer) const =0
Write this object to a network connection.
A helper for creating cached object descriptions.
bool write(ConnectionWriter &connection) const override
Write this object to a network connection.
The components from which ports and connections are built.
An interface to the operating system, including Port based communication.