1 //===-- OptionGroupBoolean.h ------------------------------------*- C++ -*-===//
3 // The LLVM Compiler Infrastructure
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
8 //===----------------------------------------------------------------------===//
10 #ifndef liblldb_OptionGroupBoolean_h_
11 #define liblldb_OptionGroupBoolean_h_
15 // Other libraries and framework includes
17 #include "lldb/Interpreter/Options.h"
18 #include "lldb/Interpreter/OptionValueBoolean.h"
20 namespace lldb_private {
21 //-------------------------------------------------------------------------
23 //-------------------------------------------------------------------------
25 class OptionGroupBoolean : public OptionGroup
28 // When 'no_argument_toggle_default' is true, then setting the option
29 // value does NOT require an argument, it sets the boolean value to the
30 // inverse of the default value
31 OptionGroupBoolean (uint32_t usage_mask,
33 const char *long_option,
35 const char *usage_text,
37 bool no_argument_toggle_default);
40 ~OptionGroupBoolean ();
49 virtual const OptionDefinition*
52 return &m_option_definition;
56 SetOptionValue (CommandInterpreter &interpreter,
58 const char *option_value);
61 OptionParsingStarting (CommandInterpreter &interpreter);
69 const OptionValueBoolean &
70 GetOptionValue () const
76 OptionValueBoolean m_value;
77 OptionDefinition m_option_definition;
81 } // namespace lldb_private
83 #endif // liblldb_OptionGroupBoolean_h_