LeechCraft 0.6.70-17335-ge406ffdcaf
Modular cross-platform feature rich live environment.
Loading...
Searching...
No Matches
LC::AN::StringFieldValue Struct Reference

Describes a field with QString values. More...

#include "ianemitter.h"

+ Collaboration diagram for LC::AN::StringFieldValue:

Public Member Functions

 StringFieldValue (QRegularExpression rx, bool contains)
 Constructs the field matcher.
 
 StringFieldValue (const QString &str, bool contains=true)
 Constructs the field matcher for the given str.
 
bool operator== (const StringFieldValue &) const =default
 

Public Attributes

StringMatcher Rx_
 The pattern the values should (not) match.
 
bool Contains_
 Whether the values should match or not match Rx_.
 

Detailed Description

Describes a field with QString values.

Definition at line 149 of file ianemitter.h.

Constructor & Destructor Documentation

◆ StringFieldValue() [1/2]

LC::AN::StringFieldValue::StringFieldValue ( QRegularExpression rx,
bool contains )
inline

Constructs the field matcher.

Parameters
[in]rxThe regexp to match.
[in]containsWhether the string should or should not match rx.

Definition at line 168 of file ianemitter.h.

References Contains_, and Rx_.

Referenced by operator==().

+ Here is the caller graph for this function:

◆ StringFieldValue() [2/2]

LC::AN::StringFieldValue::StringFieldValue ( const QString & str,
bool contains = true )
inline

Constructs the field matcher for the given str.

This constructor constructs a field matcher that matches (or does not match if contains is false) when the string in question contains the str.

Parameters
[in]strThe string that should be looked for.
[in]containsWhether the string should or should not contain str.

Definition at line 184 of file ianemitter.h.

References Contains_, and Rx_.

Member Function Documentation

◆ operator==()

bool LC::AN::StringFieldValue::operator== ( const StringFieldValue & ) const
default

References StringFieldValue().

+ Here is the call graph for this function:

Member Data Documentation

◆ Contains_

bool LC::AN::StringFieldValue::Contains_

Whether the values should match or not match Rx_.

If this is true, the values should match Rx_, and shouldn't otherwise.

Definition at line 160 of file ianemitter.h.

Referenced by StringFieldValue(), and StringFieldValue().

◆ Rx_

StringMatcher LC::AN::StringFieldValue::Rx_

The pattern the values should (not) match.

Definition at line 153 of file ianemitter.h.

Referenced by StringFieldValue(), and StringFieldValue().


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