当前位置: 首页>>代码示例>>C++>>正文


C++ PluginInfo::get_context方法代码示例

本文整理汇总了C++中PluginInfo::get_context方法的典型用法代码示例。如果您正苦于以下问题:C++ PluginInfo::get_context方法的具体用法?C++ PluginInfo::get_context怎么用?C++ PluginInfo::get_context使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在PluginInfo的用法示例。


在下文中一共展示了PluginInfo::get_context方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。

示例1: Plugin

//! \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);
}
开发者ID:Andais,项目名称:dmz,代码行数:11,代码来源:dmzInputPluginExit.cpp

示例2: MessageObserverState

/*!

\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); }
}
开发者ID:Andais,项目名称:dmz,代码行数:18,代码来源:dmzRuntimeMessaging.cpp

示例3:

/*!

\brief PluginInfo constructor.
\param[in] Info PluginInfo used to obtain the runtime context.

*/
dmz::Undo::Undo (const PluginInfo &Info) : _context (0) {

    RuntimeContext *context (Info.get_context ());
    if (context) {
        _context = context->get_undo_context();
    }
    if (_context) {
        _context->ref ();
    }
}
开发者ID:shillcock,项目名称:dmz,代码行数:16,代码来源:dmzRuntimeUndo.cpp

示例4: State

   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;
      }
   }
开发者ID:ashok,项目名称:dmz,代码行数:11,代码来源:dmzArchiveObserverUtil.cpp

示例5: State

/*!

\brief PluginInfo construct.
\param[in] Info PluginInfo object containing Handle and RuntimeContext.

*/
dmz::UndoObserver::UndoObserver (const PluginInfo &Info) :
      __state (*(new State (Info.get_handle (), Info.get_context ()))) {

   if (__state.handle && __state.context) {

      if (!__state.context->obsTable.store (__state.handle, this)) {

         __state.handle = 0;
      }
   }
}
开发者ID:,项目名称:,代码行数:17,代码来源:

示例6: store_rtti_interface

/*!

\brief Stores an interface with a unique handle using the PluginInfo.
\details Defined in dmzRuntimeRTTI.h.
\param[in] InterfaceName String containing name of interface.
\param[in] Info PluginInfo containing unique handle and runtime context.
\param[in] ptr Void pointer to the interface.
\return Returns dmz::True if the interface was successfully stored with the specified
handle and name.

*/
dmz::Boolean
dmz::store_rtti_interface (
      const String &InterfaceName,
      const PluginInfo &Info,
      void *ptr) {

   return store_rtti_interface (
      InterfaceName,
      Info.get_handle (),
      Info.get_context (),
      ptr);
}
开发者ID:Andais,项目名称:dmz,代码行数:23,代码来源:dmzRuntimeRTTI.cpp

示例7: Plugin

dmz::ExPluginMessageSend::ExPluginMessageSend (const PluginInfo &Info, Config &local) :
      Plugin (Info),
      TimeSlice (Info, TimeSliceTypeRuntime, TimeSliceModeRepeating, 1.0),
      _log (Info),
      _type (),
      _binder (Info.get_context (), &_log),
      _value ("Some Value"),
      _time (0.0) {

   _binder.bind ("value", 0, _value);
   _binder.bind ("time", 0, _time);

   _init (local);
}
开发者ID:Andais,项目名称:dmz,代码行数:14,代码来源:dmzExPluginMessageSend.cpp

示例8: Plugin

dmz::RenderModuleCoreOgreBasic::RenderModuleCoreOgreBasic (
      const PluginInfo &Info,
      Config &local,
      Config &global) :
      Plugin (Info),
      TimeSlice (Info),
      ObjectObserverUtil (Info, local),
      OSMSceneCallbacks (),
      RenderModuleCoreOgre (Info),
      _log (Info),
      _extensions (Info.get_context (), &_log),
      _objectModule (0),
      _defaultAttributeHandle (0),
      _ogreLogger (Info.get_context ()),
      _root (0),
      _sceneManager (0),
      _osmSceneLoader (0),
      _portalTable (),
      _dynamicObjectTable () {

   _init (local, global);

   activate_default_object_attribute (ObjectPositionMask | ObjectOrientationMask);
}
开发者ID:,项目名称:,代码行数:24,代码来源:

示例9: Plugin

//! \cond
dmz::NetExtPacketCodecObjectBasic::NetExtPacketCodecObjectBasic (
      const PluginInfo &Info,
      Config &local) :
      Plugin (Info),
      NetExtPacketCodecObject (Info),
      _SysID (get_runtime_uuid (Info)),
      _log (Info),
      _time (Info.get_context ()),
      _defaultHandle (0),
      _lnvHandle (0),
      _objMod (0),
      _attrMod (0) {

   _init (local);
}
开发者ID:Andais,项目名称:dmz,代码行数:16,代码来源:dmzNetExtPacketCodecObjectBasic.cpp

示例10: Plugin

dmz::EventModuleBasic::EventModuleBasic (const PluginInfo &Info, Config &local) :
      Plugin (Info),
      TimeSlice (Info),
      EventModule (Info),
      _log (Info),
      _time (Info.get_context ()),
      _inCloseEvent (False),
      _maxEvents (0),
      _eventTTL (1.0),
      _eventCache (0),
      _delayedListHead (0),
      _delayedListTail (0),
      _recycleList (0) {

   _init (local);
}
开发者ID:Andais,项目名称:dmz,代码行数:16,代码来源:dmzEventModuleBasic.cpp

示例11: Plugin

//! \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);
}
开发者ID:ben-sangster,项目名称:dmz,代码行数:19,代码来源:dmzEntityPluginFreeFly.cpp

示例12: Plugin

//! \cond
dmz::NetPluginRemoteDR::NetPluginRemoteDR (const PluginInfo &Info, Config &local) :
      Plugin (Info),
      TimeSlice (Info),
      ObjectObserverUtil (Info, local),
      _log (Info),
      _time (Info.get_context ()),
      _objMod (0),
      _defaultHandle (0),
      _lnvHandle (0) {

   _init (local);

   _defaultHandle = activate_object_attribute (
      ObjectAttributeDefaultName,
      ObjectCreateMask | ObjectDestroyMask | ObjectLocalityMask);

   _lnvHandle = activate_object_attribute (
      ObjectAttributeLastNetworkValueName,
      ObjectCreateMask);
}
开发者ID:Andais,项目名称:dmz,代码行数:21,代码来源:dmzNetPluginRemoteDR.cpp

示例13: defs

//! \cond
dmz::NetModuleIdentityMapBasic::NetModuleIdentityMapBasic (
      const PluginInfo &Info,
      Config &local) :
      Plugin (Info),
      NetModuleIdentityMap (Info),
      MessageObserver (Info),
      _log (Info),
      _site (0),
      _host (0),
      _netHandles (1001, 1, 0xFFFF),
      _handleConverter (Info.get_context ()) {

   _init (local);

   Definitions defs (Info, &_log);

   if (defs.create_message (ObjectDestroyMessageName, _removeObjMsg)) {

      subscribe_to_message (_removeObjMsg);
   }
}
开发者ID:ben-sangster,项目名称:dmz,代码行数:22,代码来源:dmzNetModuleIdentityMapBasic.cpp

示例14:

/*!

\brief PluginInfo Constructor.
\param[in] Info Reference to the PluginInfo.
\param[in] log Pointer to the Log to user for error reporting.

*/
dmz::Resources::Resources (const PluginInfo &Info, Log *log) : _context (0), _log (log) {

   RuntimeContext *context (Info.get_context ());
   _context = (context ? context->get_resources_context () : 0);
   if (_context) { _context->ref (); }
}
开发者ID:ben-sangster,项目名称:dmz,代码行数:13,代码来源:dmzRuntimeResources.cpp

示例15: State

/*!

\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 ()))) {
}
开发者ID:ben-sangster,项目名称:dmz,代码行数:9,代码来源:dmzRuntimeResourcesObserver.cpp


注:本文中的PluginInfo::get_context方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。