![]() |
IRSOL
C++ code implementing socket server for interacting with Baumer camera.
|
Represents a single binary data attribute within the protocol. More...
#include <binary.hpp>
Public Member Functions | |
BinaryDataAttribute (const std::string &identifier, irsol::types::protocol_value_t value) | |
Constructs a BinaryDataAttribute. | |
std::string | toString () const |
Returns a string representation of the binary data attribute. | |
bool | hasInt () const |
bool | hasDouble () const |
bool | hasString () const |
Public Attributes | |
std::string | identifier |
Identifier of the binary data attribute. | |
irsol::types::protocol_value_t | value |
Value associated with the attribute. | |
Represents a single binary data attribute within the protocol.
This struct encapsulates a key-value pair where the key is an identifier and the value is a protocol-specific typed value irsol::types::protocol_value_t.
Definition at line 34 of file binary.hpp.
irsol::protocol::BinaryDataAttribute::BinaryDataAttribute | ( | const std::string & | identifier, |
irsol::types::protocol_value_t | value | ||
) |
Constructs a BinaryDataAttribute.
identifier | The identifier string. |
value | The associated protocol value. |
Definition at line 10 of file binary.cpp.
bool irsol::protocol::BinaryDataAttribute::hasDouble | ( | ) | const |
Definition at line 43 of file binary.cpp.
bool irsol::protocol::BinaryDataAttribute::hasInt | ( | ) | const |
Definition at line 37 of file binary.cpp.
bool irsol::protocol::BinaryDataAttribute::hasString | ( | ) | const |
Definition at line 49 of file binary.cpp.
std::string irsol::protocol::BinaryDataAttribute::toString | ( | ) | const |
Returns a string representation of the binary data attribute.
Definition at line 17 of file binary.cpp.
std::string irsol::protocol::BinaryDataAttribute::identifier |
Identifier of the binary data attribute.
Definition at line 44 of file binary.hpp.
irsol::types::protocol_value_t irsol::protocol::BinaryDataAttribute::value |
Value associated with the attribute.
Definition at line 47 of file binary.hpp.