LLDB  mainline
Public Member Functions | Protected Attributes | List of all members
lldb_private::Property Class Reference

#include <Property.h>

Collaboration diagram for lldb_private::Property:
Collaboration graph
[legend]

Public Member Functions

 Property (const PropertyDefinition &definition)
 
 Property (ConstString name, ConstString 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

ConstString m_name
 
ConstString m_description
 
lldb::OptionValueSP m_value_sp
 
bool m_is_global
 

Detailed Description

Definition at line 36 of file Property.h.

Constructor & Destructor Documentation

◆ Property() [1/2]

Property::Property ( const PropertyDefinition definition)

Definition at line 23 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(), lldb_private::StringConvert::ToSInt64(), lldb_private::StringConvert::ToUInt64(), and lldb_private::PropertyDefinition::type.

◆ Property() [2/2]

Property::Property ( ConstString  name,
ConstString  desc,
bool  is_global,
const lldb::OptionValueSP &  value_sp 
)

Definition at line 227 of file Property.cpp.

Member Function Documentation

◆ Dump()

void Property::Dump ( const ExecutionContext exe_ctx,
Stream strm,
uint32_t  dump_mask 
) const

◆ DumpDescription()

void Property::DumpDescription ( CommandInterpreter interpreter,
Stream strm,
uint32_t  output_width,
bool  display_qualified_name 
) const

◆ DumpQualifiedName()

bool Property::DumpQualifiedName ( Stream strm) const

Definition at line 232 of file Property.cpp.

References m_name, m_value_sp, and lldb_private::Stream::PutChar().

Referenced by Dump(), and DumpDescription().

◆ GetDescription()

llvm::StringRef lldb_private::Property::GetDescription ( ) const
inline

Definition at line 44 of file Property.h.

References lldb_private::ConstString::GetStringRef(), and m_description.

Referenced by Dump(), and DumpDescription().

◆ GetName()

llvm::StringRef lldb_private::Property::GetName ( ) const
inline

◆ GetValue()

const lldb::OptionValueSP& lldb_private::Property::GetValue ( ) const
inline

◆ IsGlobal()

bool lldb_private::Property::IsGlobal ( ) const
inline

Definition at line 56 of file Property.h.

References m_is_global.

◆ IsValid()

bool lldb_private::Property::IsValid ( ) const
inline

Definition at line 54 of file Property.h.

References m_value_sp.

Referenced by lldb_private::OptionValueProperties::Initialize().

◆ SetOptionValue()

void lldb_private::Property::SetOptionValue ( const lldb::OptionValueSP &  value_sp)
inline

Definition at line 50 of file Property.h.

References m_value_sp.

◆ SetValueChangedCallback()

void Property::SetValueChangedCallback ( std::function< void()>  callback)

Definition at line 301 of file Property.cpp.

References m_value_sp.

Member Data Documentation

◆ m_description

ConstString lldb_private::Property::m_description
protected

Definition at line 71 of file Property.h.

Referenced by GetDescription().

◆ m_is_global

bool lldb_private::Property::m_is_global
protected

Definition at line 73 of file Property.h.

Referenced by IsGlobal().

◆ m_name

ConstString lldb_private::Property::m_name
protected

Definition at line 70 of file Property.h.

Referenced by Dump(), DumpDescription(), DumpQualifiedName(), and GetName().

◆ m_value_sp

lldb::OptionValueSP lldb_private::Property::m_value_sp
protected

The documentation for this class was generated from the following files: