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
21 protected: virtual const IStringList* getEventTypeIds() const = 0;
22 public: Ptr<const IStringList> eventTypeIds() const { return toPtr(getEventTypeIds()); }
23
25 protected: virtual const IStringList* getObjectTypeIds() const = 0;
26 public: Ptr<const IStringList> objectTypeIds() const { return toPtr(getObjectTypeIds()); }
27
28 virtual bool isEmpty() const = 0;
29 };
30 using IMetadataTypes0 = IMetadataTypes;
31
32 } // namespace analytics
33 } // namespace sdk
34 } // namespace nx
nx::sdk::Interface
Definition: interface.h:49
nx::sdk::Ptr
Definition: ptr.h:18
nx::sdk::analytics::IMetadataTypes::getEventTypeIds
virtual const IStringList * getEventTypeIds() const =0
nx::sdk::analytics::IMetadataTypes
Definition: i_metadata_types.h:13
nx::sdk::IStringList
Definition: i_string_list.h:10
nx::sdk::analytics::IMetadataTypes::getObjectTypeIds
virtual const IStringList * getObjectTypeIds() const =0
nx
Definition: apple_utils.h:6
nx::sdk::IRefCountable::makeId
static constexpr const InterfaceId * makeId(const char(&charArray)[len])
Definition: i_ref_countable.h:77