libs/stream_message/src/mbuildmsg.cxx
// ===========================================================================
// Parse a message.
// The message is in a simplified XML data format.
//
Parse a message.
The message is in a simplified XML data format.
Parse a message . The message is in a simplified XML data format .
Message *Message::Decode(const char *bufPtr, unsigned long bufLen) {
    string *diagnostic = NULL;
    MessageParser theParser(bufPtr, bufLen, diagnostic);
    theParser.parse();
    Message *retVal = theParser.finalRoot;
    if (retVal == NULL && diagnostic != NULL) {
	cerr << diagnostic << endl;
    }
    delete diagnostic;
    return retVal;
}
Message * Message :: Decode ( const char * bufPtr , unsigned long bufLen ) { string * diagnostic = NULL ; MessageParser theParser ( bufPtr , bufLen , diagnostic ) ; theParser . parse ( ) ; Message * retVal = theParser . finalRoot ; if ( retVal == NULL && diagnostic != NULL ) { cerr << diagnostic << endl ; } delete diagnostic ; return retVal ; }
Parse a message.
Parse a message .