CMP EMBEDDED.COM

Login | Register     Welcome Guest  
HOME DESIGN PRODUCTS COLUMNS E-LEARNING CONFERENCES CODE FORUMS/BLOGS NEWSLETTERS CONTACT FEATURES RSS RSS

Listing 5: CMsgSwitch construction definition

CMsgSwitch::CMsgSwitch()
{
// Add pointers to the message processing functions to the STL map. 
// Whenever a new value is added to MSG_TYPE just declare a new message 
// processing function and add it to the map below.
m_opMap[MSG_TYPE_1] = reinterpret_cast(&CMsgSwitch::ProcessMsgT1);
m_opMap[MSG_TYPE_2] = reinterpret_cast(&CMsgSwitch::ProcessMsgT2);
m_opMap[MSG_TYPE_3] = reinterpret_cast(&CMsgSwitch::ProcessMsgT3);
}

Return to article
Embedded.com Career Center
Looking for a new job?
SEARCH JOBS

Browse all jobs

SPONSOR
RECENT JOB POSTINGS





 :