zypp::exception_detail::CodeLocation Struct Reference

Keep _FILE_, _FUNCTION_ and _LINE_. More...

#include <Exception.h>

List of all members.

Public Member Functions

 CodeLocation ()
 Ctor.
 CodeLocation (const std::string &file_r, const std::string &func_r, unsigned line_r)
 Ctor.
std::string asString () const
 Location as string.

Private Attributes

std::string _file
std::string _func
unsigned _line

Friends

std::ostream & operator<< (std::ostream &str, const CodeLocation &obj)


Detailed Description

Keep _FILE_, _FUNCTION_ and _LINE_.

Construct it using the ZYPP_EX_CODELOCATION macro.

Definition at line 29 of file Exception.h.


Constructor & Destructor Documentation

zypp::exception_detail::CodeLocation::CodeLocation  )  [inline]
 

Ctor.

Definition at line 34 of file Exception.h.

zypp::exception_detail::CodeLocation::CodeLocation const std::string &  file_r,
const std::string &  func_r,
unsigned  line_r
[inline]
 

Ctor.

Definition at line 39 of file Exception.h.


Member Function Documentation

std::string zypp::exception_detail::CodeLocation::asString  )  const
 

Location as string.

Definition at line 29 of file Exception.cc.

References _file, _func, _line, and zypp::str::form().

Referenced by zypp::exception_detail::operator<<().


Friends And Related Function Documentation

std::ostream & operator<< std::ostream &  str,
const CodeLocation obj
[friend]
 

Stream output

Definition at line 37 of file Exception.cc.


Member Data Documentation

std::string zypp::exception_detail::CodeLocation::_file [private]
 

Definition at line 49 of file Exception.h.

Referenced by asString().

std::string zypp::exception_detail::CodeLocation::_func [private]
 

Definition at line 50 of file Exception.h.

Referenced by asString().

unsigned zypp::exception_detail::CodeLocation::_line [private]
 

Definition at line 51 of file Exception.h.

Referenced by asString().


The documentation for this struct was generated from the following files:
Generated on Thu Jul 6 00:07:32 2006 for zypp by  doxygen 1.4.6