Eneboo - Documentación para desarrolladores
|
The QSStackFrame class provides information about a function call in the stack trace. Más...
#include <qsinterpreter.h>
Métodos públicos | |
QSStackFrame (const QString &fun=QString::null, const QString &file=QString::null, int line=0, QObject *con=0) | |
QString | scriptName () const |
QString | function () const |
int | line () const |
QObject * | context () const |
The QSStackFrame class provides information about a function call in the stack trace.
A QSStackFrame object only makes sense when grouped together in a QSStackTrace to provide a trace of the execution up to where an error occurred.
The QSStackFrame contains four values: file name, line number, function name, and context.
QSStackFrame::QSStackFrame | ( | const QString & | fun = QString::null , |
const QString & | file = QString::null , |
||
int | line = 0 , |
||
QObject * | con = 0 |
||
) | [inline] |
QObject * QSStackFrame::context | ( | ) | const [inline] |
Returns the context of the function if it was evaluated in the context of a QObject; otherwise returns 0.
QString QSStackFrame::function | ( | ) | const [inline] |
Returns the name of the function that this stack frame describes.
int QSStackFrame::line | ( | ) | const [inline] |
Returns the line number within the script.
QString QSStackFrame::scriptName | ( | ) | const [inline] |
Returns the name of the script in which the function is located if the script name was specified when the function was evaluated; otherwise returns QString::null.