hmbdc
simplify-high-performance-messaging-programming
Public Types | List of all members
hmbdc::app::hasTag< tag > Class Template Reference

each message type has 16 bit tag More...

#include <Message.hpp>

Public Types

enum  { typeTag = tag }
 

Detailed Description

template<uint16_t tag>
class hmbdc::app::hasTag< tag >

each message type has 16 bit tag

If a Messaeg type has a dtor or containing a data member that has it, the dtor(s) are NOT going to be called by hmbdc framework after the message is injected into a Context. User code has to handle it. Otherwise, it is very simple to define a message:

struct Finish
: hasTag<1004> {
Finish(uint16_t srcId)
: srcId(srcId)
{}
uint16_t srcId;
};
Template Parameters
tag16 bit unsigned tag
Examples:
chat.cpp, client-server-netmap.cpp, hello-world.cpp, hmbdc-log.cpp, hmbdc.cpp, ipc-market-data-propagate.cpp, rmcast-cp.cpp, and server-cluster.cpp.

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