YARP
Yet Another Robot Platform
 
Loading...
Searching...
No Matches
PortWriter.h
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
7#ifndef YARP_OS_PORTWRITER_H
8#define YARP_OS_PORTWRITER_H
9
10#include <yarp/os/api.h>
11
12namespace yarp::os {
13
14class ConnectionWriter;
15class Type;
16
23{
24public:
28 virtual ~PortWriter();
29
41 virtual bool write(ConnectionWriter& writer) const = 0;
42
46 virtual void onCompletion() const;
47
54 virtual void onCommencement() const;
55
56 virtual yarp::os::Type getWriteType() const;
57};
58
59} // namespace yarp::os
60
61#endif // YARP_OS_PORTWRITER_H
An interface for writing to a network connection.
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.
virtual ~PortWriter()
Destructor.
An interface to the operating system, including Port based communication.
#define YARP_os_API
Definition api.h:18