COOLFluiD  Release kernel
COOLFluiD is a Collaborative Simulation Environment (CSE) focused on complex MultiPhysics simulations.
Public Member Functions | Private Attributes | List of all members
CodeLocation Class Reference

#include <CodeLocation.hpp>

Public Member Functions

 CodeLocation (const char *file, int line, const char *function)
 constructor of the code location More...
 
std::string str () const
 
std::string short_str () const
 

Private Attributes

const char * m_file
 from which file the exception was thrown More...
 
const char * m_function
 
int m_line
 from which line the exception was thrown More...
 

Detailed Description

This class stores the information about a location in the source code

Author
Tiago Quintino

Definition at line 21 of file CodeLocation.hpp.

Constructor & Destructor Documentation

CodeLocation ( const char *  file,
int  line,
const char *  function 
)
explicit

constructor of the code location

Definition at line 24 of file CodeLocation.cpp.

Member Function Documentation

std::string short_str ( ) const

Definition at line 48 of file CodeLocation.cpp.

std::string str ( ) const
Returns
a string where the location is

Definition at line 31 of file CodeLocation.cpp.

Member Data Documentation

const char* m_file
private

from which file the exception was thrown

Definition at line 34 of file CodeLocation.hpp.

const char* m_function
private

from which function the exception was thrown

Note
will be empty if the compiler does not support it

Definition at line 37 of file CodeLocation.hpp.

int m_line
private

from which line the exception was thrown

Definition at line 39 of file CodeLocation.hpp.


The documentation for this class was generated from the following files:
Send comments to:
COOLFluiD Web Admin