cpp-msgpack-light 0.3.0
A light library to serialize MessagePack.
Loading...
Searching...
No Matches
struct.h File Reference

Definition of macros to support serialization of struct types. More...

Include dependency graph for struct.h:

Go to the source code of this file.

Macros

#define MSGPACK_LIGHT_STRUCT_ARRAY(STRUCT, ...)
 Macro to generate class to support serialization of struct into arrays.
#define MSGPACK_LIGHT_STRUCT_MAP(STRUCT, ...)
 Macro to generate class to support serialization of struct into maps.

Detailed Description

Definition of macros to support serialization of struct types.

Definition in file struct.h.

Macro Definition Documentation

◆ MSGPACK_LIGHT_STRUCT_ARRAY

#define MSGPACK_LIGHT_STRUCT_ARRAY ( STRUCT,
... )
Value:
INTERNAL_MSGPACK_LIGHT_STRUCT_ARRAY, \
(STRUCT, __VA_ARGS__))
#define INTERNAL_MSGPACK_LIGHT_CONCATENATE(str1, str2)
Macro to concatenate two strings.
#define INTERNAL_MSGPACK_LIGHT_COUNT_ARGUMENTS(...)
Macro to count number of arguments.
#define INTERNAL_MSGPACK_LIGHT_INVOKE_MACRO(macro, args)
Internal macro to implement INTERNAL_MSGPACK_LIGHT_COUNT_ARGUMENTS macro.

Macro to generate class to support serialization of struct into arrays.

Parameters
STRUCTType of the struct. Remaining arguments are treated as parameter names.
Warning
This macro works for 1 to 15 parameters.

Definition at line 50 of file struct.h.

◆ MSGPACK_LIGHT_STRUCT_MAP

#define MSGPACK_LIGHT_STRUCT_MAP ( STRUCT,
... )
Value:
INTERNAL_MSGPACK_LIGHT_CONCATENATE(INTERNAL_MSGPACK_LIGHT_STRUCT_MAP, \
(STRUCT, __VA_ARGS__))

Macro to generate class to support serialization of struct into maps.

Parameters
STRUCTType of the struct. Remaining arguments are treated as parameter names.
Warning
This macro works for 1 to 15 parameters.

Definition at line 35 of file struct.h.