Implement Plugin Library object for text plugin. More...
#include <library_impl.h>
Public Member Functions | |
PluginLibraryImpl () | |
~PluginLibraryImpl () |
Implement Plugin Library object for text plugin.
Definition at line 41 of file plaintext/plugin_impl/library_impl.h.
text::PluginLibraryImpl::PluginLibraryImpl | ( | ) |
Definition at line 48 of file plaintext/plugin_impl/library_impl.cpp.
References utils::ObjectTable< T >::add_interface(), IPluginLibrary::create_document, IPluginLibrary::is_supported_document, _IPluginUnknown::query_interface, and _IPluginUnknown::release.
00049 { 00050 // Initialize all interface method pointers. 00051 query_interface = query_interface_impl; 00052 release = release_impl; 00053 is_supported_document = is_supported_document_impl; 00054 create_document = create_document_impl; 00055 00056 // record the instance. 00057 g_instances_table.add_interface<IPluginUnknown>(this); 00058 g_instances_table.add_interface<IPluginLibrary>(this); 00059 }
text::PluginLibraryImpl::~PluginLibraryImpl | ( | ) |
Definition at line 61 of file plaintext/plugin_impl/library_impl.cpp.
References utils::ObjectTable< T >::remove().
00062 { 00063 g_instances_table.remove(this); 00064 }