nx_metadata_sdk 1.0 Metadata SDK

string_list.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 <vector>
6 #include <string>
7
8 #include <nx/sdk/i_string_list.h>
9 #include <nx/sdk/helpers/ref_countable.h>
10
11 namespace nx {
12 namespace sdk {
13
14 class StringList: public nx::sdk::RefCountable<IStringList>
15 {
16 public:
17 virtual int count() const override;
18
20 virtual const char* at(int index) const override;
21
22 void addString(std::string str);
23 void clear();
24
25 private:
26 std::vector<std::string> m_strings;
27 };
28
29 } // namespace sdk
30 } // namespace nx
nx
Definition: apple_utils.h:6
nx::sdk::StringList::at
virtual const char * at(int index) const override
Definition: string_list.cpp:13
nx::sdk::StringList
Definition: string_list.h:14
nx::sdk::RefCountable
Definition: ref_countable.h:84