00001 /**************************************************************************** 00002 * VCGLib o o * 00003 * Visual and Computer Graphics Library o o * 00004 * _ O _ * 00005 * Copyright(C) 2004 \/)\/ * 00006 * Visual Computing Lab /\/| * 00007 * ISTI - Italian National Research Council | * 00008 * \ * 00009 * All rights reserved. * 00010 * * 00011 * This program is free software; you can redistribute it and/or modify * 00012 * it under the terms of the GNU General Public License as published by * 00013 * the Free Software Foundation; either version 2 of the License, or * 00014 * (at your option) any later version. * 00015 * * 00016 * This program is distributed in the hope that it will be useful, * 00017 * but WITHOUT ANY WARRANTY; without even the implied warranty of * 00018 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * 00019 * GNU General Public License (http://www.gnu.org/licenses/gpl.txt) * 00020 * for more details. * 00021 * * 00022 ****************************************************************************/ 00023 /**************************************************************************** 00024 History 00025 00026 $Log: not supported by cvs2svn $ 00027 Revision 1.3 2004/05/12 10:18:55 ganovelli 00028 new line added at the end of file 00029 00030 Revision 1.2 2004/05/10 14:26:33 ganovelli 00031 argument name removed to avoid "unreference variable"warning 00032 00033 Revision 1.1 2004/03/03 15:00:51 cignoni 00034 Initial commit 00035 00036 ****************************************************************************/ 00037 00038 #ifndef __VCGLIB_CALLBACK 00039 #define __VCGLIB_CALLBACK 00040 00041 namespace vcg { 00042 // Generic Callback function: 00043 // Used to make algorithms interumpable 00044 // Return value: true continue, false break 00045 // The second callback is to know where we are (useful for progress bar) 00046 typedef bool CallBack( const char * str ); 00047 typedef bool CallBackPos(const int pos, const char * str ); 00048 00049 inline bool DummyCallBack( const char * ) {return true;} 00050 inline bool DummyCallBackPos(const int , const char * ) {return true;} 00051 00053 typedef void TaskFunc(int t,void * contest); 00054 00055 } // End namespace 00056 00057 00058 #endif