nx_metadata_sdk 1.0 Metadata 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 <cstdint>
6
7 #include <nx/sdk/interface.h>
8
9 #include "i_metadata_packet.h"
10 #include "i_metadata.h"
11
12 namespace nx {
13 namespace sdk {
14 namespace analytics {
15
19 class ICompoundMetadataPacket: public Interface<ICompoundMetadataPacket, IMetadataPacket>
20 {
21 public:
22 static auto interfaceId() { return makeId("nx::sdk::analytics::ICompoundMetadataPacket"); }
23
27 virtual int64_t durationUs() const = 0;
28
30 virtual int count() const = 0;
31
35 protected: virtual const IMetadata* getAt(int index) const = 0;
36 public: Ptr<const IMetadata> at(int index) const { return toPtr(getAt(index)); }
37 };
38
39 } // namespace analytics
40 } // namespace sdk
41 } // namespace nx
nx::sdk::analytics::ICompoundMetadataPacket::durationUs
virtual int64_t durationUs() const =0
nx::sdk::Interface
Definition: interface.h:28
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
Definition: i_compound_metadata_packet.h:19
nx::sdk::analytics::IMetadata
Definition: i_metadata.h:16
nx
Definition: apple_utils.h:6