nx_server_plugin_sdk 1.0 Server Plugin SDK

engine.h
1 // Copyright 2018-present Network Optix, Inc. Licensed under MPL 2.0: www.mozilla.org/MPL/2.0/
2
3 #pragma once
4
5 #include <atomic>
6 #include <condition_variable>
7 #include <memory>
8 #include <mutex>
9 #include <thread>
10
11 #include <nx/sdk/analytics/helpers/engine.h>
12 #include <nx/sdk/analytics/helpers/integration.h>
13 #include <nx/sdk/analytics/i_uncompressed_video_frame.h>
14 #include <nx/sdk/uuid.h>
15
16 namespace nx {
17 namespace vms_server_plugins {
18 namespace analytics {
19 namespace stub {
20 namespace events {
21
22 class Engine: public nx::sdk::analytics::Engine
23 {
24 public:
25 Engine(nx::sdk::analytics::Integration* integration);
26 virtual ~Engine() override;
27
28 nx::sdk::analytics::Integration* const integration() const { return m_integration; }
29
30 protected:
31 virtual std::string manifestString() const override;
32
33 protected:
34 virtual void doObtainDeviceAgent(
35 nx::sdk::Result<nx::sdk::analytics::IDeviceAgent*>* outResult,
36 const nx::sdk::IDeviceInfo* deviceInfo) override;
37
38 private:
39 nx::sdk::analytics::Integration* const m_integration;
40 std::atomic<bool> m_terminated{false};
41 };
42
43 } // namespace events
44 } // namespace stub
45 } // namespace analytics
46 } // namespace vms_server_plugins
47 } // namespace nx
nx::sdk::IDeviceInfo
Definition: i_device_info.h:13
nx::sdk::Result
Definition: result.h:52
nx
Definition: apple_utils.h:6
nx::vms_server_plugins::analytics::stub::events::Engine
Definition: engine.h:22
nx::sdk::analytics::Engine
Definition: engine.h:31
nx::sdk::analytics::Integration
Definition: integration.h:21