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]
Collaboration diagram for lldb_private::OptionGroupFormat:
Collaboration graph
[legend]

Public Member Functions

 OptionGroupFormat (lldb::Format default_format, uint64_t default_byte_size=UINT64_MAX, uint64_t default_count=UINT64_MAX)
 
 ~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 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
 

Detailed Description

Definition at line 21 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 
)

Definition at line 19 of file OptionGroupFormat.cpp.

◆ ~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

Definition at line 50 of file OptionGroupFormat.h.

References m_byte_size.

Referenced by OptionGroupReadMemory::FinalizeSettings().

◆ GetByteSizeValue() [2/2]

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

Definition at line 52 of file OptionGroupFormat.h.

References m_byte_size.

◆ GetCountValue() [1/2]

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

Definition at line 54 of file OptionGroupFormat.h.

References m_count.

Referenced by OptionGroupReadMemory::FinalizeSettings().

◆ GetCountValue() [2/2]

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

Definition at line 56 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

Definition at line 46 of file OptionGroupFormat.h.

References m_format.

◆ GetFormatValue() [2/2]

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

Definition at line 48 of file OptionGroupFormat.h.

References m_format.

◆ HasGDBFormat()

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

Definition at line 58 of file OptionGroupFormat.h.

References m_has_gdb_format.

◆ 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 75 of file OptionGroupFormat.h.

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

◆ m_prev_gdb_format

char lldb_private::OptionGroupFormat::m_prev_gdb_format
protected

Definition at line 73 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 74 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

Definition at line 26 of file OptionGroupFormat.h.

◆ OPTION_GROUP_FORMAT

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

Definition at line 23 of file OptionGroupFormat.h.

◆ OPTION_GROUP_GDB_FMT

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

Definition at line 24 of file OptionGroupFormat.h.

◆ OPTION_GROUP_SIZE

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

Definition at line 25 of file OptionGroupFormat.h.


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