Capsule API Example

Loading...
Searching...
No Matches
ClassificationCardio.hpp
Go to the documentation of this file.
1// Copyright. 2019 - 2024 PSBD. All rights reserved.
2
3#pragma once
4
5#include "Classification.hpp"
6
7#include <Cardio.hpp>
8
9#include <functional>
10
11 namespace capsule::client {
12 class ClassificationCardioPrivate;
13 class Device;
14
15 class ClassificationCardio final : public Classification {
16 public:
17 explicit ClassificationCardio(Device& owner) noexcept;
18
19 void SetOnIndexesUpdateEvent(std::function<void(ClassificationCardio&, const cardio::CardioData&)>&& callback);
20 void SetOnMetricsUpdateEvent(std::function<void(ClassificationCardio&, const cardio::CardioMetrics&)>&& callback);
21 void SetOnCalibratedEvent(std::function<void(ClassificationCardio&)>&& callback);
22 void SetOnPPGDataEvent(std::function<void(ClassificationCardio&, cardio::PPGTimedData&&)>&& callback);
23#ifdef CC_CHIMERA
24 void SetOnDrawDataUpdateEvent(std::function<void(ClassificationCardio&, const cardio::DrawData&)>&& callback);
25#endif
26
27 private:
28 ClassificationCardioPrivate* getImpl();
29 const ClassificationCardioPrivate* getImpl() const;
30};
31
32} // namespace capsule::client
Classification.hpp
capsule::client::ClassificationCardio
Definition ClassificationCardio.hpp:15
capsule::client::ClassificationCardio::SetOnPPGDataEvent
void SetOnPPGDataEvent(std::function< void(ClassificationCardio &, cardio::PPGTimedData &&)> &&callback)
capsule::client::ClassificationCardio::ClassificationCardio
ClassificationCardio(Device &owner) noexcept
capsule::client::ClassificationCardio::SetOnCalibratedEvent
void SetOnCalibratedEvent(std::function< void(ClassificationCardio &)> &&callback)
capsule::client::ClassificationCardio::SetOnIndexesUpdateEvent
void SetOnIndexesUpdateEvent(std::function< void(ClassificationCardio &, const cardio::CardioData &)> &&callback)
capsule::client::ClassificationCardio::SetOnMetricsUpdateEvent
void SetOnMetricsUpdateEvent(std::function< void(ClassificationCardio &, const cardio::CardioMetrics &)> &&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