NeoN
A framework for CFD software
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | List of all members
NeoN::Logging::detail::FatalFormat Struct Reference

#include <logging.hpp>

Public Member Functions

 FatalFormat (const char *f, std::source_location l=std::source_location::current())
 
 FatalFormat (std::string_view f, std::source_location l=std::source_location::current())
 
 FatalFormat (const std::string &f, std::source_location l=std::source_location::current())
 

Public Attributes

std::string_view fmt
 
std::source_location loc
 

Detailed Description

Wraps a format string with the call-site source location. The default source_location argument is evaluated where the implicit conversion from the format string happens — i.e. at the error() call site — so error() captures the caller's file/line without an explicit argument.

Definition at line 148 of file logging.hpp.

Constructor & Destructor Documentation

◆ FatalFormat() [1/3]

NeoN::Logging::detail::FatalFormat::FatalFormat ( const char *  f,
std::source_location  l = std::source_location::current() 
)
inline

Definition at line 152 of file logging.hpp.

◆ FatalFormat() [2/3]

NeoN::Logging::detail::FatalFormat::FatalFormat ( std::string_view  f,
std::source_location  l = std::source_location::current() 
)
inline

Definition at line 155 of file logging.hpp.

◆ FatalFormat() [3/3]

NeoN::Logging::detail::FatalFormat::FatalFormat ( const std::string &  f,
std::source_location  l = std::source_location::current() 
)
inline

Definition at line 158 of file logging.hpp.

Member Data Documentation

◆ fmt

std::string_view NeoN::Logging::detail::FatalFormat::fmt

Definition at line 150 of file logging.hpp.

◆ loc

std::source_location NeoN::Logging::detail::FatalFormat::loc

Definition at line 151 of file logging.hpp.


The documentation for this struct was generated from the following file: