aboutsummaryrefslogtreecommitdiff
path: root/scripts/interface/SBTypeSummary.i
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/interface/SBTypeSummary.i')
-rw-r--r--scripts/interface/SBTypeSummary.i123
1 files changed, 123 insertions, 0 deletions
diff --git a/scripts/interface/SBTypeSummary.i b/scripts/interface/SBTypeSummary.i
new file mode 100644
index 000000000000..924256111aee
--- /dev/null
+++ b/scripts/interface/SBTypeSummary.i
@@ -0,0 +1,123 @@
+//===-- SWIG Interface for SBTypeSummary---------------------------*- C++ -*-===//
+//
+// The LLVM Compiler Infrastructure
+//
+// This file is distributed under the University of Illinois Open Source
+// License. See LICENSE.TXT for details.
+//
+//===----------------------------------------------------------------------===//
+
+namespace lldb {
+ class SBTypeSummaryOptions
+ {
+ public:
+ SBTypeSummaryOptions();
+
+ SBTypeSummaryOptions (const lldb::SBTypeSummaryOptions &rhs);
+
+ ~SBTypeSummaryOptions ();
+
+ bool
+ IsValid ();
+
+ lldb::LanguageType
+ GetLanguage ();
+
+ lldb::TypeSummaryCapping
+ GetCapping ();
+
+ void
+ SetLanguage (lldb::LanguageType);
+
+ void
+ SetCapping (lldb::TypeSummaryCapping);
+ };
+
+ %feature("docstring",
+ "Represents a summary that can be associated to one or more types.
+ ") SBTypeSummary;
+
+ class SBTypeSummary
+ {
+ public:
+
+ SBTypeSummary();
+
+ static SBTypeSummary
+ CreateWithSummaryString (const char* data, uint32_t options = 0);
+
+ static SBTypeSummary
+ CreateWithFunctionName (const char* data, uint32_t options = 0);
+
+ static SBTypeSummary
+ CreateWithScriptCode (const char* data, uint32_t options = 0);
+
+ SBTypeSummary (const lldb::SBTypeSummary &rhs);
+
+ ~SBTypeSummary ();
+
+ bool
+ IsValid() const;
+
+ bool
+ IsEqualTo (lldb::SBTypeSummary &rhs);
+
+ bool
+ IsFunctionCode();
+
+ bool
+ IsFunctionName();
+
+ bool
+ IsSummaryString();
+
+ const char*
+ GetData ();
+
+ void
+ SetSummaryString (const char* data);
+
+ void
+ SetFunctionName (const char* data);
+
+ void
+ SetFunctionCode (const char* data);
+
+ uint32_t
+ GetOptions ();
+
+ void
+ SetOptions (uint32_t);
+
+ bool
+ GetDescription (lldb::SBStream &description,
+ lldb::DescriptionLevel description_level);
+
+ bool
+ operator == (lldb::SBTypeSummary &rhs);
+
+ bool
+ operator != (lldb::SBTypeSummary &rhs);
+
+ %pythoncode %{
+ __swig_getmethods__["options"] = GetOptions
+ __swig_setmethods__["options"] = SetOptions
+ if _newclass: options = property(GetOptions, SetOptions)
+
+ __swig_getmethods__["is_summary_string"] = IsSummaryString
+ if _newclass: is_summary_string = property(IsSummaryString, None)
+
+ __swig_getmethods__["is_function_name"] = IsFunctionName
+ if _newclass: is_function_name = property(IsFunctionName, None)
+
+ __swig_getmethods__["is_function_name"] = IsFunctionCode
+ if _newclass: is_function_name = property(IsFunctionCode, None)
+
+ __swig_getmethods__["summary_data"] = GetData
+ if _newclass: summary_data = property(GetData, None)
+ %}
+
+ };
+
+} // namespace lldb
+