CreOS SDK
The CreOS SDK allows you to interact with Avular robots
 
Loading...
Searching...
No Matches
interface_info.hpp
1// Copyright (C) 2024 Avular Holding B.V. - All Rights Reserved
2// You may use this code under the terms of the Avular
3// Software End-User License Agreement.
4//
5// You should have received a copy of the Avular
6// Software End-User License Agreement license with
7// this file, or download it from: avular.com/eula
8//
9/*****************************************************************************
10 * Created on: 2024 October 1
11 * Author: Niels Rood
12 *
13 * @file SDK information message containing information about the entire interface
14 ****************************************************************************/
15#pragma once
16
17#include <compare>
18#include <nlohmann/json.hpp>
19
20#include "interface_group_info.hpp"
21
22namespace creos_messages {
23
28
32 std::string version;
33
37 std::vector<InterfaceGroupInfo> interface_groups;
38
42 auto operator<=>(const InterfaceInfo& other) const = default;
43
47 bool operator==(const InterfaceInfo& other) const { return version == other.version; };
48
52 bool operator!=(const InterfaceInfo& other) const { return !(*this == other); };
53};
54
55NLOHMANN_DEFINE_TYPE_NON_INTRUSIVE(InterfaceInfo, version, interface_groups)
56
57} // namespace creos_messages
The messages that are used in the communication between the agent and the client.
Definition accel.hpp:22
SDK information message containing information about the entire interface.
Definition interface_info.hpp:27
std::vector< InterfaceGroupInfo > interface_groups
Interface groups of the interface.
Definition interface_info.hpp:37
std::string version
Version of the interface.
Definition interface_info.hpp:32
bool operator!=(const InterfaceInfo &other) const
Check if two InterfaceInfo object messages are not equal.
Definition interface_info.hpp:52
bool operator==(const InterfaceInfo &other) const
Check if two InterfaceInfo object messages are equal.
Definition interface_info.hpp:47
auto operator<=>(const InterfaceInfo &other) const =default
Compare two InterfaceInfo object messages.