LeechCraft 0.6.70-16373-g319c272718
Modular cross-platform feature rich live environment.
Loading...
Searching...
No Matches
LC::ANStringFieldValue Struct Reference

Describes a field with QString values. More...

#include "ianemitter.h"

Public Member Functions

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

Public Attributes

QRegExp Rx_
 The regular expression 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 130 of file ianemitter.h.

Constructor & Destructor Documentation

◆ ANStringFieldValue() [1/2]

LC::ANStringFieldValue::ANStringFieldValue ( const QRegExp & 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 149 of file ianemitter.h.

◆ ANStringFieldValue() [2/2]

LC::ANStringFieldValue::ANStringFieldValue ( 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. It is analogous to the previous constructor if the regular expression object is constructed as QRegExp { str, Qt::CaseSensitive, QRegExp::FixedString }.

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

Definition at line 167 of file ianemitter.h.

Member Function Documentation

◆ operator==()

bool LC::ANStringFieldValue::operator== ( const ANStringFieldValue & ) const
default

Member Data Documentation

◆ Contains_

bool LC::ANStringFieldValue::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 141 of file ianemitter.h.

◆ Rx_

QRegExp LC::ANStringFieldValue::Rx_

The regular expression the values should (not) match.

Definition at line 134 of file ianemitter.h.


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