KeosException.h File Reference

#include "KeosPrerequisites.h"

Go to the source code of this file.

Namespaces

namespace  Keos

Classes

class  Keos::CException
 Base class for the exceptions. More...
struct  Keos::CAssertException
 Exception thrown if a condition is not verified. More...
struct  Keos::CBadDelete
 Exception thrown during a problem of allowance memory. More...
struct  Keos::CLoadingFailed
 Exception thrown during error of files loading. More...
struct  Keos::CDynLibError
 Exception thrown during error of dynamic libraries loading. More...
struct  Keos::COutOfMemory
 Exception thrown during out of memory. More...
struct  Keos::CUnsupported
 Exception thrown during the use of an unsupported feature. More...
struct  Keos::CBadConversion
 Exception thrown during a conversion error. More...

Defines

#define BADDELETE_EXCEPT(p, f, l, a)   {Keos::CBadDelete except((p), (f), (l), (a)); LOG_TMP}
#define LOADINGFAILED_EXCEPT(f, m, s)   {Keos::CLoadingFailed except((f), (m), (s)); LOG_TMP}
#define DYNLIB_EXCEPT(f, m, s)   {Keos::CDynLibError except((f), (m), (s)); LOG_TMP}
#define OUTOFMEMORY_EXCEPT(m, s)   {Keos::COutOfMemory except((m), (s)); LOG_TMP}
#define UNSUPPORTED_EXCEPT(m, s)   {Keos::CUnsupported except((m), (s)); LOG_TMP}
#define BADCONVERSION_EXCEPT(m, s)   {Keos::CBadConversion except((m), (s)); LOG_TMP}
#define LOG_TMP   except.SetFileLine(__FILE__, __LINE__); Keos::ILogger::Log("%s",except.what_short()); throw except;
#define Assert(condition)   DoNothing(!(condition))

Functions

void Keos::DoNothing (bool)


Define Documentation

#define Assert ( condition   )     DoNothing(!(condition))

Definition at line 107 of file KeosException.h.

Referenced by Keos::CResourceManager::Add(), Keos::CMeshGeom::AssignMaterialColor(), Keos::CConsole::ChangeLook(), Keos::CMeshGeom::CMeshGeom(), Keos::CMesh::CreateSharedVertexBuffer(), Keos::CBuffer< T >::Fill(), Keos::CMaterial::GetTexture(), Keos::CRoot::Initialise(), Keos::ILogger::Log(), Keos::CSmartPtr< T, Ownership >::operator *(), Keos::CSmartPtr< T, Ownership >::operator->(), Keos::CAnimatedMeshKF::SetAnimation(), Keos::CRoot::StartRendering(), Keos::CImage::SubImage(), and Keos::IRenderSystem::UpdateAllRenderTargets().

#define BADCONVERSION_EXCEPT ( m,
s   )     {Keos::CBadConversion except((m), (s)); LOG_TMP}

Definition at line 32 of file KeosException.h.

#define BADDELETE_EXCEPT ( p,
f,
l,
 )     {Keos::CBadDelete except((p), (f), (l), (a)); LOG_TMP}

Definition at line 27 of file KeosException.h.

#define DYNLIB_EXCEPT ( f,
m,
s   )     {Keos::CDynLibError except((f), (m), (s)); LOG_TMP}

Definition at line 29 of file KeosException.h.

Referenced by Keos::CDynLib::Load(), Keos::CRoot::LoadPlugin(), and Keos::CDynLib::Unload().

#define LOADINGFAILED_EXCEPT ( f,
m,
s   )     {Keos::CLoadingFailed except((f), (m), (s)); LOG_TMP}

Definition at line 28 of file KeosException.h.

Referenced by Keos::CLoggerFile::CLoggerFile(), Keos::CFontManager::DrawString(), Keos::CMediaManager::FindMedia(), Keos::CFontManager::GetFontHeight(), Keos::CFontManager::GetStringPixelSize(), Keos::CFontManager::LoadFont(), Keos::CShadersLoader::LoadFromFile(), Keos::CMDLQ1Loader::LoadFromFile(), Keos::CMDLQ1AnimatedLoader::LoadFromFile(), Keos::CMD2Loader::LoadFromFile(), Keos::CMD2AnimatedLoader::LoadFromFile(), Keos::ILoader< Keos::IShaderBase >::LoadFromFile(), Keos::CImagesLoader::LoadFromFile(), Keos::C3DSLoader::LoadFromFile(), Keos::ILoader< Keos::IShaderBase >::SaveToFile(), and Keos::CImagesLoader::SaveToFile().

#define LOG_TMP   except.SetFileLine(__FILE__, __LINE__); Keos::ILogger::Log("%s",except.what_short()); throw except;

Definition at line 34 of file KeosException.h.

#define OUTOFMEMORY_EXCEPT ( m,
s   )     {Keos::COutOfMemory except((m), (s)); LOG_TMP}

Definition at line 30 of file KeosException.h.

#define UNSUPPORTED_EXCEPT ( m,
s   )     {Keos::CUnsupported except((m), (s)); LOG_TMP}

Definition at line 31 of file KeosException.h.

Referenced by Keos::ConvertPixel().


Generated on Fri Mar 9 14:29:04 2007 for Keos by  doxygen 1.5.1-p1