Class containing log information about the crash that occurred.
More...
#include <log.hpp>
|
| CrashReport (tof_crash_report_t ptr=nullptr) |
| Construct from pointer.
|
|
| CrashReport (StringView serial, StringView description) |
| Generate crash report on a camera.
|
|
const char * | get_description () const |
| Get the description.
|
|
void | set_description (StringView description) |
| Set the description.
|
|
const char * | get_report () const |
| Get the complete report.
|
|
void | save (StringView file_name) const |
| Save report to disk.
|
|
Class containing log information about the crash that occurred.
Definition at line 21 of file log.hpp.
◆ CrashReport() [1/2]
chronoptics::tof::CrashReport::CrashReport |
( |
tof_crash_report_t |
ptr = nullptr | ) |
|
|
inline |
Construct from pointer.
Definition at line 24 of file log.hpp.
◆ CrashReport() [2/2]
chronoptics::tof::CrashReport::CrashReport |
( |
StringView |
serial, |
|
|
StringView |
description |
|
) |
| |
|
inline |
Generate crash report on a camera.
- Parameters
-
serial | Camera to generate the crash report on |
description | Description of what happened |
Definition at line 32 of file log.hpp.
◆ get_description()
const char * chronoptics::tof::CrashReport::get_description |
( |
| ) |
const |
|
inline |
Get the description.
- Returns
- Description
Definition at line 39 of file log.hpp.
◆ get_report()
const char * chronoptics::tof::CrashReport::get_report |
( |
| ) |
const |
|
inline |
Get the complete report.
- Returns
- String of the entire report
Definition at line 53 of file log.hpp.
◆ save()
void chronoptics::tof::CrashReport::save |
( |
StringView |
file_name | ) |
const |
|
inline |
Save report to disk.
- Parameters
-
file_name | File to save the report to |
Definition at line 60 of file log.hpp.
◆ set_description()
void chronoptics::tof::CrashReport::set_description |
( |
StringView |
description | ) |
|
|
inline |
Set the description.
- Parameters
-
Definition at line 46 of file log.hpp.