#include <exception.hpp>
Public Member Functions | |
source_info (char const *file, unsigned int line, char const *func) | |
It is expected that this function be passed __FILE__, __LINE__, and S11N_CURRENT_FUNCTION. | |
~source_info () | |
unsigned int | line () const throw () |
Returns the line number passed to the ctor. | |
char const * | file () const throw () |
Returns the file name passed to the ctor. | |
char const * | func () const throw () |
Returns the function name passed to the ctor. | |
source_info & | operator= (source_info const &rhs) |
Copies rhs. | |
source_info (source_info const &rhs) | |
Copies rhs. |
This class is normally not instantiated directly, but is instead created using the S11N_SOURCEINFO macro.
Added in version 1.3.0.
Definition at line 48 of file exception.hpp.
s11n::source_info::source_info | ( | char const * | file, | |
unsigned int | line, | |||
char const * | func | |||
) |
It is expected that this function be passed __FILE__, __LINE__, and S11N_CURRENT_FUNCTION.
If file or func are null then "<unknown>" (or something similar) is used.
s11n::source_info::~source_info | ( | ) |
s11n::source_info::source_info | ( | source_info const & | rhs | ) |
Copies rhs.
unsigned int s11n::source_info::line | ( | ) | const throw () |
Returns the line number passed to the ctor.
char const* s11n::source_info::file | ( | ) | const throw () |
Returns the file name passed to the ctor.
char const* s11n::source_info::func | ( | ) | const throw () |
Returns the function name passed to the ctor.
source_info& s11n::source_info::operator= | ( | source_info const & | rhs | ) |
Copies rhs.