|
Veethree D7 SDK
|
The source_location class.
This is a helper class to be used to pin point where the exception has been thrown.
In later C++ versions, there is a std::source_location available.
#include <libio_error.h>
Public Member Functions | |
| source_location (std::string file, int line, std::string func) | |
| The class constructor. | |
| int | line () const |
| The source file line. | |
| std::string | function_name () const |
| The source file function_name. | |
| std::string | file_name () const |
| The source file name. | |
Static Public Member Functions | |
| static source_location | current (std::string file=__builtin_FILE(), int line=__builtin_LINE(), std::string func=__builtin_FUNCTION()) |
| Calling this function will gather all info about file, line and function. | |
The source_location class.
This is a helper class to be used to pin point where the exception has been thrown.
In later C++ versions, there is a std::source_location available.
| vsdk::io::source_location::source_location | ( | std::string | file, |
| int | line, | ||
| std::string | func ) |
The class constructor.
| file | Filename where the exception happened |
| line | Line number where the exception happened |
| func | Function where the exception happened |
|
static |
Calling this function will gather all info about file, line and function.
Use this function with the default values!
| file | Defaults to the file where the function was called. |
| line | Defaults to the line where the function was called. |
| func | Defaults to the function where the function was called. |
| std::string vsdk::io::source_location::file_name | ( | ) | const |
The source file name.
| std::string vsdk::io::source_location::function_name | ( | ) | const |
The source file function_name.
| int vsdk::io::source_location::line | ( | ) | const |
The source file line.