CrystalSpace

Public API Reference

Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

dbghelp.h

Go to the documentation of this file.
00001 /*
00002     Copyright (C) 2002 by Jorrit Tyberghein
00003 
00004     This library is free software; you can redistribute it and/or
00005     modify it under the terms of the GNU Library General Public
00006     License as published by the Free Software Foundation; either
00007     version 2 of the License, or (at your option) any later version.
00008     
00009     This library is distributed in the hope that it will be useful,
00010     but WITHOUT ANY WARRANTY; without even the implied warranty of
00011     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00012     Library General Public License for more details.
00013     
00014     You should have received a copy of the GNU Library General Public
00015     License along with this library; if not, write to the Free
00016     Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
00017 */
00018 
00019 #ifndef __CS_IUTIL_DBGHELP_H__
00020 #define __CS_IUTIL_DBGHELP_H__
00021 
00026 #include "csutil/scf_interface.h"
00027 #include "csutil/ref.h"
00028 
00029 struct iGraphics3D;
00030 struct iString;
00031 
00032 
00038 #define CS_DBGHELP_UNITTEST 1
00039 
00042 #define CS_DBGHELP_BENCHMARK 2
00043 
00046 #define CS_DBGHELP_TXTDUMP 4
00047 
00050 #define CS_DBGHELP_GFXDUMP 8
00051 
00054 #define CS_DBGHELP_STATETEST 16
00055 
00061 struct iDebugHelper : public virtual iBase
00062 {
00063   SCF_INTERFACE(iDebugHelper,2,0,0);
00076   virtual int GetSupportedTests () const = 0;
00077 
00084   virtual csPtr<iString> UnitTest () = 0;
00085 
00092   virtual csPtr<iString> StateTest () = 0;
00093 
00098   virtual csTicks Benchmark (int num_iterations) = 0;
00099 
00104   virtual csPtr<iString> Dump () = 0;
00105 
00109   virtual void Dump (iGraphics3D* g3d) = 0;
00110 
00115   virtual bool DebugCommand (const char* cmd) = 0;
00116 };
00119 #endif // __CS_IUTIL_DBGHELP_H__
00120 

Generated for Crystal Space by doxygen 1.4.4