// $Id: CMsg.htm 119 2004-05-16 00:02:24Z ggs_mburo $ // This is a GGS file, licensed under the GPL
The framework parses all messages from GGS and /os, and sends them out as a CMsg subclass.
This page describes the base class and the handling sequence
CMsg::Post() is called when a message is parsed.
The default CMsg::Post() handler calls Handle() and then deletes the message. Edit the Post() function to modify this behaviour, e.g. to post the messages to the Windows message queue
Message handlers for specific messages are in the CMsgXXX::Handle() functions. The default is to call CMsg::Handle(). Edit the CMsgXXX::Handle() functions to change this.
The default for CMsg::Handle() is to output the message to cout. Edit CMsg::Handle() to change this.
ggsstream* | pgs | pointer to the ggsstream originating the message |
string | sFrom | string containing message sender, e.g. "/os" |
string | sRawText | the entire text of the message including sFrom but not the terminal "READY" |