IRSOL
C++ code implementing socket server for interacting with Baumer camera.
parser_result.hpp File Reference

Encapsulates the result of a protocol parsing operation. More...

#include "irsol/macros.hpp"
#include "irsol/protocol/message/variants.hpp"
#include "irsol/traits.hpp"
#include <sstream>
#include <string>
#include <variant>

Go to the source code of this file.

Classes

class  irsol::protocol::internal::ParserResult< T, >
 Wrapper for the result of a protocol parsing attempt. More...
 

Namespaces

namespace  irsol
 
namespace  irsol::protocol
 Core protocol message types, serialization, parsing, and communication utilities for the irsol framework.
 
namespace  irsol::protocol::internal
 

Detailed Description

Encapsulates the result of a protocol parsing operation.

Template Parameters
TThe expected message type, constrained to be one of the irsol::protocol::InMessage variant types.

This class holds either a successfully parsed message of type T or a parsing error message (std::string). It provides convenient accessors and status-checking methods to determine whether the result was successful or an error.

Definition in file parser_result.hpp.