LLDB mainline
sddarwinlog_private::EnableOptions Class Reference
Inheritance diagram for sddarwinlog_private::EnableOptions:
[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.
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.
void OptionSeen (int short_option)
llvm::Error VerifyOptions ()
llvm::Error VerifyPartialOptions ()
void OutputFormattedUsageText (Stream &strm, const OptionDefinition &option_def, uint32_t output_max_columns, bool use_color)
void GenerateOptionUsage (Stream &strm, CommandObject &cmd, uint32_t screen_width, bool use_color)
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.
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.
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.

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 471 of file StructuredDataDarwinLog.cpp.

Constructor & Destructor Documentation

◆ EnableOptions()

sddarwinlog_private::EnableOptions::EnableOptions ( )
inline

Member Function Documentation

◆ BuildConfigurationData()

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

◆ GetBroadcastEvents()

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

Definition at line 630 of file StructuredDataDarwinLog.cpp.

References m_broadcast_events.

◆ GetDefinitions()

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

Reimplemented from lldb_private::Options.

Definition at line 562 of file StructuredDataDarwinLog.cpp.

References sddarwinlog_private::g_enable_option_table.

◆ GetDisplayActivityChain()

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

Definition at line 623 of file StructuredDataDarwinLog.cpp.

References m_display_activity_chain.

◆ GetDisplayAnyHeaderFields()

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

◆ GetDisplayCategory()

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

Definition at line 622 of file StructuredDataDarwinLog.cpp.

References m_display_category.

◆ GetDisplaySubsystem()

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

Definition at line 621 of file StructuredDataDarwinLog.cpp.

References m_display_subsystem.

◆ GetDisplayTimestampRelative()

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

Definition at line 617 of file StructuredDataDarwinLog.cpp.

References m_display_timestamp_relative.

◆ GetEchoToStdErr()

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

Definition at line 615 of file StructuredDataDarwinLog.cpp.

References m_echo_to_stderr.

◆ GetFallthroughAccepts()

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

Definition at line 613 of file StructuredDataDarwinLog.cpp.

References m_filter_fall_through_accepts.

◆ GetFilterRules()

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

Definition at line 611 of file StructuredDataDarwinLog.cpp.

References m_filter_rules.

◆ GetIncludeDebugLevel()

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

Definition at line 604 of file StructuredDataDarwinLog.cpp.

References m_include_debug_level.

◆ GetIncludeInfoLevel()

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

Definition at line 606 of file StructuredDataDarwinLog.cpp.

References m_include_debug_level, and m_include_info_level.

◆ MatchAttributeIndex()

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

Definition at line 716 of file StructuredDataDarwinLog.cpp.

References sddarwinlog_private::s_filter_attributes.

Referenced by ParseFilterRule().

◆ OptionParsingStarting()

◆ ParseFilterRule()

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

◆ 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 493 of file StructuredDataDarwinLog.cpp.

References error(), lldb_private::Status::FromErrorStringWithFormat(), m_broadcast_events, m_display_activity_chain, m_display_category, m_display_subsystem, m_display_timestamp_relative, m_echo_to_stderr, m_filter_fall_through_accepts, lldb_private::Options::m_getopt_table, m_include_any_process, m_include_debug_level, m_include_info_level, m_live_stream, ParseFilterRule(), and lldb_private::OptionArgParser::ToBoolean().

Member Data Documentation

◆ m_broadcast_events

bool sddarwinlog_private::EnableOptions::m_broadcast_events = true
private

◆ m_display_activity_chain

bool sddarwinlog_private::EnableOptions::m_display_activity_chain = false
private

◆ m_display_category

bool sddarwinlog_private::EnableOptions::m_display_category = false
private

◆ m_display_subsystem

bool sddarwinlog_private::EnableOptions::m_display_subsystem = false
private

◆ m_display_timestamp_relative

bool sddarwinlog_private::EnableOptions::m_display_timestamp_relative = false
private

◆ m_echo_to_stderr

bool sddarwinlog_private::EnableOptions::m_echo_to_stderr = false
private

◆ m_filter_fall_through_accepts

bool sddarwinlog_private::EnableOptions::m_filter_fall_through_accepts
private

◆ m_filter_rules

FilterRules sddarwinlog_private::EnableOptions::m_filter_rules
private

◆ m_include_any_process

bool sddarwinlog_private::EnableOptions::m_include_any_process = false
private

◆ m_include_debug_level

bool sddarwinlog_private::EnableOptions::m_include_debug_level = false
private

◆ m_include_info_level

bool sddarwinlog_private::EnableOptions::m_include_info_level = false
private

◆ m_live_stream

bool sddarwinlog_private::EnableOptions::m_live_stream = true
private

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