Drag[en]gine Game Engine  1.0
deErrorTraceValue Class Reference

Error Trace Value. More...

#include <deErrorTraceValue.h>

Public Member Functions

Constructors and Destructors
 deErrorTraceValue (const char *name, const char *value)
 
 ~deErrorTraceValue ()
 
Management
const char * GetName () const
 
const char * GetValue () const
 
void SetValue (const char *value)
 
void SetValueFrom (float value)
 
Trace SubValue Management
bool HasSubValues () const
 
int GetSubValueCount () const
 
deErrorTraceValueGetSubValue (int index) const
 
deErrorTraceValueFindSubValue (const char *name) const
 
void AddSubValue (deErrorTraceValue *value)
 
void RemoveAllSubValues ()
 
Convenience Functions
deErrorTraceValueAddSubValue (const char *name, const char *value)
 
deErrorTraceValueAddSubValueInt (const char *name, int value)
 
deErrorTraceValueAddSubValueFloat (const char *name, float)
 
deErrorTraceValueAddSubValueBool (const char *name, bool value)
 

Detailed Description

Error Trace Value.

Error Trace Value objects contain additional informations about the values in use by the failing function.

Author
Pl├╝ss Roland
Version
1.0
Date
2008

Constructor & Destructor Documentation

◆ deErrorTraceValue()

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

Creates a new error trace value object with the given name and value.

◆ ~deErrorTraceValue()

deErrorTraceValue::~deErrorTraceValue ( )

Cleans up the error trace object.

Member Function Documentation

◆ AddSubValue() [1/2]

void deErrorTraceValue::AddSubValue ( deErrorTraceValue value)

Adds a new trace value.

Referenced by GetSubValueCount().

◆ AddSubValue() [2/2]

deErrorTraceValue* deErrorTraceValue::AddSubValue ( const char *  name,
const char *  value 
)

Adds a new trace value with the given informations.

◆ AddSubValueBool()

deErrorTraceValue* deErrorTraceValue::AddSubValueBool ( const char *  name,
bool  value 
)

Adds a new trace value with the given informations.

Referenced by GetSubValueCount().

◆ AddSubValueFloat()

deErrorTraceValue* deErrorTraceValue::AddSubValueFloat ( const char *  name,
float   
)

Adds a new trace value with the given informations.

Referenced by GetSubValueCount().

◆ AddSubValueInt()

deErrorTraceValue* deErrorTraceValue::AddSubValueInt ( const char *  name,
int  value 
)

Adds a new trace value with the given informations.

Referenced by GetSubValueCount().

◆ FindSubValue()

deErrorTraceValue* deErrorTraceValue::FindSubValue ( const char *  name) const

Retrieves the named trace value or NULL if not found.

Referenced by GetSubValueCount().

◆ GetName()

const char* deErrorTraceValue::GetName ( ) const
inline

Retrieves the name of the value.

◆ GetSubValue()

deErrorTraceValue* deErrorTraceValue::GetSubValue ( int  index) const

Retrieves the indexed trace value.

Referenced by GetSubValueCount().

◆ GetSubValueCount()

int deErrorTraceValue::GetSubValueCount ( ) const
inline

◆ GetValue()

const char* deErrorTraceValue::GetValue ( ) const
inline

Retrieves the value.

References SetValue(), and SetValueFrom().

◆ HasSubValues()

bool deErrorTraceValue::HasSubValues ( ) const
inline

Determines if there exist trace values.

◆ RemoveAllSubValues()

void deErrorTraceValue::RemoveAllSubValues ( )

Removes all trace values.

Referenced by GetSubValueCount().

◆ SetValue()

void deErrorTraceValue::SetValue ( const char *  value)

Sets the value.

Referenced by GetValue().

◆ SetValueFrom()

void deErrorTraceValue::SetValueFrom ( float  value)

Sets the value from a numeric value.

Referenced by GetValue().


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