nx_server_plugin_sdk 1.0 Server Plugin SDK

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/analytics/i_metadata_types.h>
6 #include <nx/sdk/helpers/ref_countable.h>
7 #include <nx/sdk/helpers/string_list.h>
8 #include <nx/sdk/ptr.h>
9
10 namespace nx::sdk::analytics {
11
12 class MetadataTypes: public RefCountable<IMetadataTypes>
13 {
14 public:
15 MetadataTypes();
16
17 virtual bool isEmpty() const override;
18
19 void addEventTypeId(std::string eventTypeId);
20 void addObjectTypeId(std::string objectTypeId);
21
22 protected:
23 virtual const IStringList* getEventTypeIds() const override;
24 virtual const IStringList* getObjectTypeIds() const override;
25
26 private:
27 nx::sdk::Ptr<StringList> m_eventTypeIds;
28 nx::sdk::Ptr<StringList> m_objectTypeIds;
29 };
30
31 } // namespace nx::sdk::analytics
nx::sdk::Ptr
Definition: ptr.h:18
nx::sdk::analytics::MetadataTypes
Definition: metadata_types.h:12
nx::sdk::analytics
Definition: consuming_device_agent.cpp:25
nx::sdk::IStringList
Definition: i_string_list.h:9
nx::sdk::RefCountable
Definition: ref_countable.h:83