User Manual, Developers Guide and API Documentation

wns::Backtrace::FunctionCall Class Reference

Keeps the information an element of the backtrace (for one function call). More...

#include <Backtrace.hpp>

Collaboration diagram for wns::Backtrace::FunctionCall:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 FunctionCall (std::string line)
 Takes a line as provided from char ** backtrace_symbols (void *const *buffer, int size) of execinfo.h.
std::string getName () const
 The name of the function called in this frame.
std::string getOffset () const
 Offset into the function.
std::string getOrigin () const
 Origing of the function (library or whatever).
std::string getReturnAddress () const
 Return address of the function.

Private Attributes

std::string name_
std::string offset_
std::string origin_
std::string returnAddress_


Detailed Description

Author:
Marc Schinnenburg <marc@schinnenburg.com>
Note:
If the line of a backtrace cannot be parsed completely, the elements which were not found return "unknown" as string.

Definition at line 57 of file Backtrace.hpp.


Constructor & Destructor Documentation

Backtrace::FunctionCall::FunctionCall ( std::string  line  )  [explicit]

Definition at line 129 of file Backtrace.cpp.


Member Function Documentation

std::string Backtrace::FunctionCall::getName (  )  const

Definition at line 175 of file Backtrace.cpp.

std::string Backtrace::FunctionCall::getOffset (  )  const

Definition at line 181 of file Backtrace.cpp.

std::string Backtrace::FunctionCall::getOrigin (  )  const

Definition at line 169 of file Backtrace.cpp.

std::string Backtrace::FunctionCall::getReturnAddress (  )  const

Definition at line 187 of file Backtrace.cpp.


Member Data Documentation

std::string wns::Backtrace::FunctionCall::name_ [private]

Definition at line 94 of file Backtrace.hpp.

Definition at line 95 of file Backtrace.hpp.

Definition at line 93 of file Backtrace.hpp.

Definition at line 96 of file Backtrace.hpp.


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

Generated on Sat May 26 03:32:50 2012 for openWNS by  doxygen 1.5.5