Digital Barriers
Digital Barriers EdgeVis Decoder SDK
Loading...
Searching...
No Matches
OnvifEvent.h
Go to the documentation of this file.
1
2// Copyright (c) 2024 Digital Barriers Services Ltd.
4
18
19#pragma once
20
21#include "EdgeVisSDK.h"
23#include "Pimpl.h"
24
25#include <vector>
26
27namespace EV
28{
29 class OnvifEvent;
30}
31
32namespace EdgeVisDecoderSDK
33{
34 class OnvifEvent : public EdgeVisSDKPimpl<EV::OnvifEvent>
35 {
36 public:
37 DB_EDGEVIS_SDK OnvifEvent();
38 DB_EDGEVIS_SDK ~OnvifEvent();
39 EdgeVisSDKPimplWeakConstructor(OnvifEvent);
40
41 public:
42
48 DB_EDGEVIS_SDK std::wstring GetTopic() const;
49
55 DB_EDGEVIS_SDK int64_t GetTimestamp() const;
56
62 DB_EDGEVIS_SDK std::vector<std::pair<std::wstring, std::wstring>> GetSources() const;
63
69 DB_EDGEVIS_SDK std::vector<std::pair<std::wstring, std::wstring>> GetKeys() const;
70
76 DB_EDGEVIS_SDK std::vector<std::pair<std::wstring, std::wstring>> GetData() const;
77
83 DB_EDGEVIS_SDK std::wstring GetOnvifXML() const;
84
90 DB_EDGEVIS_SDK bool IsProperty() const;
91 };
92}
DB_EDGEVIS_SDK std::wstring GetOnvifXML() const
Returns an ONVIF XML representation of the event.
DB_EDGEVIS_SDK std::vector< std::pair< std::wstring, std::wstring > > GetData() const
Returns the list of data associated with this event.
DB_EDGEVIS_SDK std::vector< std::pair< std::wstring, std::wstring > > GetKeys() const
Returns the list of keys associated with this event.
DB_EDGEVIS_SDK std::wstring GetTopic() const
Returns the ONVIF event topic.
DB_EDGEVIS_SDK int64_t GetTimestamp() const
Returns the ONVIF event timestamp in milliseconds since epoch.
DB_EDGEVIS_SDK std::vector< std::pair< std::wstring, std::wstring > > GetSources() const
Returns the list of sources associated with this event.
DB_EDGEVIS_SDK bool IsProperty() const
Is this event a property.
The EdgeVis Decoder SDK namespace.