5#include <Foundation/Basics.h>
6#include <Foundation/Strings/StringBuilder.h>
14 : m_Result(PL_FAILURE)
19 explicit plStatus(
const char* szError)
20 : m_Result(PL_FAILURE)
32 : m_Result(PL_FAILURE)
44 [[nodiscard]] PL_ALWAYS_INLINE
bool Succeeded()
const {
return m_Result.Succeeded(); }
45 [[nodiscard]] PL_ALWAYS_INLINE
bool Failed()
const {
return m_Result.Failed(); }
62 void AssertSuccess(
const char* szMsg =
nullptr)
const;
70 return result.m_Result;
Base class for all logging classes.
Definition Log.h:77
plStringView represent a read-only sub-string of a larger string, as it can store a dedicated string ...
Definition StringView.h:34
Default enum for returning failure or success, instead of using a bool.
Definition Types.h:54
An plResult with an additional message for the reason of failure.
Definition Status.h:12
PL_ALWAYS_INLINE void IgnoreResult()
Used to silence compiler warnings, when success or failure doesn't matter.
Definition Status.h:48