/*! \brief PluginInfo constructor. \param[in] Info PluginInfo used for setting the observers name, handle, and runtime context. \note This constructor is intended for Plugins that wish to receive messages. The observer will have the same name and runtime handle as the plugin using this constructor. */ dmz::MessageObserver::MessageObserver (const PluginInfo &Info) : _msgObsState (*(new MessageObserverState ( Info.get_handle (), Info.get_name (), Info.get_context ()))) { if (_msgObsState.context) { _msgObsState.context->add_observer (*this); } }
//! \cond dmz::InputPluginExit::InputPluginExit ( const PluginInfo &Info, Config &local) : Plugin (Info), InputObserverUtil (Info, local), _exit (Info.get_context ()), _log (Info.get_name (), Info.get_context ()) { _init (local); }
State (const PluginInfo &Info, const Config &Init) : ArchiveModuleName (config_to_string ("module.archive.name", Init)), log (Info.get_name () + ".ArchiveObserverUtil", Info.get_context ()), defs (Info, &log), module (0) { if (ArchiveModuleName) { log.info << "Looking for Archive Module: " << ArchiveModuleName << endl; } }
//! \cond dmz::EntityPluginFreeFly::EntityPluginFreeFly ( const PluginInfo &Info, Config &local) : Plugin (Info), TimeSlice (Info), ObjectObserverUtil (Info, local), InputObserverUtil (Info, local), _handle (0), _defaultHandle (0), _hilHandle (0), _isect (0), _active (0), _log (Info.get_name (), Info.get_context ()) { stop_time_slice (); _init (local); }
/*! \brief Constructor. \param[in] Info Reference to the PluginInfo. */ dmz::ResourcesObserver::ResourcesObserver (const PluginInfo &Info) : __state (*(new State (Info.get_handle (), Info.get_name (), Info.get_context ()))) { }