1 //====-- UserSettingsController.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_UserSettingsController_h_
11 #define liblldb_UserSettingsController_h_
19 // Other libraries and framework includes
22 #include "lldb/lldb-private.h"
23 #include "lldb/Core/ConstString.h"
24 #include "lldb/Core/StringList.h"
25 #include "lldb/Core/Stream.h"
26 #include "lldb/Core/StreamString.h"
27 #include "lldb/Host/Mutex.h"
28 #include "lldb/Interpreter/OptionValue.h"
30 namespace lldb_private {
40 Properties (const lldb::OptionValuePropertiesSP &collection_sp) :
41 m_collection_sp (collection_sp)
50 virtual lldb::OptionValuePropertiesSP
51 GetValueProperties () const
53 // This function is virtual in case subclasses want to lazily
54 // implement creating the properties.
55 return m_collection_sp;
58 virtual lldb::OptionValueSP
59 GetPropertyValue (const ExecutionContext *exe_ctx,
60 const char *property_path,
65 SetPropertyValue (const ExecutionContext *exe_ctx,
66 VarSetOperationType op,
67 const char *property_path,
71 DumpPropertyValue (const ExecutionContext *exe_ctx,
73 const char *property_path,
77 DumpAllPropertyValues (const ExecutionContext *exe_ctx,
82 DumpAllDescriptions (CommandInterpreter &interpreter,
86 Apropos (const char *keyword,
87 std::vector<const Property *> &matching_properties) const;
89 lldb::OptionValuePropertiesSP
90 GetSubProperty (const ExecutionContext *exe_ctx,
91 const ConstString &name);
93 lldb::OptionValuePropertiesSP m_collection_sp;
96 } // namespace lldb_private
98 #endif // liblldb_UserSettingsController_h_