IRSOL
C++ code implementing socket server for interacting with Baumer camera.
assignment.hpp
Go to the documentation of this file.
1
12#pragma once
13
15#include "irsol/types.hpp"
16
17#include <string>
18
19namespace irsol {
20namespace protocol {
21
32{
40
42 std::string identifier;
43
46
51 std::string toString() const;
52
54 bool hasInt() const;
55
57 bool hasDouble() const;
58
60 bool hasString() const;
61};
62
63} // namespace protocol
64} // namespace irsol
std::variant< int, double, std::string > protocol_value_t
Variant type representing protocol values that can be one of several types.
Definition types.hpp:150
Represents an assignment operation in the protocol.
std::string toString() const
Converts the assignment to a human-readable string.
irsol::types::protocol_value_t value
The value assigned to the identifier (int, double, or string).
std::string identifier
The variable or parameter name being assigned.
Core type definitions for networking, time handling, and protocol values used throughout the irsol li...
Definitions and utilities for incoming and outgoing protocol messages.