Crystal Space: iutil/dbghelp.h Source File (Crystal Space Public API Reference)

| ## Public API Reference

- Main Page
- Modules
- Namespaces
- Classes
- Files
- Related Pages

- File List
- File Members

# 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
    00027 #include "csutil/scf_interface.h"
    00028 #include "csutil/ref.h"
    00029 #include "iutil/string.h"
    00030
    00031 struct iGraphics3D;
    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);
    00074   virtual int GetSupportedTests () const = 0;
    00075
    00082   virtual csPtr<iString> UnitTest () = 0;
    00083
    00090   virtual csPtr<iString> StateTest () = 0;
    00091
    00096   virtual csTicks Benchmark (int num_iterations) = 0;
    00097
    00102   virtual csPtr<iString> Dump () = 0;
    00103
    00107   virtual void Dump (iGraphics3D* g3d) = 0;
    00108
    00113   virtual bool DebugCommand (const char* cmd) = 0;
    00114 };
    00117 #endif // __CS_IUTIL_DBGHELP_H__
    00118