OSSIM - Open Source Software Image Map  Version 1.9.0 (20180803)
Public Member Functions | Static Public Member Functions | Static Public Attributes | Private Attributes | Friends | List of all members
Tracer Class Reference

#include <myexcept.h>

Public Member Functions

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

Static Public Member Functions

static void PrintTrace ()
 
static void AddTrace ()
 

Static Public Attributes

static Tracerlast
 

Private Attributes

const char * entry
 
Tracerprevious
 

Friends

class BaseException
 

Detailed Description

Definition at line 54 of file myexcept.h.

Constructor & Destructor Documentation

◆ Tracer()

Tracer::Tracer ( const char *  e)
inline

Definition at line 89 of file myexcept.h.

References last.

90  : entry(e), previous(last) { last = this; }
Tracer * previous
Definition: myexcept.h:57
static Tracer * last
Definition: myexcept.h:64
const char * entry
Definition: myexcept.h:56

◆ ~Tracer()

Tracer::~Tracer ( )
inline

Definition at line 92 of file myexcept.h.

References last, and previous.

92 { last = previous; }
Tracer * previous
Definition: myexcept.h:57
static Tracer * last
Definition: myexcept.h:64

Member Function Documentation

◆ AddTrace()

void Tracer::AddTrace ( )
static

Definition at line 110 of file myexcept.cpp.

References BaseException::AddMessage(), and previous.

Referenced by Bad_alloc::Bad_alloc(), BaseException::BaseException(), CannotBuildException::CannotBuildException(), ConvergenceException::ConvergenceException(), Domain_error::Domain_error(), IncompatibleDimensionsException::IncompatibleDimensionsException(), InternalException::InternalException(), Invalid_argument::Invalid_argument(), Length_error::Length_error(), Logic_error::Logic_error(), NotDefinedException::NotDefinedException(), NotSquareException::NotSquareException(), Out_of_range::Out_of_range(), Overflow_error::Overflow_error(), OverflowException::OverflowException(), ProgramException::ProgramException(), Range_error::Range_error(), Runtime_error::Runtime_error(), SolutionException::SolutionException(), SubMatrixDimensionException::SubMatrixDimensionException(), and VectorException::VectorException().

111 {
112  if (last)
113  {
114  BaseException::AddMessage("Trace: ");
116  for (Tracer* et = last->previous; et; et=et->previous)
117  {
119  BaseException::AddMessage(et->entry);
120  }
122  }
123 }
Tracer * previous
Definition: myexcept.h:57
static void AddMessage(const char *a_what)
Definition: myexcept.cpp:67
static Tracer * last
Definition: myexcept.h:64
const char * entry
Definition: myexcept.h:56

◆ PrintTrace()

void Tracer::PrintTrace ( )
static

Definition at line 103 of file myexcept.cpp.

References previous.

104 {
105  std::cout << "\n";
106  for (Tracer* et = last; et; et=et->previous)
107  std::cout << " * " << et->entry << "\n";
108 }
Tracer * previous
Definition: myexcept.h:57
static Tracer * last
Definition: myexcept.h:64

◆ ReName()

void Tracer::ReName ( const char *  e)
inline

Definition at line 94 of file myexcept.h.

References entry.

Referenced by FindMaximum2::Fit().

94 { entry=e; }
const char * entry
Definition: myexcept.h:56

Friends And Related Function Documentation

◆ BaseException

friend class BaseException
friend

Definition at line 65 of file myexcept.h.

Member Data Documentation

◆ entry

const char* Tracer::entry
private

Definition at line 56 of file myexcept.h.

Referenced by ReName().

◆ last

Tracer * Tracer::last
static

Definition at line 64 of file myexcept.h.

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

◆ previous

Tracer* Tracer::previous
private

Definition at line 57 of file myexcept.h.

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


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