Navigation

Main Page
Download
Support
Installation
Tutorial
Examples
Reference Manual
   Version 1.0.5new_solver
   Version 1.0.5dev
      Class Index
      File List
   Version 1.0.5b
   Version 1.0.4dev
   Version 1.0.4
Publications


Hosted by Get Ion Beam Simulator at SourceForge.net. Fast, secure and Free Open Source software downloads

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

ErrorLocation::ErrorLocation (  ) 

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:


Reference manual for Ion Beam Simulator 1.0.5dev
Generated by Doxygen 1.7.1 on Mon Feb 6 2012 15:07:16.