libyui
Public Member Functions | Friends

YCodeLocation Class Reference

#include <YUIException.h>

List of all members.

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)

Detailed Description

Helper class for UI exceptions: Store _FILE_, _FUNCTION_ and _LINE_. Construct this using the YUI_EXCEPTION_CODE_LOCATION macro.


Constructor & Destructor Documentation

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.


Member Function Documentation

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.


Friends And Related Function Documentation

ostream& operator<< ( ostream &  str,
const YCodeLocation obj 
) [friend]

Stream output

YCodeLocation stream output


The documentation for this class was generated from the following files:
 All Classes Functions Variables Enumerations Friends