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