Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Compound List | File List | Namespace Members | Compound Members | File Members | Related Pages | Examples

P::SourceInfo Class Reference
[Core library]

Source code error location class. More...

#include <psourceinfo.h>

List of all members.

Public Member Functions

 SourceInfo () throw ()
 Default constructor.

 SourceInfo (const SourceInfo &si) throw ()
 Copy constructor.

 SourceInfo (const char *_file, unsigned int _line, const char *_func) throw ()
 Constructor.

const char * file () const throw ()
 Return the filename.

unsigned int line () const throw ()
 Returns the line number.

const char * func () const throw ()
 Returns the function signature.

SourceInfooperator= (const SourceInfo &si)
 Assign operator.


Detailed Description

Source code error location class.

This class is used by exception classes for storing information about the location in the source code where the error occured.

Author:
Christian Prochnow <cproch@seculogix.de>

Definition at line 55 of file psourceinfo.h.


Constructor & Destructor Documentation

P::SourceInfo::SourceInfo  )  throw ()
 

Default constructor.

P::SourceInfo::SourceInfo const SourceInfo si  )  throw ()
 

Copy constructor.

P::SourceInfo::SourceInfo const char *  _file,
unsigned int  _line,
const char *  _func
throw ()
 

Constructor.

Parameters:
_file pointer to the filename of the source
_line line number of the source
_func function name of the source


Member Function Documentation

const char* P::SourceInfo::file  )  const throw () [inline]
 

Return the filename.

Returns the name of the file where the exception has been thrown.

Returns:
name of the file where the exception was thrown

Definition at line 77 of file psourceinfo.h.

const char* P::SourceInfo::func  )  const throw () [inline]
 

Returns the function signature.

Returns the signature of the function where the exception has been thrown.

Returns:
the function signature

Definition at line 97 of file psourceinfo.h.

unsigned int P::SourceInfo::line  )  const throw () [inline]
 

Returns the line number.

Returns the line number of the file where the exception has been thrown.

Returns:
line number where the exception was thrown

Definition at line 87 of file psourceinfo.h.

SourceInfo& P::SourceInfo::operator= const SourceInfo si  ) 
 

Assign operator.


The documentation for this class was generated from the following file:
Generated on Fri Mar 12 21:08:36 2004 for P::Classes by doxygen 1.3.3