c++ Programming Glossary: messagetmpl
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 template int TYPE typename IMPL class MessageTmpl public Message enum _MESSAGE_ID TYPE .. MESSAGE_ID for registration protected MessageTmpl m_type MESSAGE_ID use parameter to instanciate template .. template int TYPE typename IMPL const uint16_t MessageTmpl TYPE IMPL MESSAGE_ID MessageFactory Register MessageTmpl..
|