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

#include <OptionGroupPythonClassWithDict.h>

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

Public Types

enum  OptionKind {
  eScriptClass = 1 << 0 , eDictKey = 1 << 1 , eDictValue = 1 << 2 , ePythonFunction = 1 << 3 ,
  eAllOptions = (eScriptClass | eDictKey | eDictValue | ePythonFunction)
}
 

Public Member Functions

 OptionGroupPythonClassWithDict (const char *class_use, bool is_class=true, int class_option='C', int key_option='k', int value_option='v', uint16_t required_options=eScriptClass|ePythonFunction)
 
 ~OptionGroupPythonClassWithDict () 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
 
Status OptionParsingFinished (ExecutionContext *execution_context) override
 
const StructuredData::DictionarySP GetStructuredData ()
 
const std::string & GetName ()
 
- 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)
 

Protected Attributes

std::string m_name
 
std::string m_current_key
 
StructuredData::DictionarySP m_dict_sp
 
std::string m_class_usage_text
 
std::string m_key_usage_text
 
std::string m_value_usage_text
 
bool m_is_class
 
OptionDefinition m_option_definition [4]
 
Flags m_required_options
 

Detailed Description

Definition at line 25 of file OptionGroupPythonClassWithDict.h.

Member Enumeration Documentation

◆ OptionKind

Enumerator
eScriptClass 
eDictKey 
eDictValue 
ePythonFunction 
eAllOptions 

Definition at line 27 of file OptionGroupPythonClassWithDict.h.

Constructor & Destructor Documentation

◆ OptionGroupPythonClassWithDict()

OptionGroupPythonClassWithDict::OptionGroupPythonClassWithDict ( const char *  class_use,
bool  is_class = true,
int  class_option = 'C',
int  key_option = 'k',
int  value_option = 'v',
uint16_t  required_options = eScriptClass | ePythonFunction 
)

◆ ~OptionGroupPythonClassWithDict()

lldb_private::OptionGroupPythonClassWithDict::~OptionGroupPythonClassWithDict ( )
overridedefault

Member Function Documentation

◆ GetDefinitions()

llvm::ArrayRef< OptionDefinition > lldb_private::OptionGroupPythonClassWithDict::GetDefinitions ( )
inlineoverridevirtual

Implements lldb_private::OptionGroup.

Definition at line 43 of file OptionGroupPythonClassWithDict.h.

References m_option_definition.

◆ GetName()

const std::string & lldb_private::OptionGroupPythonClassWithDict::GetName ( )
inline

◆ GetStructuredData()

const StructuredData::DictionarySP lldb_private::OptionGroupPythonClassWithDict::GetStructuredData ( )
inline

◆ OptionParsingFinished()

Status OptionGroupPythonClassWithDict::OptionParsingFinished ( ExecutionContext execution_context)
overridevirtual

Reimplemented from lldb_private::OptionGroup.

Definition at line 146 of file OptionGroupPythonClassWithDict.cpp.

References error(), and m_current_key.

◆ OptionParsingStarting()

void OptionGroupPythonClassWithDict::OptionParsingStarting ( ExecutionContext execution_context)
overridevirtual

Implements lldb_private::OptionGroup.

Definition at line 136 of file OptionGroupPythonClassWithDict.cpp.

References m_current_key, m_dict_sp, and m_name.

◆ SetOptionValue()

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

Implements lldb_private::OptionGroup.

Definition at line 81 of file OptionGroupPythonClassWithDict.cpp.

References error(), m_current_key, m_dict_sp, and m_name.

Member Data Documentation

◆ m_class_usage_text

std::string lldb_private::OptionGroupPythonClassWithDict::m_class_usage_text
protected

Definition at line 64 of file OptionGroupPythonClassWithDict.h.

Referenced by OptionGroupPythonClassWithDict().

◆ m_current_key

std::string lldb_private::OptionGroupPythonClassWithDict::m_current_key
protected

◆ m_dict_sp

StructuredData::DictionarySP lldb_private::OptionGroupPythonClassWithDict::m_dict_sp
protected

◆ m_is_class

bool lldb_private::OptionGroupPythonClassWithDict::m_is_class
protected

Definition at line 65 of file OptionGroupPythonClassWithDict.h.

Referenced by OptionGroupPythonClassWithDict().

◆ m_key_usage_text

std::string lldb_private::OptionGroupPythonClassWithDict::m_key_usage_text
protected

Definition at line 64 of file OptionGroupPythonClassWithDict.h.

Referenced by OptionGroupPythonClassWithDict().

◆ m_name

std::string lldb_private::OptionGroupPythonClassWithDict::m_name
protected

Definition at line 61 of file OptionGroupPythonClassWithDict.h.

Referenced by GetName(), OptionParsingStarting(), and SetOptionValue().

◆ m_option_definition

OptionDefinition lldb_private::OptionGroupPythonClassWithDict::m_option_definition[4]
protected

◆ m_required_options

Flags lldb_private::OptionGroupPythonClassWithDict::m_required_options
protected

Definition at line 67 of file OptionGroupPythonClassWithDict.h.

Referenced by OptionGroupPythonClassWithDict().

◆ m_value_usage_text

std::string lldb_private::OptionGroupPythonClassWithDict::m_value_usage_text
protected

Definition at line 64 of file OptionGroupPythonClassWithDict.h.

Referenced by OptionGroupPythonClassWithDict().


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