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::OptionValueEnumeration::Clear(), lldb_private::OptionValue::ConvertTypeToMask(), lldb_private::PropertyDefinition::default_cstr_value, lldb_private::PropertyDefinition::default_uint_value, lldb::eFormatInvalid, lldb::eLanguageTypeUnknown, lldb_private::PropertyDefinition::enum_values, lldb_private::OptionValue::eTypeArch, lldb_private::OptionValue::eTypeArgs, lldb_private::OptionValue::eTypeArray, lldb_private::OptionValue::eTypeBoolean, lldb_private::OptionValue::eTypeChar, lldb_private::OptionValue::eTypeDictionary, lldb_private::OptionValue::eTypeEnum, lldb_private::OptionValue::eTypeFileLineColumn, lldb_private::OptionValue::eTypeFileSpec, lldb_private::OptionValue::eTypeFileSpecList, lldb_private::OptionValue::eTypeFormat, lldb_private::OptionValue::eTypeFormatEntity, lldb_private::OptionValue::eTypeInvalid, lldb_private::OptionValue::eTypeLanguage, lldb_private::OptionValue::eTypePathMap, lldb_private::OptionValue::eTypeProperties, lldb_private::OptionValue::eTypeRegex, lldb_private::OptionValue::eTypeSInt64, lldb_private::OptionValue::eTypeString, lldb_private::OptionValue::eTypeUInt64, lldb_private::OptionValue::eTypeUUID, lldb_private::OptionValueEnumeration::GetCurrentValue(), lldb_private::Language::GetLanguageTypeFromString(), lldb_private::OptionValueString::GetOptions(), lldb_private::FileSystem::Instance(), m_value_sp, lldb_private::Flags::Reset(), lldb_private::FileSystem::Resolve(), lldb_private::OptionValueEnumeration::SetDefaultValue(), lldb_private::UUID::SetFromStringRef(), lldb_private::OptionArgParser::ToBoolean(), lldb_private::OptionArgParser::ToChar(), lldb_private::OptionArgParser::ToFormat(), 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.
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().
bool Property::DumpQualifiedName | ( | Stream & | strm | ) | const |
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::OptionValueProperties::GetValueForKey(), and lldb_private::ProcessProperties::SetOSPluginReportsAllThreads().
|
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().
|
protected |
Definition at line 70 of file Property.h.
Referenced by IsGlobal().
|
protected |
Definition at line 67 of file Property.h.
Referenced by Dump(), DumpDescription(), DumpQualifiedName(), and GetName().
|
protected |
Definition at line 69 of file Property.h.
Referenced by Dump(), DumpDescription(), DumpQualifiedName(), GetValue(), IsValid(), Property(), SetOptionValue(), and SetValueChangedCallback().