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 special_objects {
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 virtual nx::sdk::Result<sdk::analytics::IAction::Result> executeAction(
35 const std::string& actionId,
36 nx::sdk::Uuid trackId,
37 nx::sdk::Uuid deviceId,
38 int64_t timestampUs,
39 nx::sdk::Ptr<nx::sdk::analytics::IObjectTrackInfo> objectTrackInfo,
40 const std::map<std::string, std::string>& params) override;
41
42 private:
43 nx::sdk::analytics::Integration* const m_integration;
44 };
45
46 } // namespace special_objects
47 } // namespace stub
48 } // namespace analytics
49 } // namespace vms_server_plugins
50 } // namespace nx
nx::vms_server_plugins::analytics::stub::special_objects::Engine::executeAction
virtual nx::sdk::Result< sdk::analytics::IAction::Result > executeAction(const std::string &actionId, nx::sdk::Uuid trackId, nx::sdk::Uuid deviceId, int64_t timestampUs, nx::sdk::Ptr< nx::sdk::analytics::IObjectTrackInfo > objectTrackInfo, const std::map< std::string, std::string > &params) override
Definition: engine.cpp:223
nx::vms_server_plugins::analytics::stub::special_objects::Engine
Definition: engine.h:18
nx::sdk::Ptr
Definition: ptr.h:18
nx::sdk::Uuid
Definition: uuid.h:22
nx::sdk::IDeviceInfo
Definition: i_device_info.h:13
nx::sdk::Result
Definition: result.h:52
nx
Definition: apple_utils.h:6
nx::sdk::analytics::Engine
Definition: engine.h:31
nx::sdk::analytics::Integration
Definition: integration.h:21