Public Member Functions
ErrorLocation Class Reference

Error location class. More...

#include <error.hpp>

List of all members.

Public Member Functions

 ErrorLocation ()
 Default constructor for error location.
 ErrorLocation (const char *file, int line, const char *func)
 Constructor for setting error location.
std::string file (void)
 Return file name of location.
int line (void)
 Return line number of location.
std::string func (void)
 Return function name of location.

Detailed Description

Error location class.

Container to store the location (source file name, line number and function name) where the error happened. Used for debugging purposes. Macro ERROR_LOCATION is defined for convenient use of class.


Constructor & Destructor Documentation

Default constructor for error location.

Stores a null location.

ErrorLocation::ErrorLocation ( const char *  file,
int  line,
const char *  func 
)

Constructor for setting error location.

This constructor is conveniently called with ERROR_LOCATION macro.


Member Function Documentation

std::string ErrorLocation::file ( void  )

Return file name of location.

std::string ErrorLocation::func ( void  )

Return function name of location.

int ErrorLocation::line ( void  )

Return line number of location.


The documentation for this class was generated from the following file: