IRSOL
C++ code implementing socket server for interacting with Baumer camera.
command.cpp
Go to the documentation of this file.
2
4
5#include <sstream>
6
7namespace irsol {
8namespace protocol {
9Command::Command(const std::string& identifier): identifier(utils::validateIdentifier(identifier))
10{}
11
12std::string
14{
15 std::ostringstream oss;
16 oss << "Command{"
17 << "identifier: '" << identifier << "'}";
18 return oss.str();
19}
20} // namespace protocol
21} // namespace irsol
Protocol command representation.
Utility functions for protocol string handling and validation in the irsol library.
std::string toString() const
Converts the command to a human-readable string.
Definition command.cpp:13
Command(const std::string &identifier)
Constructs a Command.
Definition command.cpp:9
std::string identifier
The name of the command to execute.
Definition command.hpp:42