00001 ////////////////////////////////////////////////////////////////////// 00002 // Copyright (c) 2001-2002 David Pritchard <drpritch@alumni.uwaterloo.ca> 00003 // 00004 // This program is free software; you can redistribute it and/or 00005 // modify it under the terms of the GNU Lesser General Public License 00006 // as published by the Free Software Foundation; either 00007 // version 2 of the License, or (at your option) any later 00008 // version. 00009 // 00010 // This program is distributed in the hope that it will be useful, 00011 // but WITHOUT ANY WARRANTY; without even the implied warranty of 00012 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00013 // GNU Lesser General Public License for more details. 00014 // 00015 // You should have received a copy of the GNU Lesser General Public License 00016 // along with this program; if not, write to the Free Software 00017 // Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. 00018 00019 #ifndef freecloth_base_baTraceEntry_h 00020 #define freecloth_base_baTraceEntry_h 00021 00022 #ifndef freecloth_base_package_h 00023 #include <freecloth/base/package.h> 00024 #endif 00025 00026 #ifndef freecloth_base_types_h 00027 #include <freecloth/base/types.h> 00028 #endif 00029 00030 FREECLOTH_NAMESPACE_START 00031 00032 //////////////////////////////////////////////////////////////////////////////// 00033 /*! 00034 * \internal 00035 * \class BaTraceEntry freecloth/base/baTraceEntry.h 00036 * \brief Utility class used by DGFX_TRACE_ENTER macro. 00037 * 00038 * On construction, increases the trace indent level, and on destruction 00039 * decreases it. 00040 */ 00041 class BaTraceEntry { 00042 00043 public: 00044 // ----- member functions ----- 00045 BaTraceEntry(); 00046 ~BaTraceEntry(); 00047 00048 std::ostream& getStream(); 00049 void doneOutput(); 00050 00051 private: 00052 00053 // ----- data members ----- 00054 00055 }; 00056 00057 FREECLOTH_NAMESPACE_END 00058 #endif