Time-of-Flight Library(ToF) 3.13.2
 
error.h
1#ifndef _CHRONOPTICS_TOF_ERROR_H_
2#define _CHRONOPTICS_TOF_ERROR_H_
3
4#include <chronoptics/tof/visibility.h>
5#include <stdbool.h>
6#include <stddef.h>
7#include <stdint.h>
8
9// Additional defines
10
11#ifdef __cplusplus
12extern "C" {
13#endif
14
15/** The error class is used to communicate errors
16 */
17typedef struct tof_error* tof_error_t;
18
19/** Destruct tof_error */
20TOF_EXPORT void tof_error_delete(tof_error_t ptr);
21
22/** Get the error message
23 * @param ptr Pointer to class
24 * @returns error message
25 */
26TOF_EXPORT const char* tof_error_message(tof_error_t ptr);
27
28#ifdef __cplusplus
29}
30#endif
31
32#endif