Class of locations in source codes.
More...
#include <msgpack_rpc/logging/source_location_view.h>
|
constexpr | SourceLocationView (std::string_view file_path, std::uint32_t line, std::string_view function) noexcept |
| Constructor.
|
constexpr std::string_view | file_path () const noexcept |
| Get the file path.
|
constexpr std::string_view | function () const noexcept |
| Get the function name.
|
constexpr std::uint32_t | line () const noexcept |
| Get the line number.
|
Class of locations in source codes.
Definition at line 30 of file source_location_view.h.
◆ SourceLocationView()
msgpack_rpc::logging::SourceLocationView::SourceLocationView |
( |
std::string_view | file_path, |
|
|
std::uint32_t | line, |
|
|
std::string_view | function ) |
|
inlineconstexprnoexcept |
Constructor.
- Parameters
-
[in] | file_path | File path. |
[in] | line | Line number. |
[in] | function | Function name. |
- Note
- This class doesn't manage memory of file paths.
Definition at line 41 of file source_location_view.h.
◆ file_path()
std::string_view msgpack_rpc::logging::SourceLocationView::file_path |
( |
| ) |
const |
|
inlinenodiscardconstexprnoexcept |
◆ function()
std::string_view msgpack_rpc::logging::SourceLocationView::function |
( |
| ) |
const |
|
inlinenodiscardconstexprnoexcept |
◆ line()
std::uint32_t msgpack_rpc::logging::SourceLocationView::line |
( |
| ) |
const |
|
inlinenodiscardconstexprnoexcept |
◆ file_path_
std::string_view msgpack_rpc::logging::SourceLocationView::file_path_ |
|
private |
◆ function_
std::string_view msgpack_rpc::logging::SourceLocationView::function_ |
|
private |
◆ line_
std::uint32_t msgpack_rpc::logging::SourceLocationView::line_ |
|
private |
The documentation for this class was generated from the following file: