eckit::CodeLocation class

Constructors, destructors, conversion operators

CodeLocation()
Empty contructor.
CodeLocation(const char* file, int line, const char* func)
Full Contructor.
operator std::string() const
conversion operator
operator bool() const
conversion to bool for checking if location was set

Public functions

auto asString() const -> std::string
auto line() const -> int
accessor to line
auto file() const -> const char*
accessor to file
auto func() const -> const char*
accessor to function

Friends

auto operator<<(std::ostream& s, const CodeLocation& loc) -> std::ostream&

Function documentation

std::string eckit::CodeLocation::asString() const

Returns as std::string
This website is beyond its original expiry date and the content may be out of date. The site owner has been notified and may choose to extend the expiry date and remove this banner. If you have any questions about this, please visit our support portal.