1 //===-- SWIG Interface for SBCommandInterpreter -----------------*- C++ -*-===//
2 //
3 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4 // See https://llvm.org/LICENSE.txt for license information.
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6 //
7 //===----------------------------------------------------------------------===//
8 
9 namespace lldb {
10 
11 %feature("docstring",
12 "SBCommandInterpreterRunOptions controls how the RunCommandInterpreter runs the code it is fed.
13 
14 A default SBCommandInterpreterRunOptions object has:
15 
16 * StopOnContinue: false
17 * StopOnError:    false
18 * StopOnCrash:    false
19 * EchoCommands:   true
20 * PrintResults:   true
21 * PrintErrors:    true
22 * AddToHistory:   true
23 
24 ") SBCommandInterpreterRunOptions;
25 class SBCommandInterpreterRunOptions
26 {
27 friend class SBDebugger;
28 public:
29     SBCommandInterpreterRunOptions();
30     ~SBCommandInterpreterRunOptions();
31 
32     bool
33     GetStopOnContinue () const;
34 
35     void
36     SetStopOnContinue (bool);
37 
38     bool
39     GetStopOnError () const;
40 
41     void
42     SetStopOnError (bool);
43 
44     bool
45     GetStopOnCrash () const;
46 
47     void
48     SetStopOnCrash (bool);
49 
50     bool
51     GetEchoCommands () const;
52 
53     void
54     SetEchoCommands (bool);
55 
56     bool
57     GetPrintResults () const;
58 
59     void
60     SetPrintResults (bool);
61 
62     bool
63     GetPrintErrors () const;
64 
65     void
66     SetPrintErrors (bool);
67 
68     bool
69     GetAddToHistory () const;
70 
71     void
72     SetAddToHistory (bool);
73 private:
74     lldb_private::CommandInterpreterRunOptions *
75     get () const;
76 
77     lldb_private::CommandInterpreterRunOptions &
78     ref () const;
79 
80     // This is set in the constructor and will always be valid.
81     mutable std::unique_ptr<lldb_private::CommandInterpreterRunOptions> m_opaque_up;
82 };
83 
84 } // namespace lldb
85