Copyright (C) 2006 Smithsonian Astrophysical Observatory
This file is part of tracefctxx
tracefctxx is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
tracefctxx is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc. 51 Franklin Street, Fifth Floor Boston, MA 02110-1301, USA
TraceFct is a class which helps a program keep track of its calling sequence, allowing one to produce a "stack" dump upon error. It also provides a uniform mechanism for printing messages and errors, and provides assert()
style macros which use these features.
TraceFct prefixes messages and errors with a string which uniquely identifies the process (useful for debugging when running multiple processes concurrently). It support switching the output stream for messages.