YARP
Yet Another Robot Platform
 
Loading...
Searching...
No Matches
BareStyle.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_BARESTYLE_H
7#define YARP_OS_IDL_BARESTYLE_H
8
12
13namespace yarp::os::idl {
14
15template <class T>
16class BareStyle : public T
17{
18public:
19 bool read(yarp::os::ConnectionReader& reader) override
20 {
21 return T::readBare(reader);
22 }
23
24 bool write(yarp::os::ConnectionWriter& writer) const override
25 {
26 return T::writeBare(writer);
27 }
28};
29
30} // namespace yarp::os::idl
31
32#endif // YARP_OS_IDL_BARESTYLE_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 BareStyle.h:24
bool read(yarp::os::ConnectionReader &reader) override
Definition BareStyle.h:19