34 lines
596 B
C++
34 lines
596 B
C++
#pragma once
|
|
|
|
#include <sp/common/DataBuffer.h>
|
|
|
|
namespace sp {
|
|
namespace option {
|
|
|
|
// Define type used to store message ID
|
|
template <typename T>
|
|
struct MsgIdType {};
|
|
|
|
// Enable reading
|
|
struct ReadOperations {};
|
|
|
|
// Enable writing
|
|
struct WriteOperations {};
|
|
|
|
// Enable id writing
|
|
struct WriteId {};
|
|
|
|
// Use little endian for serialisation (instead of default big)
|
|
struct LittleEndian {};
|
|
|
|
// Include validity check in public interface
|
|
struct ValidCheckInterface {};
|
|
|
|
// Define handler class
|
|
template <typename T>
|
|
struct Handler {
|
|
using HandlerT = T;
|
|
};
|
|
|
|
} // namespace option
|
|
} // namespace sp
|