![]() |
IRSOL
C++ code implementing socket server for interacting with Baumer camera.
|
Represents a command invocation in the protocol. More...
#include <command.hpp>
Public Member Functions | |
Command (const std::string &identifier) | |
Constructs a Command. | |
std::string | toString () const |
Converts the command to a human-readable string. | |
Public Attributes | |
std::string | identifier |
The name of the command to execute. | |
Represents a command invocation in the protocol.
A command consists of a valid identifier and typically does not carry a value. It is used to trigger predefined actions such as "start", "stop", or "reset".
Can be stored in a irsol::protocol::InMessage variant.
Definition at line 32 of file command.hpp.
irsol::protocol::Command::Command | ( | const std::string & | identifier | ) |
Constructs a Command.
identifier | The command name; must start with a character and contain alphanumeric characters or underscores. |
Definition at line 9 of file command.cpp.
std::string irsol::protocol::Command::toString | ( | ) | const |
Converts the command to a human-readable string.
Definition at line 13 of file command.cpp.
std::string irsol::protocol::Command::identifier |
The name of the command to execute.
Definition at line 42 of file command.hpp.