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)
33 ~OptionValuePathMappings()
37 //---------------------------------------------------------------------
38 // Virtual subclass pure virtual overrides
39 //---------------------------------------------------------------------
41 virtual OptionValue::Type
48 DumpValue (const ExecutionContext *exe_ctx, Stream &strm, uint32_t dump_mask);
51 SetValueFromCString (const char *value,
52 VarSetOperationType op = eVarSetOperationAssign);
57 m_path_mappings.Clear(m_notify_changes);
58 m_value_was_set = false;
62 virtual lldb::OptionValueSP
66 IsAggregateValue () const
71 //---------------------------------------------------------------------
72 // Subclass specific functions
73 //---------------------------------------------------------------------
78 return m_path_mappings;
81 const PathMappingList &
82 GetCurrentValue() const
84 return m_path_mappings;
88 PathMappingList m_path_mappings;
89 bool m_notify_changes;
92 } // namespace lldb_private
94 #endif // liblldb_OptionValuePathMappings_h_