00001 #ifndef __CTrace__ 00002 #define __CTrace__ 00003 00004 // =========================================================================== 00005 00006 #include "../Basics/CSystemString.hpp" 00007 #include "../IO/CTextStream.hpp" 00008 using Exponent::IO::CTextStream; 00009 using Exponent::Basics::CSystemString; 00010 00011 // =========================================================================== 00012 00013 namespace Exponent 00014 { 00015 namespace Testing 00016 { 00036 class CTrace 00037 { 00038 public: 00039 00040 // =========================================================================== 00041 00047 static void trace(const char *text, ...); 00048 00054 static void trace(const CCountedObject &theObject, const CString &formatText); 00055 00056 // =========================================================================== 00057 00063 static bool openTraceFile(const CSystemString &filename); 00064 00068 static void closeTraceFile(); 00069 00070 // =========================================================================== 00071 00072 protected: 00073 00074 // =========================================================================== 00075 00076 static CTextStream CTRACE_STREAM; 00077 }; 00078 } 00079 } 00080 #endif // End of CTrace.hpp