本文整理汇总了C++中PluginInfo::get_handle方法的典型用法代码示例。如果您正苦于以下问题:C++ PluginInfo::get_handle方法的具体用法?C++ PluginInfo::get_handle怎么用?C++ PluginInfo::get_handle使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类PluginInfo
的用法示例。
在下文中一共展示了PluginInfo::get_handle方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: 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); }
}
示例2: 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;
}
}
}
示例3: 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);
}
示例4: 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 ()))) {
}