YARP
Yet Another Robot Platform
 
Loading...
Searching...
No Matches
BottleStyle.h
Go to the documentation of this file.
1/*
2 * SPDX-FileCopyrightText: 2006-2021 Istituto Italiano di Tecnologia (IIT)
3 * SPDX-License-Identifier: BSD-3-Clause
4 */
5
6#ifndef YARP_OS_IDL_BOTTLESTYLE_H
7#define YARP_OS_IDL_BOTTLESTYLE_H
8
12
13namespace yarp::os::idl {
14
15template <class T>
16class BottleStyle : public T
17{
18public:
19 bool read(yarp::os::ConnectionReader& reader) override
20 {
21 return T::readBottle(reader);
22 }
23
24 bool write(yarp::os::ConnectionWriter& writer) const override
25 {
26 return T::writeBottle(writer);
27 }
28};
29
30} // namespace yarp::os::idl
31
32#endif // YARP_OS_IDL_BOTTLESTYLE_H
An interface for reading from a network connection.
An interface for writing to a network connection.
bool write(yarp::os::ConnectionWriter &writer) const override
Definition BottleStyle.h:24
bool read(yarp::os::ConnectionReader &reader) override
Definition BottleStyle.h:19