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

#include <OptionGroupFormat.h>

Inheritance diagram for lldb_private::OptionGroupFormat:
Inheritance graph
[legend]

Public Member Functions

 OptionGroupFormat (lldb::Format default_format, uint64_t default_byte_size=UINT64_MAX, uint64_t default_count=UINT64_MAX, OptionGroupFormatUsageTextVector usage_text_vector={})
 
 ~OptionGroupFormat () override=default
 
llvm::ArrayRef< OptionDefinitionGetDefinitions () override
 
Status SetOptionValue (uint32_t option_idx, llvm::StringRef option_value, ExecutionContext *execution_context) override
 
void OptionParsingStarting (ExecutionContext *execution_context) override
 
lldb::Format GetFormat () const
 
OptionValueFormatGetFormatValue ()
 
const OptionValueFormatGetFormatValue () const
 
OptionValueUInt64GetByteSizeValue ()
 
const OptionValueUInt64GetByteSizeValue () const
 
OptionValueUInt64GetCountValue ()
 
const OptionValueUInt64GetCountValue () const
 
bool HasGDBFormat () const
 
bool AnyOptionWasSet () const
 
- Public Member Functions inherited from lldb_private::OptionGroup
 OptionGroup ()=default
 
virtual ~OptionGroup ()=default
 
virtual llvm::ArrayRef< OptionDefinitionGetDefinitions ()=0
 
virtual Status SetOptionValue (uint32_t option_idx, llvm::StringRef option_value, ExecutionContext *execution_context)=0
 
virtual void OptionParsingStarting (ExecutionContext *execution_context)=0
 
virtual Status OptionParsingFinished (ExecutionContext *execution_context)
 

Static Public Attributes

static const uint32_t OPTION_GROUP_FORMAT = LLDB_OPT_SET_1
 
static const uint32_t OPTION_GROUP_GDB_FMT = LLDB_OPT_SET_2
 
static const uint32_t OPTION_GROUP_SIZE = LLDB_OPT_SET_3
 
static const uint32_t OPTION_GROUP_COUNT = LLDB_OPT_SET_4
 

Protected Member Functions

bool ParserGDBFormatLetter (ExecutionContext *execution_context, char format_letter, lldb::Format &format, uint32_t &byte_size)
 

Protected Attributes

OptionValueFormat m_format
 
OptionValueUInt64 m_byte_size
 
OptionValueUInt64 m_count
 
char m_prev_gdb_format
 
char m_prev_gdb_size
 
bool m_has_gdb_format
 
OptionDefinition m_option_definitions [4]
 

Detailed Description

Definition at line 24 of file OptionGroupFormat.h.

Constructor & Destructor Documentation

◆ OptionGroupFormat()

OptionGroupFormat::OptionGroupFormat ( lldb::Format  default_format,
uint64_t  default_byte_size = UINT64_MAX,
uint64_t  default_count = UINT64_MAX,
OptionGroupFormatUsageTextVector  usage_text_vector = {} 
)

◆ ~OptionGroupFormat()

lldb_private::OptionGroupFormat::~OptionGroupFormat ( )
overridedefault

Member Function Documentation

◆ AnyOptionWasSet()

bool lldb_private::OptionGroupFormat::AnyOptionWasSet ( ) const
inline

◆ GetByteSizeValue() [1/2]

OptionValueUInt64 & lldb_private::OptionGroupFormat::GetByteSizeValue ( )
inline

◆ GetByteSizeValue() [2/2]

const OptionValueUInt64 & lldb_private::OptionGroupFormat::GetByteSizeValue ( ) const
inline

Definition at line 58 of file OptionGroupFormat.h.

References m_byte_size.

◆ GetCountValue() [1/2]

OptionValueUInt64 & lldb_private::OptionGroupFormat::GetCountValue ( )
inline

◆ GetCountValue() [2/2]

const OptionValueUInt64 & lldb_private::OptionGroupFormat::GetCountValue ( ) const
inline

Definition at line 62 of file OptionGroupFormat.h.

References m_count.

◆ GetDefinitions()

llvm::ArrayRef< OptionDefinition > OptionGroupFormat::GetDefinitions ( )
overridevirtual

◆ GetFormat()

lldb::Format lldb_private::OptionGroupFormat::GetFormat ( ) const
inline

◆ GetFormatValue() [1/2]

OptionValueFormat & lldb_private::OptionGroupFormat::GetFormatValue ( )
inline

◆ GetFormatValue() [2/2]

const OptionValueFormat & lldb_private::OptionGroupFormat::GetFormatValue ( ) const
inline

Definition at line 54 of file OptionGroupFormat.h.

References m_format.

◆ HasGDBFormat()

bool lldb_private::OptionGroupFormat::HasGDBFormat ( ) const
inline

Definition at line 64 of file OptionGroupFormat.h.

References m_has_gdb_format.

Referenced by CommandObjectMemoryRead::DoExecute().

◆ OptionParsingStarting()

void OptionGroupFormat::OptionParsingStarting ( ExecutionContext execution_context)
overridevirtual

◆ ParserGDBFormatLetter()

bool OptionGroupFormat::ParserGDBFormatLetter ( ExecutionContext execution_context,
char  format_letter,
lldb::Format format,
uint32_t &  byte_size 
)
protected

◆ SetOptionValue()

Status OptionGroupFormat::SetOptionValue ( uint32_t  option_idx,
llvm::StringRef  option_value,
ExecutionContext execution_context 
)
overridevirtual

Member Data Documentation

◆ m_byte_size

OptionValueUInt64 lldb_private::OptionGroupFormat::m_byte_size
protected

◆ m_count

OptionValueUInt64 lldb_private::OptionGroupFormat::m_count
protected

◆ m_format

OptionValueFormat lldb_private::OptionGroupFormat::m_format
protected

◆ m_has_gdb_format

bool lldb_private::OptionGroupFormat::m_has_gdb_format
protected

Definition at line 81 of file OptionGroupFormat.h.

Referenced by HasGDBFormat(), OptionParsingStarting(), and ParserGDBFormatLetter().

◆ m_option_definitions

OptionDefinition lldb_private::OptionGroupFormat::m_option_definitions[4]
protected

Definition at line 82 of file OptionGroupFormat.h.

Referenced by GetDefinitions(), OptionGroupFormat(), and SetOptionValue().

◆ m_prev_gdb_format

char lldb_private::OptionGroupFormat::m_prev_gdb_format
protected

Definition at line 79 of file OptionGroupFormat.h.

Referenced by ParserGDBFormatLetter(), and SetOptionValue().

◆ m_prev_gdb_size

char lldb_private::OptionGroupFormat::m_prev_gdb_size
protected

Definition at line 80 of file OptionGroupFormat.h.

Referenced by ParserGDBFormatLetter(), and SetOptionValue().

◆ OPTION_GROUP_COUNT

const uint32_t lldb_private::OptionGroupFormat::OPTION_GROUP_COUNT = LLDB_OPT_SET_4
static

◆ OPTION_GROUP_FORMAT

const uint32_t lldb_private::OptionGroupFormat::OPTION_GROUP_FORMAT = LLDB_OPT_SET_1
static

◆ OPTION_GROUP_GDB_FMT

const uint32_t lldb_private::OptionGroupFormat::OPTION_GROUP_GDB_FMT = LLDB_OPT_SET_2
static

◆ OPTION_GROUP_SIZE

const uint32_t lldb_private::OptionGroupFormat::OPTION_GROUP_SIZE = LLDB_OPT_SET_3
static

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