1//===-- SWIG Interface for SBTypeSummary---------------------------*- C++ -*-===//
2//
3//                     The LLVM Compiler Infrastructure
4//
5// This file is distributed under the University of Illinois Open Source
6// License. See LICENSE.TXT for details.
7//
8//===----------------------------------------------------------------------===//
9
10namespace lldb {
11
12    %feature("docstring",
13    "Represents a summary that can be associated to one or more types.
14    ") SBTypeSummary;
15
16    class SBTypeSummary
17    {
18    public:
19
20        SBTypeSummary();
21
22        static SBTypeSummary
23        CreateWithSummaryString (const char* data, uint32_t options = 0);
24
25        static SBTypeSummary
26        CreateWithFunctionName (const char* data, uint32_t options = 0);
27
28        static SBTypeSummary
29        CreateWithScriptCode (const char* data, uint32_t options = 0);
30
31        SBTypeSummary (const lldb::SBTypeSummary &rhs);
32
33        ~SBTypeSummary ();
34
35        bool
36        IsValid() const;
37
38        bool
39        IsEqualTo (lldb::SBTypeSummary &rhs);
40
41        bool
42        IsFunctionCode();
43
44        bool
45        IsFunctionName();
46
47        bool
48        IsSummaryString();
49
50        const char*
51        GetData ();
52
53        void
54        SetSummaryString (const char* data);
55
56        void
57        SetFunctionName (const char* data);
58
59        void
60        SetFunctionCode (const char* data);
61
62        uint32_t
63        GetOptions ();
64
65        void
66        SetOptions (uint32_t);
67
68        bool
69        GetDescription (lldb::SBStream &description,
70                        lldb::DescriptionLevel description_level);
71
72        bool
73        operator == (lldb::SBTypeSummary &rhs);
74
75        bool
76        operator != (lldb::SBTypeSummary &rhs);
77
78        %pythoncode %{
79            __swig_getmethods__["options"] = GetOptions
80            __swig_setmethods__["options"] = SetOptions
81            if _newclass: options = property(GetOptions, SetOptions)
82
83            __swig_getmethods__["is_summary_string"] = IsSummaryString
84            if _newclass: is_summary_string = property(IsSummaryString, None)
85
86            __swig_getmethods__["is_function_name"] = IsFunctionName
87            if _newclass: is_function_name = property(IsFunctionName, None)
88
89            __swig_getmethods__["is_function_name"] = IsFunctionCode
90            if _newclass: is_function_name = property(IsFunctionCode, None)
91
92            __swig_getmethods__["summary_data"] = GetData
93            if _newclass: summary_data = property(GetData, None)
94        %}
95
96    };
97
98} // namespace lldb
99
100