μHAL (v2.7.9)
Part of the IPbus software repository
Public Member Functions | Public Attributes | List of all members
uhal::Location Class Reference

A class to wrap the function name, filename and line-number location of its construction for the purpose of debugging and tracking unwinding exceptions. More...

#include <uhal/log/log_inserters.location.hpp>

Public Member Functions

 Location (const char *aFunction, const char *aFile, const uint32_t &aLine)
 Constructor. More...
 

Public Attributes

const char * mFunction
 the name of the current function as returned by the PRETTY_FUNCTION macro More...
 
const char * mFile
 the name of the current file as returned by the FILE macro More...
 
const uint32_t mLine
 the number of the current line as returned by the LINE macro More...
 

Detailed Description

A class to wrap the function name, filename and line-number location of its construction for the purpose of debugging and tracking unwinding exceptions.

Definition at line 48 of file log_inserters.location.hpp.

Constructor & Destructor Documentation

◆ Location()

uhal::Location::Location ( const char *  aFunction,
const char *  aFile,
const uint32_t &  aLine 
)

Constructor.

Parameters
aFunctionthe name of the current function as returned by the PRETTY_FUNCTION macro
aFilethe name of the current file as returned by the FILE macro
aLinethe number of the current line as returned by the LINE macro

Definition at line 43 of file log_inserters.location.cpp.

Member Data Documentation

◆ mFile

const char* uhal::Location::mFile

the name of the current file as returned by the FILE macro

Definition at line 63 of file log_inserters.location.hpp.

Referenced by uhal::operator<<().

◆ mFunction

const char* uhal::Location::mFunction

the name of the current function as returned by the PRETTY_FUNCTION macro

Definition at line 61 of file log_inserters.location.hpp.

Referenced by uhal::operator<<().

◆ mLine

const uint32_t uhal::Location::mLine

the number of the current line as returned by the LINE macro

Definition at line 65 of file log_inserters.location.hpp.

Referenced by uhal::operator<<().


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