SPModel: VMake/Plugin-meta-template.c Source File
VPAC - Computational Software Development
Main | SPModel | StGermain FrameWork |
Main Page | Alphabetical List | Class List | Directories | File List | Class Members | File Members

Plugin-meta-template.c

Go to the documentation of this file.
00001 /*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
00002 **
00003 ** Copyright (C), 2003, Victorian Partnership for Advanced Computing (VPAC) Ltd, 110 Victoria Street, Melbourne, 3053, Australia.
00004 **
00005 ** Authors:
00006 **  Stevan M. Quenette, Senior Software Engineer, VPAC. (steve@vpac.org)
00007 **  Patrick D. Sunter, Software Engineer, VPAC. (pds@vpac.org)
00008 **  Luke J. Hodkinson, Computational Engineer, VPAC. (lhodkins@vpac.org)
00009 **  Siew-Ching Tan, Software Engineer, VPAC. (siew@vpac.org)
00010 **  Alan H. Lo, Computational Engineer, VPAC. (alan@vpac.org)
00011 **  Raquibul Hassan, Computational Engineer, VPAC. (raq@vpac.org)
00012 **
00013 **  This library is free software; you can redistribute it and/or
00014 **  modify it under the terms of the GNU Lesser General Public
00015 **  License as published by the Free Software Foundation; either
00016 **  version 2.1 of the License, or (at your option) any later version.
00017 **
00018 **  This library is distributed in the hope that it will be useful,
00019 **  but WITHOUT ANY WARRANTY; without even the implied warranty of
00020 **  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00021 **  Lesser General Public License for more details.
00022 **
00023 **  You should have received a copy of the GNU Lesser General Public
00024 **  License along with this library; if not, write to the Free Software
00025 **  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
00026 **~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/
00027 
00028 /* !!! This is an automatically generated file
00029  * !!! Do not make modifications here or they will be overwritten
00030  */
00031 #define Plugin_Stringify( str ) #str
00032 
00033 /* Note: Two macros are used to resolve the the extra macro level */
00034 #define Plugin_Metadata_Create( name ) Plugin_Metadata_Create_Macro( name )
00035 #define Plugin_Metadata_Create_Macro( name ) \
00036     const char* name ##_Meta = XML_METADATA; \
00037     const char* name ##_Name = #name; \
00038     const char* name ##_Version = VERSION; \
00039     const char* name ##_GetMetadata() { \
00040         return name ##_Meta; \
00041     } \
00042     const char* name ##_GetName() { \
00043         return name ##_Name; \
00044     } \
00045     const char* name ##_GetVersion() { \
00046         return name ##_Version; \
00047     }
00048 
00049 
00050 #if defined(PLUGIN_NAME) && defined(VERSION) && defined(XML_METADATA)
00051 
00052     Plugin_Metadata_Create( PLUGIN_NAME )
00053 
00054 #endif
00055