__FILE__, __(PRETTY_)FUNCTION__, __LINE__. Use SOURCECODELOCATION macro to create.
More...
#include <SourceCodeLocation.h>
Public Member Functions | |
| SourceCodeLocation () | |
| SourceCodeLocation (const std::string &file_r, const std::string &func_r, const std::string &pretty_func_r, unsigned line_r) | |
| operator const void *const () const | |
| const std::string & | file () const |
| const std::string & | func () const |
| const std::string & | pretty_func () const |
| unsigned | line () const |
Private Attributes | |
| std::string | _file |
| std::string | _func |
| std::string | _pretty_func |
| unsigned | _line |
Static Private Attributes | |
| static const unsigned | _unknown |
Friends | |
| SourceCodeLocation::_Verbose | verbose (const SourceCodeLocation &obj_r) |
| std::ostream & | operator<< (std::ostream &str, const SourceCodeLocation &obj_r) |
| std::ostream & | operator<< (std::ostream &str, const SourceCodeLocation::_Verbose &obj_r) |
Classes | |
| struct | _Verbose |
__FILE__, __(PRETTY_)FUNCTION__, __LINE__. Use SOURCECODELOCATION macro to create. | SourceCodeLocation::SourceCodeLocation | ( | ) | [inline] |
Default ctor: unknown location.
| SourceCodeLocation::SourceCodeLocation | ( | const std::string & | file_r, | |
| const std::string & | func_r, | |||
| const std::string & | pretty_func_r, | |||
| unsigned | line_r | |||
| ) | [inline] |
Ctor, use SOURCECODELOCATION macro for convenient creation.
| SourceCodeLocation::operator const void *const | ( | ) | const [inline] |
| const std::string& SourceCodeLocation::file | ( | ) | const [inline] |
| const std::string& SourceCodeLocation::func | ( | ) | const [inline] |
| const std::string& SourceCodeLocation::pretty_func | ( | ) | const [inline] |
| unsigned SourceCodeLocation::line | ( | ) | const [inline] |
| SourceCodeLocation::_Verbose verbose | ( | const SourceCodeLocation & | obj_r | ) | [friend] |
Helper wrapping SourceCodeLocation into a SourceCodeLocation::_Verbose for stream output.
| std::ostream& operator<< | ( | std::ostream & | str, | |
| const SourceCodeLocation & | obj_r | |||
| ) | [friend] |
Stream output as "__FILE__(__FUNCTION__):__LINE__"
| std::ostream& operator<< | ( | std::ostream & | str, | |
| const SourceCodeLocation::_Verbose & | obj_r | |||
| ) | [friend] |
Stream output as "__FILE__(__PRETTY_FUNCTION__):__LINE__" via verbose(SOURCECODELOCATION)
const unsigned SourceCodeLocation::_unknown [static, private] |
std::string SourceCodeLocation::_file [private] |
std::string SourceCodeLocation::_func [private] |
std::string SourceCodeLocation::_pretty_func [private] |
unsigned SourceCodeLocation::_line [private] |
1.5.3