Main Page | Namespace List | Class Hierarchy | Alphabetical List | Data Structures | File List | Namespace Members | Data Fields | Globals

Tracer Class Reference

#include <myexcept.h>

Collaboration diagram for Tracer:

Collaboration graph
[legend]

Public Member Functions

 Tracer (char *)
 ~Tracer ()
void ReName (char *)

Static Public Member Functions

void PrintTrace ()
void AddTrace ()

Static Public Attributes

Tracerlast

Private Attributes

char * entry
Tracerprevious

Friends

class Exception

Constructor & Destructor Documentation

Tracer::Tracer char *   )  [inline]
 

Definition at line 86 of file myexcept.h.

References last.

00087    : entry(e), previous(last) { last = this; }

Tracer::~Tracer  )  [inline]
 

Definition at line 89 of file myexcept.h.

References last, and previous.

00089 { last = previous; }


Member Function Documentation

void Tracer::AddTrace  )  [static]
 

Definition at line 110 of file myexcept.cpp.

References Exception::AddMessage(), entry, last, and previous.

Referenced by Bad_alloc::Bad_alloc(), Bad_cast::Bad_cast(), Bad_typeid::Bad_typeid(), Domain_error::Domain_error(), Exception::Exception(), Invalid_argument::Invalid_argument(), Length_error::Length_error(), Logic_error::Logic_error(), Out_of_range::Out_of_range(), Overflow_error::Overflow_error(), Range_error::Range_error(), and Runtime_error::Runtime_error().

00111 {
00112    if (last)
00113    {
00114       Exception::AddMessage("Trace: ");
00115       Exception::AddMessage(last->entry);
00116       for (Tracer* et = last->previous; et; et=et->previous)
00117       {
00118          Exception::AddMessage("; ");
00119          Exception::AddMessage(et->entry);
00120       }
00121       Exception::AddMessage(".\n");
00122    }
00123 }

void Tracer::PrintTrace  )  [static]
 

Definition at line 101 of file myexcept.cpp.

00102 {
00103 /*
00104    cout << "\n";
00105    for (Tracer* et = last; et; et=et->previous)
00106       cout << "  * " << et->entry << "\n";
00107 */
00108 }

void Tracer::ReName char *   )  [inline]
 

Definition at line 91 of file myexcept.h.

References entry.

00091 { entry=e; }


Friends And Related Function Documentation

friend class Exception [friend]
 

Definition at line 65 of file myexcept.h.


Field Documentation

char* Tracer::entry [private]
 

Definition at line 56 of file myexcept.h.

Referenced by AddTrace(), and ReName().

Tracer * Tracer::last [static]
 

Definition at line 217 of file myexcept.cpp.

Referenced by AddTrace(), Tracer(), and ~Tracer().

Tracer* Tracer::previous [private]
 

Definition at line 57 of file myexcept.h.

Referenced by AddTrace(), and ~Tracer().


The documentation for this class was generated from the following files:
Generated on Fri Dec 5 04:06:39 2003 for Borqueror by doxygen 1.3.3