|
template<typename R >
requires (std::is_constructible_v<Result, R> && !std::same_as<Result, R>) |
| CallRecord (R resultValue, const char *pMessage=nullptr, GblObject *pObject=nullptr, SourceLocation srcLoc={}) noexcept |
|
| CallRecord (Result result, const char *pMessage=nullptr, GblObject *pObject=nullptr, SourceLocation srcLoc={}) noexcept |
|
| CallRecord (const GblCallRecord &other) |
|
Handle * | getHandle (void) const |
|
Result | getResult (void) const |
|
const SourceLocation & | getSource (void) const |
|
const char * | getMessage (void) const |
|
std::string | getSourceString (void) const |
|
std::string | toString (void) const |
|
| GBL_ALIGNAS (64) char message[GBL_CTX_RESULT_MSG_BUFFER_SIZE] |
|
Definition at line 41 of file gimbal_call_stack.hpp.
◆ CallRecord() [1/3]
template<typename R >
requires (std::is_constructible_v<Result, R> && !std::same_as<Result, R>)
gimbal::CallRecord::CallRecord |
( |
R |
resultValue, |
|
|
const char * |
pMessage = nullptr , |
|
|
GblObject * |
pObject = nullptr , |
|
|
SourceLocation |
srcLoc = {} |
|
) |
| |
|
inlinenoexcept |
Definition at line 46 of file gimbal_call_stack.hpp.
46 {}) noexcept:
47 CallRecord(Result(resultValue), pMessage, pObject, std::move(srcLoc)) {}
◆ CallRecord() [2/3]
gimbal::CallRecord::CallRecord |
( |
Result |
result, |
|
|
const char * |
pMessage = nullptr , |
|
|
GblObject * |
pObject = nullptr , |
|
|
SourceLocation |
srcLoc = {} |
|
) |
| |
|
inlinenoexcept |
Definition at line 101 of file gimbal_call_stack.hpp.
101 {
102 GBL_CALL_RECORD_CONSTRUCT(this, pObject, result.getCode(), srcLoc, "%s", pMessage? pMessage : result.toString());
103}
◆ CallRecord() [3/3]
Definition at line 51 of file gimbal_call_stack.hpp.
51 {
53 }
Captures a result, its stringified message, and a source context.
◆ getResult()
Result gimbal::CallRecord::getResult |
( |
void |
| ) |
const |
|
inline |
◆ getSource()
Definition at line 57 of file gimbal_call_stack.hpp.
57 {
58 return static_cast<const SourceLocation&>(srcLocation);
59 }
◆ getMessage()
const char * gimbal::CallRecord::getMessage |
( |
void |
| ) |
const |
|
inline |
The documentation for this class was generated from the following file: