s11n::source_info Struct Reference

source_info simplifies the collection of source file information for purposes of wrapping the info into exception strings. More...

#include <exception.hpp>

List of all members.

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_infooperator= (source_info const &rhs)
 Copies rhs.
 source_info (source_info const &rhs)
 Copies rhs.


Detailed Description

source_info simplifies the collection of source file information for purposes of wrapping the info into exception strings.

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 49 of file exception.hpp.


Constructor & Destructor Documentation

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.


Member Function Documentation

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.


The documentation for this struct was generated from the following file:
Generated on Wed Jun 4 21:44:20 2008 for libs11n by  doxygen 1.5.3