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

#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::OptionValueSPGetValue () 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
 

Detailed Description

Definition at line 35 of file Property.h.

Constructor & Destructor Documentation

◆ Property() [1/2]

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() [2/2]

Property::Property ( llvm::StringRef  name,
llvm::StringRef  desc,
bool  is_global,
const lldb::OptionValueSP value_sp 
)

Definition at line 232 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 237 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 43 of file Property.h.

References m_description.

Referenced by Dump(), and DumpDescription().

◆ GetName()

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

Definition at line 42 of file Property.h.

References m_name.

◆ GetValue()

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

◆ IsGlobal()

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

Definition at line 53 of file Property.h.

References m_is_global.

◆ IsValid()

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

Definition at line 51 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 47 of file Property.h.

References m_value_sp.

◆ SetValueChangedCallback()

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

Definition at line 306 of file Property.cpp.

References m_value_sp.

Member Data Documentation

◆ m_description

std::string lldb_private::Property::m_description
protected

Definition at line 68 of file Property.h.

Referenced by GetDescription().

◆ m_is_global

bool lldb_private::Property::m_is_global
protected

Definition at line 70 of file Property.h.

Referenced by IsGlobal().

◆ m_name

std::string lldb_private::Property::m_name
protected

Definition at line 67 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: