YARP
Yet Another Robot Platform
 
Loading...
Searching...
No Matches
ApplicationNetworkProtocolVersion.h
Go to the documentation of this file.
1/*
2 * SPDX-FileCopyrightText: 2025-2025 Istituto Italiano di Tecnologia (IIT)
3 * SPDX-License-Identifier: BSD-3-Clause
4 */
5
6#ifndef ApplicationNetworkProtocolVersion_H
7#define ApplicationNetworkProtocolVersion_H
8
9#include <yarp/os/api.h>
10#include <yarp/os/Log.h>
11#include <yarp/os/Portable.h>
12
13namespace yarp::os {
14
16{
17 public:
18 short int protocol_version = -1;
19 short int yarp_major = -1;
20 short int yarp_minor = -1;
21 short int yarp_patch = -1;
22
23 public:
26
27 public:
28 std::string toString();
29
30 public:
31 bool read(yarp::os::ConnectionReader& connection) override;
32 bool write(yarp::os::ConnectionWriter& connection) const override;
33};
34
35}
36
37#endif // ApplicationNetworkProtocolVersion_H
std::string toString(const T &value)
convert an arbitrary type to string.
A mini-server for performing network communication in the background.
An interface for reading from a network connection.
An interface for writing to a network connection.
This is a base class for objects that can be both read from and be written to the YARP network.
Definition Portable.h:25
constexpr std::int16_t protocol_version
An interface to the operating system, including Port based communication.
#define YARP_os_API
Definition api.h:18