Capsule API Example

Loading...
Searching...
No Matches
CEmotions.h
Go to the documentation of this file.
1// Copyright. 2019 - 2024 PSBD. All rights reserved.
2
3#pragma once
4
5#include "CDefinesPrivate.h"
6#include "CDevice.h"
7
8#ifdef __cplusplus
9 extern "C" {
10#endif
11
12 CLC_CLASS_WN(ClassificationEmotionsPrivate, clCEmotions);
13
14 typedef struct clCEmotions_States {
15 int64_t timestampMilli = -1;
16 float attention = -1.F;
17 float relaxation = -1.F;
18 float cognitiveLoad = -1.F;
19 float cognitiveControl = -1.F;
20 float selfControl = -1.F;
21} clCEmotions_States;
22
23 CL_DLL clCEmotions clCEmotions_Create(clCDevice device, clCError* error) NOEXCEPT;
24
25 typedef void (*clCEmotions_EmotionalStatesUpdateEvent)(clCEmotions, const clCEmotions_States*) NOEXCEPT;
26 CL_DLL void clCEmotions_SetOnEmotionalStatesUpdateEvent(clCEmotions emotions, clCEmotions_EmotionalStatesUpdateEvent handler) NOEXCEPT;
27
28 typedef void (*clCEmotions_ErrorHandler)(clCEmotions, const char*) NOEXCEPT;
29 CL_DLL void clCEmotions_SetOnErrorEvent(clCEmotions emotions, clCEmotions_ErrorHandler handler) NOEXCEPT;
30
31#ifdef __cplusplus
32}
33#endif
CDefinesPrivate.h
NOEXCEPT
#define NOEXCEPT
Definition CDefinesPrivate.h:82
CL_DLL
#define CL_DLL
Definition CDefinesPrivate.h:51
CLC_CLASS_WN
#define CLC_CLASS_WN(Wrapped, Name)
Definition CDefinesPrivate.h:84
CDevice.h
clCEmotions_Create
CL_DLL clCEmotions clCEmotions_Create(clCDevice device, clCError *error) NOEXCEPT
clCEmotions_ErrorHandler
void(* clCEmotions_ErrorHandler)(clCEmotions, const char *) NOEXCEPT
Definition CEmotions.h:28
clCEmotions_EmotionalStatesUpdateEvent
void(* clCEmotions_EmotionalStatesUpdateEvent)(clCEmotions, const clCEmotions_States *) NOEXCEPT
Definition CEmotions.h:25
clCEmotions_States
struct clCEmotions_States clCEmotions_States
clCEmotions_SetOnEmotionalStatesUpdateEvent
CL_DLL void clCEmotions_SetOnEmotionalStatesUpdateEvent(clCEmotions emotions, clCEmotions_EmotionalStatesUpdateEvent handler) NOEXCEPT
clCEmotions_SetOnErrorEvent
CL_DLL void clCEmotions_SetOnErrorEvent(clCEmotions emotions, clCEmotions_ErrorHandler handler) NOEXCEPT
clCEmotions_States
Definition CEmotions.h:14
clCEmotions_States::cognitiveControl
float cognitiveControl
Definition CEmotions.h:19
clCEmotions_States::relaxation
float relaxation
Definition CEmotions.h:17
clCEmotions_States::attention
float attention
Definition CEmotions.h:16
clCEmotions_States::selfControl
float selfControl
Definition CEmotions.h:20
clCEmotions_States::cognitiveLoad
float cognitiveLoad
Definition CEmotions.h:18
clCEmotions_States::timestampMilli
int64_t timestampMilli
Definition CEmotions.h:15
clCError
Definition CError.h:28