NXEngine v1.0.0.6
[NXEngine.git] / common / StringList.h
blob7c7c1e2ff10d41e4132623e5afdecbf974edb923
2 #ifndef _STRINGLIST_H
3 #define _STRINGLIST_H
5 #include "BList.h"
7 class StringList : protected BList
9 public:
10 StringList() { }
12 StringList(const StringList &other)
14 *this = other;
17 virtual ~StringList();
19 void AddString(const char *str);
20 char *StringAt(int index) const;
21 bool SetString(int index, const char *newstring);
22 void MakeEmpty();
24 void Shuffle();
25 bool ContainsString(const char *term);
26 bool ContainsCaseString(const char *term);
27 void RemoveString(int index);
28 void RemoveString(const char *str);
29 void RemoveIString(const char *str);
31 void SwapItems(int index1, int index2);
32 void DumpContents();
34 int32_t CountItems() const { return BList::CountItems(); }
36 StringList &operator= (const StringList &other);
37 bool operator== (const StringList &other) const;
38 bool operator!= (const StringList &other) const;
43 #endif