nx_metadata_sdk 1.0 Metadata SDK

i_event_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 <nx/sdk/interface.h>
6
7 #include "i_event_metadata.h"
8 #include "i_compound_metadata_packet.h"
9
10 namespace nx {
11 namespace sdk {
12 namespace analytics {
13
17 class IEventMetadataPacket0: public Interface<IEventMetadataPacket0, ICompoundMetadataPacket0>
18 {
19 public:
20 static auto interfaceId() { return makeId("nx::sdk::analytics::IEventMetadataPacket"); }
21
23 protected: virtual const IEventMetadata* getAt(int index) const override = 0;
24 public: Ptr<const IEventMetadata> at(int index) const { return toPtr(getAt(index)); }
25 };
26
27 class IEventMetadataPacket: public Interface<IEventMetadataPacket, IEventMetadataPacket0>
28 {
29 public:
30 static auto interfaceId() { return makeId("nx::sdk::analytics::IEventMetadataPacket1"); }
31
32 virtual Flags flags() const = 0;
33 };
34 using IEventMetadataPacket1 = IEventMetadataPacket;
35
36 } // namespace analytics
37 } // namespace sdk
38 } // namespace nx
nx::sdk::analytics::IEventMetadataPacket0
Definition: i_event_metadata_packet.h:17
nx::sdk::Interface
Definition: interface.h:49
nx::sdk::Ptr
Definition: ptr.h:18
nx::sdk::analytics::IEventMetadataPacket0::getAt
virtual const IEventMetadata * getAt(int index) const override=0
nx::sdk::analytics::IEventMetadataPacket
Definition: i_event_metadata_packet.h:27
nx::sdk::analytics::IEventMetadata
Definition: i_event_metadata.h:49
nx
Definition: apple_utils.h:6