CrystalSpace

Public API Reference

Main Page   Modules   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members   Related Pages  

iutil/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 "cstypes.h"
00027 #include "iutil/string.h"
00028 #include "csutil/scf.h"
00029 
00030 struct iGraphics3D;
00031 
00032 SCF_VERSION (iDebugHelper, 0, 0, 1);
00033 
00039 #define CS_DBGHELP_UNITTEST 1
00040 
00043 #define CS_DBGHELP_BENCHMARK 2
00044 
00047 #define CS_DBGHELP_TXTDUMP 4
00048 
00051 #define CS_DBGHELP_GFXDUMP 8
00052 
00055 #define CS_DBGHELP_STATETEST 16
00056 
00062 struct iDebugHelper : public iBase
00063 {
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.2.18