xentara-utils v2.0.4
The Xentara Utility Library
|
A class that can be used to log messages related to a specific line in a specific JSON document. More...
#include <xentara/utils/json/decoder/Location.hpp>
Public Member Functions | |
Location ()=default | |
Default constructor. | |
operator bool () const noexcept | |
Checks whether the object contains a location. | |
auto | document () const -> const Document & |
Gets the JSON document that the location refers to. | |
auto | lineNumber () const -> std::uint_least32_t |
Gets the line number in the JSON document that the location refers to. | |
auto | description () const -> std::string |
return a description of the location | |
A class that can be used to log messages related to a specific line in a specific JSON document.
|
default |
Default constructor.
Constructs an unusable object that must be assigned a valid object before being used
auto xentara::utils::json::decoder::Location::description | ( | ) | const -> std::string |
return a description of the location
auto xentara::utils::json::decoder::Location::document | ( | ) | const -> const Document & |
Gets the JSON document that the location refers to.
This function must not be called on default constructed objects.
auto xentara::utils::json::decoder::Location::lineNumber | ( | ) | const -> std::uint_least32_t |
Gets the line number in the JSON document that the location refers to.
This function must not be called on default constructed objects.
|
explicitnoexcept |
Checks whether the object contains a location.