00001 /*************************************************************************** 00002 tag: Erwin Aertbelien Mon Jan 10 16:38:39 CET 2005 error_stack.h 00003 00004 error_stack.h - description 00005 ------------------- 00006 begin : Mon January 10 2005 00007 copyright : (C) 2005 Erwin Aertbelien 00008 email : erwin.aertbelien@mech.kuleuven.ac.be 00009 00010 *************************************************************************** 00011 * This library is free software; you can redistribute it and/or * 00012 * modify it under the terms of the GNU Lesser General Public * 00013 * License as published by the Free Software Foundation; either * 00014 * version 2.1 of the License, or (at your option) any later version. * 00015 * * 00016 * This library 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 GNU * 00019 * Lesser General Public License for more details. * 00020 * * 00021 * You should have received a copy of the GNU Lesser General Public * 00022 * License along with this library; if not, write to the Free Software * 00023 * Foundation, Inc., 59 Temple Place, * 00024 * Suite 330, Boston, MA 02111-1307 USA * 00025 * * 00026 ***************************************************************************/ 00027 00028 00038 #ifndef ERROR_STACK_H 00039 #define ERROR_STACK_H 00040 00041 #include "utility.h" 00042 #include "utility_io.h" 00043 #include <string> 00044 00045 00046 namespace KDL { 00047 00048 /* 00049 * \todo 00050 * IOTrace-routines store in static memory, should be in thread-local memory. 00051 * pushes a description of the current routine on the IO-stack trace 00052 */ 00053 void IOTrace(const std::string& description); 00054 00056 void IOTracePop(); 00057 00058 00060 void IOTraceOutput(std::ostream& os); 00061 00064 void IOTracePopStr(char* buffer,int size); 00065 00066 00067 } 00068 00069 #endif 00070