nx_metadata_sdk 1.0 Metadata SDK

i_metadata_types.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 <nx/sdk/i_string_list.h>
8
9 namespace nx {
10 namespace sdk {
11 namespace analytics {
12
13 class IMetadataTypes: public Interface<IMetadataTypes>
14 {
15 public:
16 static auto interfaceId() { return makeId("nx::sdk::analytics::IMetadataTypes"); }
17
18 virtual ~IMetadataTypes() = default;
19
20 protected: virtual const IStringList* getEventTypeIds() const = 0;
21 public: Ptr<const IStringList> eventTypeIds() const { return toPtr(getEventTypeIds()); }
22
23 protected: virtual const IStringList* getObjectTypeIds() const = 0;
24 public: Ptr<const IStringList> objectTypeIds() const { return toPtr(getObjectTypeIds()); }
25
26 virtual bool isEmpty() const = 0;
27 };
28
29 } // namespace analytics
30 } // namespace sdk
31 } // namespace nx
nx::sdk::Interface
Definition: interface.h:28
nx::sdk::Ptr
Definition: ptr.h:18
nx::sdk::analytics::IMetadataTypes
Definition: i_metadata_types.h:13
nx::sdk::IStringList
Definition: i_string_list.h:10
nx
Definition: apple_utils.h:6
nx::sdk::IRefCountable::makeId
static constexpr const InterfaceId * makeId(const char(&charArray)[len])
Definition: i_ref_countable.h:78