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);