Implement Plugin Library object for pdf plugin. More...
#include <library_impl.h>
Public Member Functions | |
PluginLibraryImpl () | |
~PluginLibraryImpl () |
Implement Plugin Library object for pdf plugin.
Definition at line 41 of file pdf/plugin_impl/library_impl.h.
pdf::PluginLibraryImpl::PluginLibraryImpl | ( | ) |
Definition at line 48 of file pdf/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 // g_thread_init(0); 00051 00052 // Initialize all interface method pointers. 00053 query_interface = query_interface_impl; 00054 release = release_impl; 00055 is_supported_document = is_supported_document_impl; 00056 create_document = create_document_impl; 00057 00058 // record the instance. 00059 g_instances_table.add_interface<IPluginUnknown>(this); 00060 g_instances_table.add_interface<IPluginLibrary>(this); 00061 }
pdf::PluginLibraryImpl::~PluginLibraryImpl | ( | ) |
Definition at line 63 of file pdf/plugin_impl/library_impl.cpp.
References utils::ObjectTable< T >::remove().
00064 { 00065 g_instances_table.remove(this); 00066 }