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
6
7#ifdef __cplusplus
8extern "C" {
9#endif
10
17CLC_CLASS_WN(ClassificationEmotionsPrivate, clCEmotions);
18
22typedef enum clCEmotionsEmotion {
29
33typedef struct clCEmotionalStates {
34 float focus;
35 float chill;
36 float stress;
37 float anger;
40
48CL_DLL clCEmotions clCEmotions_Create(clCSession session, double speed, double maxSpeed) NOEXCEPT;
55CL_DLL clCEmotions clCEmotions_CreateCalibrated(clCNFBCalibrator calibrator, double speed,
56 double maxSpeed) NOEXCEPT;
62CL_DLL void clCEmotions_Destroy(clCEmotions emotions) NOEXCEPT;
63
64CLC_STRUCT(clCEmotionsDelegateFloat);
65typedef void (*clCEmotionsHandlerFloat)(clCEmotions, float);
66CL_DLL void clCEmotionsDelegateFloat_Set(clCEmotionsDelegateFloat delegate,
69 clCEmotions emotions, clCEmotionsEmotion emotion) NOEXCEPT;
70
71CLC_STRUCT(clCEmotionsDelegateEmotionalStatesUpdate);
74 clCEmotionsDelegateEmotionalStatesUpdate delegate,
76CL_DLL clCEmotionsDelegateEmotionalStatesUpdate
78
79CLC_STRUCT(clCEmotionsDelegate);
80typedef void (*clCEmotionsHandler)(clCEmotions);
81CL_DLL void clCEmotionsDelegate_Set(clCEmotionsDelegate delegate, clCEmotionsHandler handler) NOEXCEPT;
82CL_DLL clCEmotionsDelegate clCEmotions_GetOnInitializedEvent(clCEmotions emotions) NOEXCEPT;
83CL_DLL clCEmotionsDelegate clCEmotions_GetOnCalibratedEvent(clCEmotions emotions) NOEXCEPT;
84
85CLC_STRUCT(clCEmotionsDelegateString);
86typedef void (*clCEmotionsHandlerString)(clCEmotions, const char*);
87CL_DLL void clCEmotionsDelegateString_Set(clCEmotionsDelegateString delegate,
89CL_DLL clCEmotionsDelegateString clCEmotions_GetOnErrorEvent(clCEmotions emotions) NOEXCEPT;
90
97CL_DLL void clCEmotions_Initialize(clCEmotions emotions, const char* platformAddress) NOEXCEPT;
104
105#ifdef __cplusplus
106}
107#endif
#define CLC_STRUCT(Name)
Definition CDefinesPrivate.h:24
#define NOEXCEPT
Definition CDefinesPrivate.h:52
#define CL_DLL
Definition CDefinesPrivate.h:21
#define CLC_CLASS_WN(Wrapped, Name)
Definition CDefinesPrivate.h:54
CL_DLL clCEmotionsDelegateFloat clCEmotions_GetOnEmotionUpdateEvent(clCEmotions emotions, clCEmotionsEmotion emotion) NOEXCEPT
void(* clCEmotionsHandlerFloat)(clCEmotions, float)
Definition CEmotions.h:65
CL_DLL clCEmotionsDelegateEmotionalStatesUpdate clCEmotions_GetOnEmotionalStatesUpdateEvent(clCEmotions emotions) NOEXCEPT
CL_DLL clCEmotions clCEmotions_Create(clCSession session, double speed, double maxSpeed) NOEXCEPT
CL_DLL void clCEmotions_Destroy(clCEmotions emotions) NOEXCEPT
CL_DLL void clCEmotions_Initialize(clCEmotions emotions, const char *platformAddress) NOEXCEPT
Initialize emotions classifier.
CL_DLL clCEmotionsDelegate clCEmotions_GetOnInitializedEvent(clCEmotions emotions) NOEXCEPT
void(* clCEmotionsHandler)(clCEmotions)
Definition CEmotions.h:80
CL_DLL void clCEmotionsDelegateString_Set(clCEmotionsDelegateString delegate, clCEmotionsHandlerString handler) NOEXCEPT
void(* clCEmotionsHandlerString)(clCEmotions, const char *)
Definition CEmotions.h:86
CL_DLL void clCEmotionsDelegateEmotionalStatesUpdate_Set(clCEmotionsDelegateEmotionalStatesUpdate delegate, clCEmotionsHandlerEmotionalStatesUpdate handler) NOEXCEPT
CL_DLL void clCEmotions_StartCalibration(clCEmotions emotions) NOEXCEPT
Start emotions calibration.
clCEmotionsEmotion
Metrics you can compute with clCEmotions.
Definition CEmotions.h:22
@ clC_Emotions_EmotionStress
Definition CEmotions.h:25
@ clC_Emotions_EmotionAnger
Definition CEmotions.h:26
@ clC_Emotions_EmotionSelfControl
Definition CEmotions.h:27
@ clC_Emotions_EmotionFocus
Definition CEmotions.h:23
@ clC_Emotions_EmotionChill
Definition CEmotions.h:24
CL_DLL clCEmotionsDelegateString clCEmotions_GetOnErrorEvent(clCEmotions emotions) NOEXCEPT
void(* clCEmotionsHandlerEmotionalStatesUpdate)(clCEmotions, const clCEmotionalStates *)
Definition CEmotions.h:72
CL_DLL clCEmotionsDelegate clCEmotions_GetOnCalibratedEvent(clCEmotions emotions) NOEXCEPT
CL_DLL clCEmotions clCEmotions_CreateCalibrated(clCNFBCalibrator calibrator, double speed, double maxSpeed) NOEXCEPT
CL_DLL void clCEmotionsDelegateFloat_Set(clCEmotionsDelegateFloat delegate, clCEmotionsHandlerFloat handler) NOEXCEPT
CL_DLL void clCEmotionsDelegate_Set(clCEmotionsDelegate delegate, clCEmotionsHandler handler) NOEXCEPT
Emotions values, determined by Emotions classifier.
Definition CEmotions.h:33
float anger
Definition CEmotions.h:37
float chill
Definition CEmotions.h:35
float focus
Definition CEmotions.h:34
float selfControl
Definition CEmotions.h:38
float stress
Definition CEmotions.h:36