// $Id: CMsg.htm 119 2004-05-16 00:02:24Z ggs_mburo $ // This is a GGS file, licensed under the GPL CMsg

CMsg

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

Message

Message Posting

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 Handling

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.

Variables

ggsstream*pgspointer to the ggsstream originating the message
stringsFromstring containing message sender, e.g. "/os"
stringsRawTextthe entire text of the message including sFrom but not the terminal "READY"