pdf/plugin_impl/export_impl.cpp

Go to the documentation of this file.
00001 /*
00002  * File Name: export_impl.cpp
00003  */
00004 
00005 /*
00006  * This file is part of uds-plugin-pdf.
00007  *
00008  * uds-plugin-pdf is free software: you can redistribute it and/or modify
00009  * it under the terms of the GNU General Public License as published by
00010  * the Free Software Foundation, either version 2 of the License, or
00011  * (at your option) any later version.
00012  *
00013  * uds-plugin-pdf is distributed in the hope that it will be useful,
00014  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00015  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
00016  * GNU General Public License for more details.
00017  *
00018  * You should have received a copy of the GNU General Public License
00019  * along with this program. If not, see <http://www.gnu.org/licenses/>.
00020  */
00021 
00022 /**
00023  * Copyright (C) 2008 iRex Technologies B.V.
00024  * All rights reserved.
00025  */
00026 
00027 #include <cassert>
00028 #include "export_impl.h"
00029 #include "library_impl.h"
00030 #include "config.h"
00031 
00032 /// @brief Return the highest API version this plugin supports.
00033 const char* get_version() 
00034 {
00035     // VERSION is automatically defined in config.h from the version 
00036     // number in configure.ac
00037    return VERSION;
00038 }
00039 
00040 /// @brief Create a new plugin library instance and return
00041 /// the IPluginUnknown interface of the instance.
00042 /// Currently, this function is not allowed to be called twice.
00043 IPluginUnknown* create_plugin_library()
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 }
00055 
Generated by  doxygen 1.6.2-20100208