xtd - Reference Guide  0.1.0
Modern c++17 framework to create console, gui and unit test applications on Windows, macOS and Linux.
xtd::caller_info Class Referencefinal

caller_info information class is used to store current file, current line and current function information. More...

#include <caller_info.h>

Public Member Functions

 caller_info () noexcept=default
 Creates new instance of caller info. More...
 
 caller_info (const std::string &file_path, unsigned int line_number) noexcept
 Creates new instance of caller info with file path specified, and line number specified. More...
 
 caller_info (const std::string &file_path, unsigned int line_number, const std::string &member_name) noexcept
 Creates new instance of caller info with member name specified, file path specified, and line number specified. More...
 
const std::string & file_path () const noexcept
 Gets the file path. More...
 
unsigned int line_number () const noexcept
 Gets the line number. More...
 
const std::string & member_name () const noexcept
 Gets the member name. More...
 
std::string to_string () const noexcept
 
std::string to_trace () const noexcept
 

Static Public Member Functions

static xtd::caller_info empty () noexcept
 Return an empty caller info. More...
 

Detailed Description

caller_info information class is used to store current file, current line and current function information.

Examples
The following example shows how to use the caller_info

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