LLDB mainline
|
#include <Property.h>
Public Member Functions | |
Property (const PropertyDefinition &definition) | |
Property (llvm::StringRef name, llvm::StringRef desc, bool is_global, const lldb::OptionValueSP &value_sp) | |
llvm::StringRef | GetName () const |
llvm::StringRef | GetDescription () const |
const lldb::OptionValueSP & | GetValue () const |
void | SetOptionValue (const lldb::OptionValueSP &value_sp) |
bool | IsValid () const |
bool | IsGlobal () const |
void | Dump (const ExecutionContext *exe_ctx, Stream &strm, uint32_t dump_mask) const |
bool | DumpQualifiedName (Stream &strm) const |
void | DumpDescription (CommandInterpreter &interpreter, Stream &strm, uint32_t output_width, bool display_qualified_name) const |
void | SetValueChangedCallback (std::function< void()> callback) |
Protected Attributes | |
std::string | m_name |
std::string | m_description |
lldb::OptionValueSP | m_value_sp |
bool | m_is_global |
Definition at line 35 of file Property.h.
Property::Property | ( | const PropertyDefinition & | definition | ) |
Definition at line 22 of file Property.cpp.
References lldb_private::OptionValue::ConvertTypeToMask(), lldb_private::PropertyDefinition::default_uint_value, lldb_private::PropertyDefinition::enum_values, lldb_private::OptionValue::eTypeDictionary, lldb_private::OptionValue::eTypeEnum, m_description, m_is_global, m_name, m_value_sp, and lldb_private::PropertyDefinition::type.
Property::Property | ( | llvm::StringRef | name, |
llvm::StringRef | desc, | ||
bool | is_global, | ||
const lldb::OptionValueSP & | value_sp ) |
Definition at line 232 of file Property.cpp.
References m_description, m_is_global, m_name, and m_value_sp.
void Property::Dump | ( | const ExecutionContext * | exe_ctx, |
Stream & | strm, | ||
uint32_t | dump_mask ) const |
Definition at line 247 of file Property.cpp.
References DumpQualifiedName(), lldb_private::OptionValue::eDumpOptionCommand, lldb_private::OptionValue::eDumpOptionDescription, lldb_private::OptionValue::eDumpOptionName, lldb_private::Stream::EOL(), GetDescription(), m_name, m_value_sp, and lldb_private::Stream::PutChar().
void Property::DumpDescription | ( | CommandInterpreter & | interpreter, |
Stream & | strm, | ||
uint32_t | output_width, | ||
bool | display_qualified_name ) const |
Definition at line 275 of file Property.cpp.
References lldb_private::OptionValueProperties::DumpAllDescriptions(), DumpQualifiedName(), lldb_private::Stream::EOL(), lldb_private::StreamString::GetData(), GetDescription(), lldb_private::StreamString::GetString(), m_name, m_value_sp, lldb_private::CommandInterpreter::OutputFormattedHelpText(), and lldb_private::Stream::Printf().
Definition at line 237 of file Property.cpp.
References m_name, m_value_sp, and lldb_private::Stream::PutChar().
Referenced by Dump(), and DumpDescription().
|
inline |
Definition at line 43 of file Property.h.
References m_description.
Referenced by Dump(), and DumpDescription().
|
inline |
Definition at line 42 of file Property.h.
References m_name.
|
inline |
Definition at line 45 of file Property.h.
References m_value_sp.
Referenced by lldb_private::TargetProperties::GetExperimentalPropertyValue(), lldb_private::ProcessProperties::GetOSPluginReportsAllThreads(), lldb_private::OptionValueProperties::GetPropertyValueAtIndex(), lldb_private::TargetProperties::GetUseDIL(), lldb_private::OptionValueProperties::GetValueForKey(), lldb_private::ProcessProperties::SetOSPluginReportsAllThreads(), and lldb_private::TargetProperties::SetUseDIL().
|
inline |
Definition at line 53 of file Property.h.
References m_is_global.
|
inline |
Definition at line 51 of file Property.h.
References m_value_sp.
Referenced by lldb_private::OptionValueProperties::Initialize().
|
inline |
Definition at line 47 of file Property.h.
References m_value_sp.
void Property::SetValueChangedCallback | ( | std::function< void()> | callback | ) |
Definition at line 306 of file Property.cpp.
References m_value_sp.
|
protected |
Definition at line 68 of file Property.h.
Referenced by GetDescription(), Property(), and Property().
|
protected |
Definition at line 70 of file Property.h.
Referenced by IsGlobal(), Property(), and Property().
|
protected |
Definition at line 67 of file Property.h.
Referenced by Dump(), DumpDescription(), DumpQualifiedName(), GetName(), Property(), and Property().
|
protected |
Definition at line 69 of file Property.h.
Referenced by Dump(), DumpDescription(), DumpQualifiedName(), GetValue(), IsValid(), Property(), Property(), SetOptionValue(), and SetValueChangedCallback().