libyui
|
#include <YUIException.h>
Public Member Functions | |
YCodeLocation (const string &file_r, const string &func_r, int line_r) | |
YCodeLocation () | |
string | file () const |
string | func () const |
int | line () const |
string | asString () const |
Friends | |
ostream & | operator<< (ostream &str, const YCodeLocation &obj) |
Helper class for UI exceptions: Store _FILE_, _FUNCTION_ and _LINE_. Construct this using the YUI_EXCEPTION_CODE_LOCATION macro.
YCodeLocation::YCodeLocation | ( | const string & | file_r, |
const string & | func_r, | ||
int | line_r | ||
) | [inline] |
Constructor. Commonly called using the YUI_EXCEPTION_CODE_LOCATION macro.
YCodeLocation::YCodeLocation | ( | ) | [inline] |
Default constructor.
string YCodeLocation::asString | ( | ) | const |
Returns the location in normalized string format.
string YCodeLocation::file | ( | ) | const [inline] |
Returns the source file name where the exception occured.
string YCodeLocation::func | ( | ) | const [inline] |
Returns the name of the function where the exception occured.
int YCodeLocation::line | ( | ) | const [inline] |
Returns the source line number where the exception occured.
ostream& operator<< | ( | ostream & | str, |
const YCodeLocation & | obj | ||
) | [friend] |
Stream output
YCodeLocation stream output