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

Public Member Functions

void Dump (Stream &stream) const override
 
- Public Member Functions inherited from sddarwinlog_private::FilterRule
virtual ~FilterRule ()=default
 
StructuredData::ObjectSP Serialize () const
 
ConstString GetOperationType () const
 

Static Public Member Functions

static void RegisterOperation ()
 
- Static Public Member Functions inherited from sddarwinlog_private::FilterRule
static void RegisterOperation (ConstString operation, const OperationCreationFunc &creation_func)
 
static FilterRuleSP CreateRule (bool match_accepts, size_t attribute, ConstString operation, const std::string &op_arg, Status &error)
 

Protected Member Functions

void DoSerialization (StructuredData::Dictionary &dict) const override
 
- Protected Member Functions inherited from sddarwinlog_private::FilterRule
 FilterRule (bool accept, size_t attribute_index, ConstString operation)
 
bool GetMatchAccepts () const
 
const char * GetFilterAttribute () const
 

Private Member Functions

 RegexFilterRule (bool accept, size_t attribute_index, const std::string &regex_text)
 

Static Private Member Functions

static FilterRuleSP CreateOperation (bool accept, size_t attribute_index, const std::string &op_arg, Status &error)
 
static ConstString StaticGetOperation ()
 

Private Attributes

const std::string m_regex_text
 

Additional Inherited Members

- Public Types inherited from sddarwinlog_private::FilterRule
using OperationCreationFunc = std::function< FilterRuleSP(bool accept, size_t attribute_index, const std::string &op_arg, Status &error)>
 

Detailed Description

Definition at line 264 of file StructuredDataDarwinLog.cpp.

Constructor & Destructor Documentation

◆ RegexFilterRule()

sddarwinlog_private::RegexFilterRule::RegexFilterRule ( bool  accept,
size_t  attribute_index,
const std::string regex_text 
)
inlineprivate

Definition at line 308 of file StructuredDataDarwinLog.cpp.

Member Function Documentation

◆ CreateOperation()

static FilterRuleSP sddarwinlog_private::RegexFilterRule::CreateOperation ( bool  accept,
size_t  attribute_index,
const std::string op_arg,
Status error 
)
inlinestaticprivate

Definition at line 281 of file StructuredDataDarwinLog.cpp.

References error(), and lldb_private::toString().

◆ DoSerialization()

void sddarwinlog_private::RegexFilterRule::DoSerialization ( StructuredData::Dictionary dict) const
inlineoverrideprotectedvirtual

◆ Dump()

void sddarwinlog_private::RegexFilterRule::Dump ( Stream stream) const
inlineoverridevirtual

◆ RegisterOperation()

static void sddarwinlog_private::RegexFilterRule::RegisterOperation ( )
inlinestatic

Definition at line 266 of file StructuredDataDarwinLog.cpp.

◆ StaticGetOperation()

static ConstString sddarwinlog_private::RegexFilterRule::StaticGetOperation ( )
inlinestaticprivate

Definition at line 303 of file StructuredDataDarwinLog.cpp.

Member Data Documentation

◆ m_regex_text

const std::string sddarwinlog_private::RegexFilterRule::m_regex_text
private

Definition at line 313 of file StructuredDataDarwinLog.cpp.


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