src/common/trailer.h
changeset 1153 c33427a6bef0
parent 1152 1d06449f0a98
child 1154 3434ebc3c553
equal deleted inserted replaced
1152:1d06449f0a98 1153:c33427a6bef0
    22 #ifndef TRAILER_H
    22 #ifndef TRAILER_H
    23 #define TRAILER_H
    23 #define TRAILER_H
    24 
    24 
    25 #include "chunk.h"
    25 #include "chunk.h"
    26 
    26 
       
    27 /**
       
    28  * \relates Trailer
       
    29  * \brief this macro should be instantiated exactly once for each
       
    30  *        new type of Trailer
       
    31  *
       
    32  * This macro will ensure that your new Trailer type is registered
       
    33  * within the packet trailer registry. In most cases, this macro
       
    34  * is not really needed but, for safety, please, use it all the
       
    35  * time.
       
    36  *
       
    37  * Note: This macro is _absolutely_ needed if you try to run a
       
    38  * distributed simulation.
       
    39  */
    27 #define NS_TRAILER_ENSURE_REGISTERED(x)         \
    40 #define NS_TRAILER_ENSURE_REGISTERED(x)         \
    28 namespace {                                     \
    41 namespace {                                     \
    29 static class thisisaveryverylongclassname       \
    42 static class thisisaveryverylongclassname       \
    30 {                                               \
    43 {                                               \
    31 public:                                         \
    44 public:                                         \