pdf/plugin_impl/export_impl.cpp File Reference

#include <cassert>
#include "export_impl.h"
#include "library_impl.h"
#include "config.h"
Include dependency graph for pdf/plugin_impl/export_impl.cpp:

Go to the source code of this file.

Functions

const char * get_version ()
 Return the highest API version this plugin supports.
IPluginUnknowncreate_plugin_library ()
 Create a new plugin library instance and return the IPluginUnknown interface of the instance. Currently, this function is not allowed to be called twice.

Function Documentation

IPluginUnknown* create_plugin_library (  ) 

Create a new plugin library instance and return the IPluginUnknown interface of the instance. Currently, this function is not allowed to be called twice.

Construct plugin library instance and return the IPluginUnkonwn interface pointer.

Definition at line 43 of file pdf/plugin_impl/export_impl.cpp.

00044 {
00045     using namespace pdf;
00046     static PluginLibraryImpl * library;
00047     if (library == NULL)
00048     {
00049         library = new PluginLibraryImpl;
00050         return static_cast<IPluginUnknown *>(library);
00051     }
00052     assert(false);
00053     return 0;
00054 }

const char* get_version (  ) 

Return the highest API version this plugin supports.

Retrieve supported highest API version.

Copyright (C) 2008 iRex Technologies B.V. All rights reserved.

Definition at line 33 of file pdf/plugin_impl/export_impl.cpp.

00034 {
00035     // VERSION is automatically defined in config.h from the version 
00036     // number in configure.ac
00037    return VERSION;
00038 }

Generated by  doxygen 1.6.2-20100208