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 <memory>
6
7 #include <nx/sdk/analytics/helpers/engine.h>
8 #include <nx/sdk/analytics/helpers/integration.h>
9 #include <nx/sdk/analytics/i_uncompressed_video_frame.h>
10 #include <nx/sdk/uuid.h>
11
12 namespace nx {
13 namespace vms_server_plugins {
14 namespace analytics {
15 namespace stub {
16 namespace sdk_features {
17
18 class Engine: public nx::sdk::analytics::Engine
19 {
20 public:
21 Engine(nx::sdk::analytics::Integration* integration);
22 virtual ~Engine() override;
23
24 nx::sdk::analytics::Integration* const integration() const { return m_integration; }
25
26 protected:
27 virtual std::string manifestString() const override;
28
29 protected:
30 virtual void doObtainDeviceAgent(
31 nx::sdk::Result<nx::sdk::analytics::IDeviceAgent*>* outResult,
32 const nx::sdk::IDeviceInfo* deviceInfo) override;
33
34 private:
35 void obtainServerSdkVersion();
36 void obtainPluginHomeDir();
37
38 private:
39 nx::sdk::analytics::Integration* const m_integration;
40
41 std::string m_integrationHomeDir;
42 };
43
44 } // namespace sdk_features
45 } // namespace stub
46 } // namespace analytics
47 } // namespace vms_server_plugins
48 } // 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::sdk_features::Engine
Definition: engine.h:18
nx::sdk::analytics::Engine
Definition: engine.h:31
nx::sdk::analytics::Integration
Definition: integration.h:21