IRSOL
C++ code implementing socket server for interacting with Baumer camera.
irsol::protocol::internal::BinaryDataBufferName< N > Struct Template Reference

Helper to get a descriptive name for binary data buffers by dimensionality. More...

#include <binary.hpp>

Static Public Member Functions

static constexpr std::string_view name ()
 

Detailed Description

template<std::uint8_t N>
struct irsol::protocol::internal::BinaryDataBufferName< N >

Helper to get a descriptive name for binary data buffers by dimensionality.

Template Parameters
NThe dimensionality of the buffer.

Definition at line 74 of file binary.hpp.

Member Function Documentation

◆ name()

template<std::uint8_t N>
static constexpr std::string_view irsol::protocol::internal::BinaryDataBufferName< N >::name ( )
inlinestaticconstexpr

Definition at line 76 of file binary.hpp.

77 {
78 if constexpr(N == 1) {
79 return "BinaryDataBuffer";
80 } else if constexpr(N == 2) {
81 return "BinaryDataBuffer2D";
82 } else if constexpr(N == 3) {
83 return "BinaryDataBuffer3D";
84 } else {
85 IRSOL_STATIC_UNREACHABLE("Unsupported dimensionality for BinaryDataBuffer");
86 }
87 }
#define IRSOL_STATIC_UNREACHABLE(messageLiteral)
Marks unreachable branches in constexpr functions.
Definition macros.hpp:130

The documentation for this struct was generated from the following file: