DynExp
Highly flexible laboratory automation for dynamically changing experiments.
|
Data associated with a warning. The class is convertible to bool (true if it describes an error/warning, false otherwise). More...
Public Member Functions | |
WarningData () | |
Default constructor sets ErrorCode to a non-error code. More... | |
WarningData (std::string Description, const int ErrorCode=DynExpErrorCodes::GeneralError, const std::source_location Location=std::source_location::current()) | |
WarningData (std::string Description, const int ErrorCode=DynExpErrorCodes::GeneralError, const size_t Line=0, std::string Function="", std::string File="") | |
operator bool () const noexcept | |
Public Attributes | |
const std::string | Description |
String describing the reason and consequences of the warning. More... | |
const int | ErrorCode |
DynExp error code from DynExpErrorCodes::DynExpErrorCodes More... | |
const size_t | Line |
Line in source code where the warning occurred. More... | |
const std::string | Function |
Function in source code where the warning occurred. More... | |
const std::string | File |
Source code file where the warning occurred. More... | |
Data associated with a warning. The class is convertible to bool (true if it describes an error/warning, false otherwise).
|
inline |
|
inline |
|
inline |
|
inlineexplicitnoexcept |
const std::string Util::Warning::WarningData::Description |
const int Util::Warning::WarningData::ErrorCode |
DynExp error code from DynExpErrorCodes::DynExpErrorCodes
const std::string Util::Warning::WarningData::File |
const std::string Util::Warning::WarningData::Function |
const size_t Util::Warning::WarningData::Line |