LLDB mainline
|
#include <OptionGroupPythonClassWithDict.h>
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< OptionDefinition > | GetDefinitions () 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< OptionDefinition > | GetDefinitions ()=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 |
Definition at line 25 of file OptionGroupPythonClassWithDict.h.
Enumerator | |
---|---|
eScriptClass | |
eDictKey | |
eDictValue | |
ePythonFunction | |
eAllOptions |
Definition at line 27 of file OptionGroupPythonClassWithDict.h.
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 |
||
) |
Definition at line 16 of file OptionGroupPythonClassWithDict.cpp.
References lldb_private::OptionDefinition::argument_type, lldb_private::OptionDefinition::completion_type, lldb::eArgTypeNone, lldb::eArgTypePythonClass, lldb::eArgTypePythonFunction, eDictKey, eDictValue, lldb_private::OptionDefinition::enum_values, ePythonFunction, lldb_private::OptionParser::eRequiredArgument, eScriptClass, LLDB_OPT_SET_1, LLDB_OPT_SET_2, LLDB_OPT_SET_3, lldb_private::OptionDefinition::long_option, m_class_usage_text, m_is_class, m_key_usage_text, m_option_definition, m_required_options, m_value_usage_text, lldb_private::OptionDefinition::option_has_arg, lldb_private::OptionDefinition::required, lldb_private::OptionDefinition::short_option, lldb_private::Flags::Test(), lldb_private::OptionDefinition::usage_mask, lldb_private::OptionDefinition::usage_text, and lldb_private::OptionDefinition::validator.
|
overridedefault |
|
inlineoverridevirtual |
Implements lldb_private::OptionGroup.
Definition at line 43 of file OptionGroupPythonClassWithDict.h.
References m_option_definition.
|
inline |
Definition at line 56 of file OptionGroupPythonClassWithDict.h.
References m_name.
Referenced by CommandObjectPlatformProcessLaunch::DoExecute(), CommandObjectBreakpointSet::DoExecute(), CommandObjectPlatformProcessAttach::DoExecute(), CommandObjectProcessAttach::DoExecute(), CommandObjectThreadStepWithTypeAndScope::DoExecute(), and CommandObjectProcessLaunch::DoExecute().
|
inline |
Definition at line 53 of file OptionGroupPythonClassWithDict.h.
References m_dict_sp.
Referenced by CommandObjectPlatformProcessLaunch::DoExecute(), CommandObjectBreakpointSet::DoExecute(), CommandObjectPlatformProcessAttach::DoExecute(), CommandObjectProcessAttach::DoExecute(), CommandObjectThreadStepWithTypeAndScope::DoExecute(), and CommandObjectProcessLaunch::DoExecute().
|
overridevirtual |
Reimplemented from lldb_private::OptionGroup.
Definition at line 146 of file OptionGroupPythonClassWithDict.cpp.
References error(), lldb_private::Status::FromErrorStringWithFormat(), and m_current_key.
|
overridevirtual |
Implements lldb_private::OptionGroup.
Definition at line 136 of file OptionGroupPythonClassWithDict.cpp.
References m_current_key, m_dict_sp, and m_name.
|
overridevirtual |
Implements lldb_private::OptionGroup.
Definition at line 81 of file OptionGroupPythonClassWithDict.cpp.
References error(), lldb_private::Status::FromErrorStringWithFormatv(), m_current_key, m_dict_sp, and m_name.
|
protected |
Definition at line 64 of file OptionGroupPythonClassWithDict.h.
Referenced by OptionGroupPythonClassWithDict().
|
protected |
Definition at line 62 of file OptionGroupPythonClassWithDict.h.
Referenced by OptionParsingFinished(), OptionParsingStarting(), and SetOptionValue().
|
protected |
Definition at line 63 of file OptionGroupPythonClassWithDict.h.
Referenced by GetStructuredData(), OptionParsingStarting(), and SetOptionValue().
|
protected |
Definition at line 65 of file OptionGroupPythonClassWithDict.h.
Referenced by OptionGroupPythonClassWithDict().
|
protected |
Definition at line 64 of file OptionGroupPythonClassWithDict.h.
Referenced by OptionGroupPythonClassWithDict().
|
protected |
Definition at line 61 of file OptionGroupPythonClassWithDict.h.
Referenced by GetName(), OptionParsingStarting(), and SetOptionValue().
|
protected |
Definition at line 66 of file OptionGroupPythonClassWithDict.h.
Referenced by GetDefinitions(), and OptionGroupPythonClassWithDict().
|
protected |
Definition at line 67 of file OptionGroupPythonClassWithDict.h.
Referenced by OptionGroupPythonClassWithDict().
|
protected |
Definition at line 64 of file OptionGroupPythonClassWithDict.h.
Referenced by OptionGroupPythonClassWithDict().