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 program is free software; you can redistribute it and/or modify
00005     it under the terms of the GNU General Public License as published by
00006     the Free Software Foundation; either version 2 of the License, or
00007     (at your option) any later version.
00008 
00009     This program 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
00012     GNU General Public License for more details.
00013 
00014     You should have received a copy of the GNU General Public License
00015     along with this program; if not, write to the Free Software
00016     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 "csutil/scf.h"
00028 
00029 struct iString;
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