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