1 //===-- OptionValueFileSpecList.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_OptionValueFileSpecList_h_
11 #define liblldb_OptionValueFileSpecList_h_
15 // Other libraries and framework includes
17 #include "lldb/Core/FileSpecList.h"
18 #include "lldb/Interpreter/OptionValue.h"
20 namespace lldb_private {
22 class OptionValueFileSpecList : public OptionValue
25 OptionValueFileSpecList () :
31 OptionValueFileSpecList (const FileSpecList ¤t_value) :
33 m_current_value (current_value)
37 ~OptionValueFileSpecList() override
41 //---------------------------------------------------------------------
42 // Virtual subclass pure virtual overrides
43 //---------------------------------------------------------------------
46 GetType() const override
48 return eTypeFileSpecList;
52 DumpValue(const ExecutionContext *exe_ctx, Stream &strm, uint32_t dump_mask) override;
55 SetValueFromString(llvm::StringRef value,
56 VarSetOperationType op = eVarSetOperationAssign) override;
61 m_current_value.Clear();
62 m_value_was_set = false;
67 DeepCopy() const override;
70 IsAggregateValue() const override
75 //---------------------------------------------------------------------
76 // Subclass specific functions
77 //---------------------------------------------------------------------
82 return m_current_value;
86 GetCurrentValue() const
88 return m_current_value;
92 SetCurrentValue (const FileSpecList &value)
94 m_current_value = value;
98 FileSpecList m_current_value;
101 } // namespace lldb_private
103 #endif // liblldb_OptionValueFileSpecList_h_