Capsule API Example

Loading...
Searching...
No Matches
ClassificationPhysiologicalStates.hpp
Go to the documentation of this file.
1// Copyright. 2019 - 2024 PSBD. All rights reserved.
2#pragma once
3
4#include "CDefinesPrivate.h"
5#include "Classification.hpp"
6
7#include <Core/Common.hpp>
8#include <Core/Delegate.hpp>
9
10 namespace capsule::client {
11 class ClassificationPhysiologicalStatesPrivate;
12 class Device;
13
14 class CL_DLL ClassificationPhysiologicalStates final : public Classification {
15 friend ClassificationPhysiologicalStatesPrivate;
16
17 public:
18 explicit ClassificationPhysiologicalStates(Device& owner);
19
20 void SetOnPhysiologicalStatesUpdateEvent(std::function<void(ClassificationPhysiologicalStates&, const physiological_states::PhysiologicalStates&)>&& callback);
21 void SetOnCalibratedEvent(std::function<void(ClassificationPhysiologicalStates&, const physiological_states::Baselines&)>&& callback);
22 void SetOnCalibrationProgressUpdateEvent(std::function<void(ClassificationPhysiologicalStates&, float)>&& callback);
23 void SetOnIndividualNFBUpdateEvent(std::function<void(ClassificationPhysiologicalStates&)>&& callback);
24
30 void StartBaselineCalibration();
31
37 void ImportBaselines(const physiological_states::Baselines& baselines);
38
39 private:
40 ClassificationPhysiologicalStatesPrivate* getImpl();
41 const ClassificationPhysiologicalStatesPrivate* getImpl() const;
42};
43
44} // namespace capsule::client
CDefinesPrivate.h
CL_DLL
#define CL_DLL
Definition CDefinesPrivate.h:51
Classification.hpp
capsule::client::Classification
is the base class for to NFB or productivity classification process.
Definition Classification.hpp:16
capsule::client::ClassificationPhysiologicalStates
Definition ClassificationPhysiologicalStates.hpp:14
capsule::client::ClassificationPhysiologicalStates::StartBaselineCalibration
void StartBaselineCalibration()
Request calibration.
capsule::client::ClassificationPhysiologicalStates::ImportBaselines
void ImportBaselines(const physiological_states::Baselines &baselines)
Import calibration coefficients.
capsule::client::ClassificationPhysiologicalStates::SetOnCalibrationProgressUpdateEvent
void SetOnCalibrationProgressUpdateEvent(std::function< void(ClassificationPhysiologicalStates &, float)> &&callback)
capsule::client::ClassificationPhysiologicalStates::ClassificationPhysiologicalStates
ClassificationPhysiologicalStates(Device &owner)
capsule::client::ClassificationPhysiologicalStates::SetOnIndividualNFBUpdateEvent
void SetOnIndividualNFBUpdateEvent(std::function< void(ClassificationPhysiologicalStates &)> &&callback)
capsule::client::ClassificationPhysiologicalStates::SetOnCalibratedEvent
void SetOnCalibratedEvent(std::function< void(ClassificationPhysiologicalStates &, const physiological_states::Baselines &)> &&callback)
capsule::client::ClassificationPhysiologicalStates::SetOnPhysiologicalStatesUpdateEvent
void SetOnPhysiologicalStatesUpdateEvent(std::function< void(ClassificationPhysiologicalStates &, const physiological_states::PhysiologicalStates &)> &&callback)
capsule::client::Device
Device.
Definition Device.hpp:71
capsule::client
Definition Classification.hpp:7