images/plugin_impl/export_impl.cpp File Reference

#include <cassert>
#include "export_impl.h"
#include "library_impl.h"
#include "config.h"
Include dependency graph for images/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 45 of file images/plugin_impl/export_impl.cpp.

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

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 35 of file images/plugin_impl/export_impl.cpp.

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

Generated by  doxygen 1.6.2-20100208