1 //===-- OptionGroupOutputFile.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_OptionGroupOutputFile_h_
11 #define liblldb_OptionGroupOutputFile_h_
15 // Other libraries and framework includes
17 #include "lldb/Interpreter/Options.h"
18 #include "lldb/Interpreter/OptionValueBoolean.h"
19 #include "lldb/Interpreter/OptionValueFileSpec.h"
21 namespace lldb_private {
22 //-------------------------------------------------------------------------
23 // OptionGroupOutputFile
24 //-------------------------------------------------------------------------
26 class OptionGroupOutputFile : public OptionGroup
29 OptionGroupOutputFile ();
31 ~OptionGroupOutputFile() override;
34 GetNumDefinitions() override;
36 const OptionDefinition*
37 GetDefinitions() override;
40 SetOptionValue(CommandInterpreter &interpreter,
42 const char *option_value) override;
45 OptionParsingStarting(CommandInterpreter &interpreter) override;
47 const OptionValueFileSpec &
53 const OptionValueBoolean &
60 AnyOptionWasSet () const
62 return m_file.OptionWasSet() || m_append.OptionWasSet();
66 OptionValueFileSpec m_file;
67 OptionValueBoolean m_append;
70 } // namespace lldb_private
72 #endif // liblldb_OptionGroupOutputFile_h_