Main Page   Class Hierarchy   Compound List   File List   Compound Members  

SOMEDefines.h

00001 /********************************************************************
00002 ** Copyright (C) 2000 SOMELib Project
00003 **
00004 ** This library is free software; you can redistribute it and/or
00005 ** modify it under the terms of the GNU Library General Public
00006 ** License as published by the Free Software Foundation; either
00007 ** version 2 of the License, or (at your option) any later version.
00008 **
00009 ** This library is distributed in the hope that it will be useful,
00010 ** but WITHOUT ANY WARRANTY; without even the implied warranty of
00011 ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00012 ** Library General Public License for more details.
00013 **
00014 ** You should have received a copy of the GNU Library General Public
00015 ** License along with this library; if not, write to the
00016 ** Free Software Foundation, Inc., 59 Temple Place - Suite 330,
00017 ** Boston, MA  02111-1307, USA.
00018 **
00019 *******************************************************************/
00020 
00021 #ifndef SOME_DEFINES_HEADER
00022 #define SOME_DEFINES_HEADER
00023 
00024 #ifdef _WIN32
00025 #define SOME_EXPORT extern "C" __declspec(dllexport)
00026 #else
00027 #define SOME_EXPORT extern "C"
00028 #endif
00029 
00033 #define DEFAULT_CONSTRUCT_FUNC_NAME(classname) create_default_##classname
00034 #define MAKE_DEFAULT_CONSTRUCT_FUNC(classname) SOME_EXPORT inline classname * create_default_##classname() { return new classname; }
00035 
00036 #define ONE_PARAM_CONSTRUCT_FUNC_NAME(classname) create_1param_##classname
00037 #define MAKE_ONE_PARAM_CONSTRUCT_FUNC(classname, param1type) SOME_EXPORT inline classname * create_1param_##classname( param1type param1) { return new classname(param1); }
00038 
00039 #define TWO_PARAM_CONSTRUCT_FUNC_NAME(classname) create_2param_##classname
00040 #define MAKE_TWO_PARAM_CONSTRUCT_FUNC(classname, param1type, param2type) SOME_EXPORT inline classname * create_2param_##classname( param1type param1, param2type param2 ) { return new classname(param1, param2); }
00041 
00042 #endif //SOME_DEFINES_HEADER
00043 

Generated at Fri Dec 8 14:24:48 2000 for SOMELib by doxygen1.2.1 written by Dimitri van Heesch, © 1997-2000