#include <boost/integer/integer_mask.hpp>
#include <boost/preprocessor/seq/for_each.hpp>
#include <boost/preprocessor/tuple/rem.hpp>
Go to the source code of this file.
Defines | |
#define | ADD_CADDY_MESSAGE(NAME, CODE, DEPTHSIZE, LATLONSIZE, MSGSIZE) |
#define | ADD_CADDY_MESSAGE2(r, data, elem) |
#define | ADD_TO_MAP(r, data, elem) data[BOOST_PP_TUPLE_ELEM(5,1,elem)] = boost::shared_ptr<BOOST_PP_TUPLE_ELEM(5,0,elem)>(new (BOOST_PP_TUPLE_ELEM(5,0,elem))); |
#define | DEFINE_DIVER_MESSAGES(seq) |
#define | DEFINE_TOPSIDE_MESSAGES(seq) |
#define | PP_MSG_FILLER_0(X1, X2, X3, X4, X5) ((X1,X2,X3, X4,X5)) PP_MSG_FILLER_1 |
#define | PP_MSG_FILLER_0_END |
#define | PP_MSG_FILLER_1(X1, X2, X3, X4, X5) ((X1,X2,X3, X4,X5)) PP_MSG_FILLER_0 |
#define | PP_MSG_FILLER_1_END |
#define ADD_CADDY_MESSAGE | ( | NAME, | |
CODE, | |||
DEPTHSIZE, | |||
LATLONSIZE, | |||
MSGSIZE | |||
) |
struct NAME : public virtual labust::tritech::Packer\ {\ enum{type=CODE};\ enum{depthSize=DEPTHSIZE,latlonSize=LATLONSIZE,msgSize=MSGSIZE};\ uint64_t pack(DiverMsg& msg) \ { \ return msg.pack<NAME>(); \ } \ void unpack(uint64_t data, DiverMsg& msg) \ { \ msg.unpack<NAME>(data); \ } \ };\
Definition at line 88 of file detail/message_preprocess.hpp.
#define ADD_CADDY_MESSAGE2 | ( | r, | |
data, | |||
elem | |||
) |
ADD_CADDY_MESSAGE(BOOST_PP_TUPLE_ELEM(5,0,elem), \ BOOST_PP_TUPLE_ELEM(5,1,elem), \ BOOST_PP_TUPLE_ELEM(5,2,elem), \ BOOST_PP_TUPLE_ELEM(5,3,elem), \ BOOST_PP_TUPLE_ELEM(5,4,elem))
Definition at line 81 of file detail/message_preprocess.hpp.
#define ADD_TO_MAP | ( | r, | |
data, | |||
elem | |||
) | data[BOOST_PP_TUPLE_ELEM(5,1,elem)] = boost::shared_ptr<BOOST_PP_TUPLE_ELEM(5,0,elem)>(new (BOOST_PP_TUPLE_ELEM(5,0,elem))); |
Definition at line 78 of file detail/message_preprocess.hpp.
#define DEFINE_DIVER_MESSAGES | ( | seq | ) |
BOOST_PP_SEQ_FOR_EACH_R(1, ADD_CADDY_MESSAGE2, \ 3, BOOST_PP_CAT(PP_MSG_FILLER_0 seq, _END))\ void registerDiverMessages() \ { \ static bool inited(false); \ if (!inited) \ { \ inited = true; \ BOOST_PP_SEQ_FOR_EACH_R(1, ADD_TO_MAP, \ diverMap, BOOST_PP_CAT(PP_MSG_FILLER_0 seq, _END))\ } \ };
Definition at line 64 of file detail/message_preprocess.hpp.
#define DEFINE_TOPSIDE_MESSAGES | ( | seq | ) |
BOOST_PP_SEQ_FOR_EACH_R(1, ADD_CADDY_MESSAGE2, \ 3, BOOST_PP_CAT(PP_MSG_FILLER_0 seq, _END))\ void registerTopsideMessages() \ { \ static bool inited(false); \ if (!inited) \ { \ inited = true; \ BOOST_PP_SEQ_FOR_EACH_R(1, ADD_TO_MAP, \ topsideMap, BOOST_PP_CAT(PP_MSG_FILLER_0 seq, _END))\ } \ };
Definition at line 50 of file detail/message_preprocess.hpp.
#define PP_MSG_FILLER_0 | ( | X1, | |
X2, | |||
X3, | |||
X4, | |||
X5 | |||
) | ((X1,X2,X3, X4,X5)) PP_MSG_FILLER_1 |
Definition at line 43 of file detail/message_preprocess.hpp.
#define PP_MSG_FILLER_0_END |
Definition at line 47 of file detail/message_preprocess.hpp.
#define PP_MSG_FILLER_1 | ( | X1, | |
X2, | |||
X3, | |||
X4, | |||
X5 | |||
) | ((X1,X2,X3, X4,X5)) PP_MSG_FILLER_0 |
Definition at line 45 of file detail/message_preprocess.hpp.
#define PP_MSG_FILLER_1_END |
Definition at line 48 of file detail/message_preprocess.hpp.