#include <crashreportproperty.h>
A property that can be stored by the crash report if something crashes while the property is still part of the scope.
If you'd call the following method with makeCrash == true the crash report would contain the two properties "Entered Sample method" and "Going to crash: true". The property "Will not appear" won't be in the crash report because the scope of its code block has been left.
Public Member Functions | |
CrashReportProperty (const Char *name, const Char *value=nullptr) | |
CrashReportProperty (const Char *name, Bool value) | |
CrashReportProperty (const Char *name, Char value) | |
CrashReportProperty (const Char *name, Int16 value) | |
CrashReportProperty (const Char *name, Int32 value) | |
CrashReportProperty (const Char *name, Int64 value) | |
CrashReportProperty (const Char *name, UChar value) | |
CrashReportProperty (const Char *name, UInt16 value) | |
CrashReportProperty (const Char *name, UInt32 value) | |
CrashReportProperty (const Char *name, UInt64 value) | |
CrashReportProperty (const Char *name, const Float32 &value) | |
CrashReportProperty (const Char *name, const Float64 &value) | |
CrashReportProperty (const Char *name, const String &value) | |
template<typename T > | |
CrashReportProperty (const Char *name, const T &value) | |
~CrashReportProperty () | |
Static Public Member Functions | |
static CrashReportPropertyArray * | GetCrashReportProperties (void *osThread) |
Private Member Functions | |
MAXON_DISALLOW_COPY_AND_ASSIGN (CrashReportProperty) | |
void | SetAllocationState (Bool state) |
Bool | IsAllocated () const |
const Char * | StoreValue (const Char *value) |
const Char * | StoreValue (Bool value) |
const Char * | StoreValue (UInt64 value, Int digits) |
Private Attributes | |
Int32 | _propertyIdx |
char | _buf [28] |
|
explicit |
Constructs a property for the crash report if something crashes while this is still in scope. it when the object is no longer needed). If you try to start an already running thread this will fail and return an error.
[in] | name | Property name or key. |
[in] | value | Pointer to a null terminated C string that must be valid until the scope is left. |
CrashReportProperty | ( | const Char * | name, |
Bool | value | ||
) |
CrashReportProperty | ( | const Char * | name, |
Char | value | ||
) |
CrashReportProperty | ( | const Char * | name, |
Int16 | value | ||
) |
CrashReportProperty | ( | const Char * | name, |
Int32 | value | ||
) |
CrashReportProperty | ( | const Char * | name, |
Int64 | value | ||
) |
CrashReportProperty | ( | const Char * | name, |
UChar | value | ||
) |
CrashReportProperty | ( | const Char * | name, |
UInt16 | value | ||
) |
CrashReportProperty | ( | const Char * | name, |
UInt32 | value | ||
) |
CrashReportProperty | ( | const Char * | name, |
UInt64 | value | ||
) |
CrashReportProperty | ( | const Char * | name, |
const Float32 & | value | ||
) |
CrashReportProperty | ( | const Char * | name, |
const Float64 & | value | ||
) |
CrashReportProperty | ( | const Char * | name, |
const String & | value | ||
) |
CrashReportProperty | ( | const Char * | name, |
const T & | value | ||
) |
~CrashReportProperty | ( | ) |
Destructs a property for the crash report when the scope is left. From the C++ standard: "On exit from a scope (however accomplished), objects with automatic storage duration (3.7.3) that have been constructed in that scope are destroyed in the reverse order of their construction."
|
private |
|
static |
Returns a pointer to an array with crash properties (used by the crash report).
[in] | osThread | OS specific thread identifier. |
|
private |
|
private |
|
private |
|
private |