1 //===-- OptionGroupFile.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_OptionGroupFile_h_
11 #define liblldb_OptionGroupFile_h_
15 // Other libraries and framework includes
17 #include "lldb/Interpreter/Options.h"
18 #include "lldb/Interpreter/OptionValueFileSpec.h"
19 #include "lldb/Interpreter/OptionValueFileSpecList.h"
21 namespace lldb_private {
23 //-------------------------------------------------------------------------
25 //-------------------------------------------------------------------------
27 class OptionGroupFile : public OptionGroup
31 OptionGroupFile (uint32_t usage_mask,
33 const char *long_option,
35 uint32_t completion_type,
36 lldb::CommandArgumentType argument_type,
37 const char *usage_text);
49 virtual const OptionDefinition*
52 return &m_option_definition;
56 SetOptionValue (CommandInterpreter &interpreter,
58 const char *option_value);
61 OptionParsingStarting (CommandInterpreter &interpreter);
69 const OptionValueFileSpec &
70 GetOptionValue () const
76 OptionValueFileSpec m_file;
77 OptionDefinition m_option_definition;
81 //-------------------------------------------------------------------------
82 // OptionGroupFileList
83 //-------------------------------------------------------------------------
85 class OptionGroupFileList : public OptionGroup
89 OptionGroupFileList (uint32_t usage_mask,
91 const char *long_option,
93 uint32_t completion_type,
94 lldb::CommandArgumentType argument_type,
95 const char *usage_text);
98 ~OptionGroupFileList ();
107 virtual const OptionDefinition*
110 return &m_option_definition;
114 SetOptionValue (CommandInterpreter &interpreter,
116 const char *option_value);
119 OptionParsingStarting (CommandInterpreter &interpreter);
122 OptionValueFileSpecList &
128 const OptionValueFileSpecList &
129 GetOptionValue () const
135 OptionValueFileSpecList m_file_list;
136 OptionDefinition m_option_definition;
140 } // namespace lldb_private
142 #endif // liblldb_OptionGroupFile_h_