c++ Programming Glossary: message_id
Converting a pointer into an integer http://stackoverflow.com/questions/153065/converting-a-pointer-into-an-integer type in the function itself. A short example void function MESSAGE_ID id void param if id FOO int real_param int param ... Of course..
Dynamically register constructor methods in an AbstractFactory at compile time using C++ templates http://stackoverflow.com/questions/2850213/dynamically-register-constructor-methods-in-an-abstractfactory-at-compile-time-u MessageTmpl public Message enum _MESSAGE_ID TYPE public static Message Create return.. Create return new IMPL static const uint16_t MESSAGE_ID for registration protected MessageTmpl m_type.. protected MessageTmpl m_type MESSAGE_ID use parameter to instanciate template typedef..
|