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