Drag[en]gine Game Engine  1.0
deErrorTracePoint Class Reference

Error Trace Point. More...

#include <deErrorTracePoint.h>

Public Member Functions

Constructors and Destructors
 deErrorTracePoint (const char *sourceFunc, int sourceLine)
 
 deErrorTracePoint (deLoadableModule *module, const char *sourceFunc, int sourceLine)
 
 ~deErrorTracePoint ()
 
Management
deLoadableModuleGetSourceModule () const
 
const char * GetSourceFunction () const
 
int GetSourceLine () const
 
Trace Value Management
bool HasValues () const
 
int GetValueCount () const
 
deErrorTraceValueGetValue (int index) const
 
deErrorTraceValueFindValue (const char *name) const
 
void AddValue (deErrorTraceValue *value)
 
void RemoveAllValues ()
 
Convenience Functions
deErrorTraceValueAddValue (const char *name, const char *value)
 
deErrorTraceValueAddValueInt (const char *name, int value)
 
deErrorTraceValueAddValueFloat (const char *name, float)
 
deErrorTraceValueAddValueBool (const char *name, bool value)
 

Detailed Description

Error Trace Point.

An Error Trace object contains a list of Error Trace Point objects. describing the path of an error that occured in the engine.

Author
Pl├╝ss Roland
Version
1.0
Date
2008

Constructor & Destructor Documentation

◆ deErrorTracePoint() [1/2]

deErrorTracePoint::deErrorTracePoint ( const char *  sourceFunc,
int  sourceLine 
)

Creates a new error trace point object.

◆ deErrorTracePoint() [2/2]

deErrorTracePoint::deErrorTracePoint ( deLoadableModule module,
const char *  sourceFunc,
int  sourceLine 
)

Creates a new error trace point object.

◆ ~deErrorTracePoint()

deErrorTracePoint::~deErrorTracePoint ( )

Cleans up the error trace object.

Member Function Documentation

◆ AddValue() [1/2]

void deErrorTracePoint::AddValue ( deErrorTraceValue value)

Adds a new trace value.

Referenced by GetValueCount().

◆ AddValue() [2/2]

deErrorTraceValue* deErrorTracePoint::AddValue ( const char *  name,
const char *  value 
)

Adds a new trace value with the given informations.

◆ AddValueBool()

deErrorTraceValue* deErrorTracePoint::AddValueBool ( const char *  name,
bool  value 
)

Adds a new trace value with the given informations.

Referenced by GetValueCount().

◆ AddValueFloat()

deErrorTraceValue* deErrorTracePoint::AddValueFloat ( const char *  name,
float   
)

Adds a new trace value with the given informations.

Referenced by GetValueCount().

◆ AddValueInt()

deErrorTraceValue* deErrorTracePoint::AddValueInt ( const char *  name,
int  value 
)

Adds a new trace value with the given informations.

Referenced by GetValueCount().

◆ FindValue()

deErrorTraceValue* deErrorTracePoint::FindValue ( const char *  name) const

Retrieves the named trace value or NULL if not found.

Referenced by GetValueCount().

◆ GetSourceFunction()

const char* deErrorTracePoint::GetSourceFunction ( ) const
inline

Retrieves the source function.

◆ GetSourceLine()

int deErrorTracePoint::GetSourceLine ( ) const
inline

Retrieves the source line.

◆ GetSourceModule()

deLoadableModule* deErrorTracePoint::GetSourceModule ( ) const
inline

Retrieves the source module or NULL if the error occured in the engine itself.

◆ GetValue()

deErrorTraceValue* deErrorTracePoint::GetValue ( int  index) const

Retrieves the indexed trace value.

Referenced by GetValueCount().

◆ GetValueCount()

int deErrorTracePoint::GetValueCount ( ) const
inline

Retrieves the count of trace values.

References AddValue(), AddValueBool(), AddValueFloat(), AddValueInt(), FindValue(), GetValue(), and RemoveAllValues().

◆ HasValues()

bool deErrorTracePoint::HasValues ( ) const
inline

Determines if there exist trace values.

◆ RemoveAllValues()

void deErrorTracePoint::RemoveAllValues ( )

Removes all trace values.

Referenced by GetValueCount().


The documentation for this class was generated from the following file: