nx_server_plugin_sdk 1.0 Server Plugin SDK

i_compound_metadata_packet.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 <stdint.h>
6
7 #include <nx/sdk/interface.h>
8
9 #include "i_metadata.h"
10 #include "i_metadata_packet.h"
11
12 namespace nx::sdk::analytics {
13
17 class ICompoundMetadataPacket: public Interface<ICompoundMetadataPacket, IMetadataPacket0>
18 {
19 public:
20 static auto interfaceId() { return makeId("nx::sdk::analytics::ICompoundMetadataPacket"); }
21
25 virtual int64_t durationUs() const = 0;
26
28 virtual int count() const = 0;
29
31 protected: virtual const IMetadata* getAt(int index) const = 0;
35 public: Ptr<const IMetadata> at(int index) const { return Ptr(getAt(index)); }
36 };
37 using ICompoundMetadataPacket0 = ICompoundMetadataPacket;
38
39 } // namespace nx::sdk::analytics
nx::sdk::analytics::ICompoundMetadataPacket::durationUs
virtual int64_t durationUs() const =0
nx::sdk::Interface
Definition: interface.h:48
nx::sdk::analytics::ICompoundMetadataPacket::getAt
virtual const IMetadata * getAt(int index) const =0
nx::sdk::analytics::ICompoundMetadataPacket::count
virtual int count() const =0
nx::sdk::Ptr
Definition: ptr.h:18
nx::sdk::analytics::ICompoundMetadataPacket::at
Ptr< const IMetadata > at(int index) const
Definition: i_compound_metadata_packet.h:35
nx::sdk::analytics::ICompoundMetadataPacket
Definition: i_compound_metadata_packet.h:17
nx::sdk::analytics::IMetadata
Definition: i_metadata.h:14
nx::sdk::analytics
Definition: consuming_device_agent.cpp:25