Navigation

Main Page
Download
Support
Installation
Tutorial
Examples
Reference Manual
   Version 1.0.6
      Class Index
      File List
   Version 1.0.5new_solver
   Version 1.0.5dev
   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>

Public Member Functions

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

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 files:


Reference manual for Ion Beam Simulator 1.0.6
Generated by Doxygen 1.8.5 on Mon Jun 15 2015 09:59:32.