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 * AddToHistory:   true
22 
23 ") SBCommandInterpreterRunOptions;
24 class SBCommandInterpreterRunOptions
25 {
26 friend class SBDebugger;
27 public:
28     SBCommandInterpreterRunOptions();
29     ~SBCommandInterpreterRunOptions();
30 
31     bool
32     GetStopOnContinue () const;
33 
34     void
35     SetStopOnContinue (bool);
36 
37     bool
38     GetStopOnError () const;
39 
40     void
41     SetStopOnError (bool);
42 
43     bool
44     GetStopOnCrash () const;
45 
46     void
47     SetStopOnCrash (bool);
48 
49     bool
50     GetEchoCommands () const;
51 
52     void
53     SetEchoCommands (bool);
54 
55     bool
56     GetPrintResults () const;
57 
58     void
59     SetPrintResults (bool);
60 
61     bool
62     GetAddToHistory () const;
63 
64     void
65     SetAddToHistory (bool);
66 private:
67     lldb_private::CommandInterpreterRunOptions *
68     get () const;
69 
70     lldb_private::CommandInterpreterRunOptions &
71     ref () const;
72 
73     // This is set in the constructor and will always be valid.
74     mutable std::unique_ptr<lldb_private::CommandInterpreterRunOptions> m_opaque_up;
75 };
76 
77 } // namespace lldb
78