CMP EMBEDDED.COM

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

Listing 7: Sample application code

CMsgSwitch myCMsgSwitch;
bool retVal = true;
// The Client class calls a single function on the CMsgSwitch rather than 
// specific functions for each message type. This keeps the interface to 
// CMsgSwitch narrow.
CMsgT1 myMsg1;
retVal = myCMsgSwitch.SendMsg(myMsg1);
CMsgT2 myMsg2;
retVal = myCMsgSwitch.SendMsg(myMsg2);
CMsgT3 myMsg3;
retVal = myCMsgSwitch.SendMsg(myMsg3);

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

Browse all jobs

SPONSOR
RECENT JOB POSTINGS





 :