//! Gets the global Message. dmz::Message dmz::Definitions::get_global_message () const { Message result; if (_state.context) { RuntimeContextMessaging *rcm = _state.context->get_messaging_context (); if (rcm) { rcm->ref (); result = rcm->globalType; rcm->unref (); } else if (_state.log) { _state.log->error << "Internal Error, Unable to get Global Message Type." << endl; } } else if (_state.log) { _state.log->error << "NULL Runtime context. Unable to get Global Message Type." << endl; } return result; }
MessageObserverState ( const Handle TheHandle, const String &TheName, RuntimeContext *theContext) : ObsHandle (TheHandle), Name (TheName), handlePtr (0), context (0) { if (theContext) { context = theContext->get_messaging_context (); if (!ObsHandle) { handlePtr = new RuntimeHandle (TheName + ".MessageObserver", theContext); } } if (context) { context->ref (); } }