Capsule API Example

Loading...
Searching...
No Matches
ClassificationEmotions.hpp
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 "Classification.hpp"
7
8#include <Core/Common.hpp>
9#include <Core/Delegate.hpp>
10
11 namespace capsule::client {
12 class ClassificationEmotionsPrivate;
13 class Device;
14
20 class CL_DLL ClassificationEmotions : public Classification {
21 friend ClassificationEmotionsPrivate;
22
23 public:
24 enum class CallResult : uint8_t {
25 Success,
26 FailedToSendData,
27 ClassifierIsBusy
28 };
29
30 explicit ClassificationEmotions(Device& owner);
31
32 void SetOnEmotionalStatesUpdateEvent(std::function<void(ClassificationEmotions&, const emotions::EmotionalStates&)>&& callback);
33 void SetOnErrorEvent(std::function<void(ClassificationEmotions&, const std::string&)>&& callback);
34 // void SetOnStatusChangedEvent(std::function<void(ClassificationEmotions&, core::ClassifierStatus)>&& callback);
35
36 private:
37 ClassificationEmotionsPrivate* getImpl();
38 const ClassificationEmotionsPrivate* getImpl() const;
39};
40
41} // namespace capsule::client
CDefinesPrivate.h
CL_DLL
#define CL_DLL
Definition CDefinesPrivate.h:51
Classification.hpp
capsule::client::ClassificationEmotions
Wrapper of ClassificationNFB class.
Definition ClassificationEmotions.hpp:20
capsule::client::ClassificationEmotions::CallResult
CallResult
Definition ClassificationEmotions.hpp:24
capsule::client::ClassificationEmotions::SetOnErrorEvent
void SetOnErrorEvent(std::function< void(ClassificationEmotions &, const std::string &)> &&callback)
capsule::client::ClassificationEmotions::ClassificationEmotions
ClassificationEmotions(Device &owner)
capsule::client::ClassificationEmotions::SetOnEmotionalStatesUpdateEvent
void SetOnEmotionalStatesUpdateEvent(std::function< void(ClassificationEmotions &, const emotions::EmotionalStates &)> &&callback)
capsule::client::Classification
is the base class for to NFB or productivity classification process.
Definition Classification.hpp:16
capsule::client::Device
Device.
Definition Device.hpp:71
capsule::client
Definition Classification.hpp:7