File indexing completed on 2026-05-10 08:42:42
0001
0002
0003
0004
0005
0006
0007
0008
0009 #ifndef LLDB_API_SBSTRINGLIST_H
0010 #define LLDB_API_SBSTRINGLIST_H
0011
0012 #include "lldb/API/SBDefines.h"
0013
0014 namespace lldb {
0015
0016 class LLDB_API SBStringList {
0017 public:
0018 SBStringList();
0019
0020 SBStringList(const lldb::SBStringList &rhs);
0021
0022 const SBStringList &operator=(const SBStringList &rhs);
0023
0024 ~SBStringList();
0025
0026 explicit operator bool() const;
0027
0028 bool IsValid() const;
0029
0030 void AppendString(const char *str);
0031
0032 void AppendList(const char **strv, int strc);
0033
0034 void AppendList(const lldb::SBStringList &strings);
0035
0036 uint32_t GetSize() const;
0037
0038 const char *GetStringAtIndex(size_t idx);
0039
0040 const char *GetStringAtIndex(size_t idx) const;
0041
0042 void Clear();
0043
0044 protected:
0045 friend class SBCommandInterpreter;
0046 friend class SBDebugger;
0047 friend class SBBreakpoint;
0048 friend class SBBreakpointLocation;
0049 friend class SBBreakpointName;
0050 friend class SBStructuredData;
0051
0052 SBStringList(const lldb_private::StringList *lldb_strings);
0053
0054 void AppendList(const lldb_private::StringList &strings);
0055
0056 lldb_private::StringList *operator->();
0057
0058 const lldb_private::StringList *operator->() const;
0059
0060 const lldb_private::StringList &operator*() const;
0061
0062 private:
0063 std::unique_ptr<lldb_private::StringList> m_opaque_up;
0064 };
0065
0066 }
0067
0068 #endif