1 //===-- OptionValuePathMappings.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_OptionValuePathMappings_h_
11 #define liblldb_OptionValuePathMappings_h_
15 // Other libraries and framework includes
17 #include "lldb/Target/PathMappingList.h"
18 #include "lldb/Interpreter/OptionValue.h"
20 namespace lldb_private {
22 class OptionValuePathMappings : public OptionValue
25 OptionValuePathMappings (bool notify_changes) :
28 m_notify_changes (notify_changes)
32 ~OptionValuePathMappings() override
36 //---------------------------------------------------------------------
37 // Virtual subclass pure virtual overrides
38 //---------------------------------------------------------------------
41 GetType() const override
47 DumpValue(const ExecutionContext *exe_ctx, Stream &strm, uint32_t dump_mask) override;
50 SetValueFromString(llvm::StringRef value,
51 VarSetOperationType op = eVarSetOperationAssign) override;
56 m_path_mappings.Clear(m_notify_changes);
57 m_value_was_set = false;
62 DeepCopy() const override;
65 IsAggregateValue() const override
70 //---------------------------------------------------------------------
71 // Subclass specific functions
72 //---------------------------------------------------------------------
77 return m_path_mappings;
80 const PathMappingList &
81 GetCurrentValue() const
83 return m_path_mappings;
87 PathMappingList m_path_mappings;
88 bool m_notify_changes;
91 } // namespace lldb_private
93 #endif // liblldb_OptionValuePathMappings_h_