本文整理汇总了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);
}
示例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); }
}
示例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 ();
}
}
示例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;
}
}
示例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;
}
}
}
示例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);
}
示例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);
}
示例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);
}
示例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);
}
示例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);
}
示例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);
}
示例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);
}
示例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);
}
}
示例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 (); }
}
示例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 ()))) {
}