LLDB  mainline
Public Member Functions | Private Member Functions | Private Attributes | List of all members
sddarwinlog_private::EnableOptions Class Reference
Inheritance diagram for sddarwinlog_private::EnableOptions:
Inheritance graph
[legend]
Collaboration diagram for sddarwinlog_private::EnableOptions:
Collaboration graph
[legend]

Public Member Functions

 EnableOptions ()
 
void OptionParsingStarting (ExecutionContext *execution_context) override
 
Status SetOptionValue (uint32_t option_idx, llvm::StringRef option_arg, ExecutionContext *execution_context) override
 Set the value of an option. More...
 
llvm::ArrayRef< OptionDefinitionGetDefinitions () override
 
StructuredData::DictionarySP BuildConfigurationData (bool enabled)
 
bool GetIncludeDebugLevel () const
 
bool GetIncludeInfoLevel () const
 
const FilterRulesGetFilterRules () const
 
bool GetFallthroughAccepts () const
 
bool GetEchoToStdErr () const
 
bool GetDisplayTimestampRelative () const
 
bool GetDisplaySubsystem () const
 
bool GetDisplayCategory () const
 
bool GetDisplayActivityChain () const
 
bool GetDisplayAnyHeaderFields () const
 
bool GetBroadcastEvents () const
 
- Public Member Functions inherited from lldb_private::Options
 Options ()
 
virtual ~Options ()
 
void BuildGetoptTable ()
 
void BuildValidOptionSets ()
 
uint32_t NumCommandOptions ()
 
OptionGetLongOptions ()
 Get the option definitions to use when parsing Args options. More...
 
void OptionSeen (int short_option)
 
bool VerifyOptions (CommandReturnObject &result)
 
bool VerifyPartialOptions (CommandReturnObject &result)
 
void OutputFormattedUsageText (Stream &strm, const OptionDefinition &option_def, uint32_t output_max_columns)
 
void GenerateOptionUsage (Stream &strm, CommandObject *cmd, uint32_t screen_width)
 
bool SupportsLongOption (const char *long_option)
 
void NotifyOptionParsingStarting (ExecutionContext *execution_context)
 
llvm::Expected< ArgsParse (const Args &args, ExecutionContext *execution_context, lldb::PlatformSP platform_sp, bool require_validation)
 Parse the provided arguments. More...
 
llvm::Expected< ArgsParseAlias (const Args &args, OptionArgVector *option_arg_vector, std::string &input_line)
 
OptionElementVector ParseForCompletion (const Args &args, uint32_t cursor_index)
 
Status NotifyOptionParsingFinished (ExecutionContext *execution_context)
 
bool HandleOptionCompletion (lldb_private::CompletionRequest &request, OptionElementVector &option_map, CommandInterpreter &interpreter)
 Handles the generic bits of figuring out whether we are in an option, and if so completing it. More...
 
virtual void HandleOptionArgumentCompletion (lldb_private::CompletionRequest &request, OptionElementVector &opt_element_vector, int opt_element_index, CommandInterpreter &interpreter)
 Handles the generic bits of figuring out whether we are in an option, and if so completing it. More...
 

Private Member Functions

Status ParseFilterRule (llvm::StringRef rule_text)
 
int MatchAttributeIndex (llvm::StringRef attribute_name) const
 

Private Attributes

bool m_include_debug_level = false
 
bool m_include_info_level = false
 
bool m_include_any_process = false
 
bool m_filter_fall_through_accepts
 
bool m_echo_to_stderr = false
 
bool m_display_timestamp_relative = false
 
bool m_display_subsystem = false
 
bool m_display_category = false
 
bool m_display_activity_chain = false
 
bool m_broadcast_events = true
 
bool m_live_stream = true
 
FilterRules m_filter_rules
 

Additional Inherited Members

- Protected Types inherited from lldb_private::Options
typedef std::set< int > OptionSet
 
typedef std::vector< OptionSetOptionSetVector
 
- Protected Member Functions inherited from lldb_private::Options
OptionSetVectorGetRequiredOptions ()
 
OptionSetVectorGetOptionalOptions ()
 
bool IsASubset (const OptionSet &set_a, const OptionSet &set_b)
 
size_t OptionsSetDiff (const OptionSet &set_a, const OptionSet &set_b, OptionSet &diffs)
 
void OptionsSetUnion (const OptionSet &set_a, const OptionSet &set_b, OptionSet &union_set)
 
virtual Status OptionParsingFinished (ExecutionContext *execution_context)
 
- Protected Attributes inherited from lldb_private::Options
std::vector< Optionm_getopt_table
 
OptionSet m_seen_options
 
OptionSetVector m_required_options
 
OptionSetVector m_optional_options
 

Detailed Description

Definition at line 473 of file StructuredDataDarwinLog.cpp.

Constructor & Destructor Documentation

◆ EnableOptions()

sddarwinlog_private::EnableOptions::EnableOptions ( )
inline

Definition at line 475 of file StructuredDataDarwinLog.cpp.

Member Function Documentation

◆ BuildConfigurationData()

StructuredData::DictionarySP sddarwinlog_private::EnableOptions::BuildConfigurationData ( bool  enabled)
inline

Definition at line 567 of file StructuredDataDarwinLog.cpp.

◆ GetBroadcastEvents()

bool sddarwinlog_private::EnableOptions::GetBroadcastEvents ( ) const
inline

Definition at line 633 of file StructuredDataDarwinLog.cpp.

◆ GetDefinitions()

llvm::ArrayRef<OptionDefinition> sddarwinlog_private::EnableOptions::GetDefinitions ( )
inlineoverridevirtual

Reimplemented from lldb_private::Options.

Definition at line 563 of file StructuredDataDarwinLog.cpp.

References sddarwinlog_private::g_enable_option_table.

◆ GetDisplayActivityChain()

bool sddarwinlog_private::EnableOptions::GetDisplayActivityChain ( ) const
inline

Definition at line 626 of file StructuredDataDarwinLog.cpp.

◆ GetDisplayAnyHeaderFields()

bool sddarwinlog_private::EnableOptions::GetDisplayAnyHeaderFields ( ) const
inline

Definition at line 628 of file StructuredDataDarwinLog.cpp.

◆ GetDisplayCategory()

bool sddarwinlog_private::EnableOptions::GetDisplayCategory ( ) const
inline

Definition at line 625 of file StructuredDataDarwinLog.cpp.

◆ GetDisplaySubsystem()

bool sddarwinlog_private::EnableOptions::GetDisplaySubsystem ( ) const
inline

Definition at line 624 of file StructuredDataDarwinLog.cpp.

◆ GetDisplayTimestampRelative()

bool sddarwinlog_private::EnableOptions::GetDisplayTimestampRelative ( ) const
inline

Definition at line 620 of file StructuredDataDarwinLog.cpp.

◆ GetEchoToStdErr()

bool sddarwinlog_private::EnableOptions::GetEchoToStdErr ( ) const
inline

Definition at line 618 of file StructuredDataDarwinLog.cpp.

◆ GetFallthroughAccepts()

bool sddarwinlog_private::EnableOptions::GetFallthroughAccepts ( ) const
inline

Definition at line 616 of file StructuredDataDarwinLog.cpp.

◆ GetFilterRules()

const FilterRules& sddarwinlog_private::EnableOptions::GetFilterRules ( ) const
inline

Definition at line 614 of file StructuredDataDarwinLog.cpp.

◆ GetIncludeDebugLevel()

bool sddarwinlog_private::EnableOptions::GetIncludeDebugLevel ( ) const
inline

Definition at line 607 of file StructuredDataDarwinLog.cpp.

◆ GetIncludeInfoLevel()

bool sddarwinlog_private::EnableOptions::GetIncludeInfoLevel ( ) const
inline

Definition at line 609 of file StructuredDataDarwinLog.cpp.

◆ MatchAttributeIndex()

int sddarwinlog_private::EnableOptions::MatchAttributeIndex ( llvm::StringRef  attribute_name) const
inlineprivate

◆ OptionParsingStarting()

void sddarwinlog_private::EnableOptions::OptionParsingStarting ( ExecutionContext execution_context)
inlineoverridevirtual

◆ ParseFilterRule()

Status sddarwinlog_private::EnableOptions::ParseFilterRule ( llvm::StringRef  rule_text)
inlineprivate

Definition at line 636 of file StructuredDataDarwinLog.cpp.

References error(), and string().

◆ SetOptionValue()

Status sddarwinlog_private::EnableOptions::SetOptionValue ( uint32_t  option_idx,
llvm::StringRef  option_arg,
ExecutionContext execution_context 
)
inlineoverridevirtual

Set the value of an option.

Parameters
[in]option_idxThe index into the "struct option" array that was returned by Options::GetLongOptions().
[in]option_argThe argument value for the option that the user entered, or nullptr if there is no argument for the current option.
[in]execution_contextThe execution context to use for evaluating the option. May be nullptr if the option is to be evaluated outside any particular context.
See also
Args::ParseOptions (Options&)
man getopt_long_only

Implements lldb_private::Options.

Definition at line 495 of file StructuredDataDarwinLog.cpp.

References error().

Member Data Documentation

◆ m_broadcast_events

bool sddarwinlog_private::EnableOptions::m_broadcast_events = true
private

Definition at line 736 of file StructuredDataDarwinLog.cpp.

◆ m_display_activity_chain

bool sddarwinlog_private::EnableOptions::m_display_activity_chain = false
private

Definition at line 735 of file StructuredDataDarwinLog.cpp.

◆ m_display_category

bool sddarwinlog_private::EnableOptions::m_display_category = false
private

Definition at line 734 of file StructuredDataDarwinLog.cpp.

◆ m_display_subsystem

bool sddarwinlog_private::EnableOptions::m_display_subsystem = false
private

Definition at line 733 of file StructuredDataDarwinLog.cpp.

◆ m_display_timestamp_relative

bool sddarwinlog_private::EnableOptions::m_display_timestamp_relative = false
private

Definition at line 732 of file StructuredDataDarwinLog.cpp.

◆ m_echo_to_stderr

bool sddarwinlog_private::EnableOptions::m_echo_to_stderr = false
private

Definition at line 731 of file StructuredDataDarwinLog.cpp.

◆ m_filter_fall_through_accepts

bool sddarwinlog_private::EnableOptions::m_filter_fall_through_accepts
private

Definition at line 730 of file StructuredDataDarwinLog.cpp.

◆ m_filter_rules

FilterRules sddarwinlog_private::EnableOptions::m_filter_rules
private

Definition at line 738 of file StructuredDataDarwinLog.cpp.

◆ m_include_any_process

bool sddarwinlog_private::EnableOptions::m_include_any_process = false
private

Definition at line 729 of file StructuredDataDarwinLog.cpp.

◆ m_include_debug_level

bool sddarwinlog_private::EnableOptions::m_include_debug_level = false
private

Definition at line 727 of file StructuredDataDarwinLog.cpp.

◆ m_include_info_level

bool sddarwinlog_private::EnableOptions::m_include_info_level = false
private

Definition at line 728 of file StructuredDataDarwinLog.cpp.

◆ m_live_stream

bool sddarwinlog_private::EnableOptions::m_live_stream = true
private

Definition at line 737 of file StructuredDataDarwinLog.cpp.


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