Yate
|
Matching item common interface. More...
#include <yateclass.h>
Public Member Functions | |
MatchingItemBase (const char *name, bool negated=false) | |
const String & | name () const |
bool | negated () const |
bool | matchString (const String &str, MatchingParams *params=0) const |
bool | matchListParam (const NamedList &list, MatchingParams *params=0) const |
virtual bool | runMatchString (const String &str, MatchingParams *params=0) const |
virtual bool | runMatchListParam (const NamedList &list, MatchingParams *params=0) const |
virtual MatchingItemBase * | copy () const |
virtual const MatchingItemString * | itemString () const |
virtual const MatchingItemRegexp * | itemRegexp () const |
virtual const MatchingItemRandom * | itemRandom () const |
virtual const MatchingItemList * | itemList () const |
virtual const MatchingItemCustom * | itemCustom () const |
virtual String & | dump (String &buf, const MatchingItemDump *dump=0, const String &indent=String::empty(), const String &origIndent=String::empty(), unsigned int depth=0) const |
virtual String & | dumpValue (String &buf, const MatchingItemDump *dump=0, const String &indent=String::empty(), const String &origIndent=String::empty(), unsigned int depth=0) const |
virtual GenObject * | dumpXml (const MatchingItemDump *dump=0, unsigned int depth=0) const |
virtual const String & | toString () const |
![]() | |
GenObject () | |
virtual | ~GenObject () |
virtual bool | alive () const |
virtual void | destruct () |
virtual const String & | traceId () const |
virtual void * | getObject (const String &name) const |
NamedCounter * | getObjCounter () const |
NamedCounter * | setObjCounter (NamedCounter *counter) |
Friends | |
class | MatchingItemList |
Additional Inherited Members | |
![]() | |
static void * | getObject (const String &name, const GenObject *obj) |
static bool | getObjCounting () |
static void | setObjCounting (bool enable) |
static NamedCounter * | getObjCounter (const String &name, bool create=true) |
static ObjList & | getObjCounters () |
Matching item common interface.
Base class for all matching items
|
inline |
Constructor
name | Item name |
negated | True if matching is negated (return the opposite of match in public methods), false otherwise |
|
inlinevirtual |
Copy this item
Reimplemented in MatchingItemList, MatchingItemRandom, MatchingItemRegexp, and MatchingItemString.
|
inlinevirtual |
Dump this item
buf | Destination buffer |
indent | Indent for each item (line). Increased by 'origIndent' when depth advances |
origIndent | Original indent |
dump | Optional dumper |
depth | Re-enter depth |
|
inlinevirtual |
Dump this item's value
buf | Destination buffer |
dump | Optional dumper |
indent | Indent for each item (line). Increased by 'origIndent' when depth advances |
origIndent | Original indent |
depth | Re-enter depth |
|
inlinevirtual |
Dump this item in XML format
dump | Optional dumper |
depth | Re-enter depth |
|
inlinevirtual |
Check if this item is a MatchingItemCustom one
Reimplemented in MatchingItemCustom.
|
inlinevirtual |
Check if this item is a MatchingItemList one
Reimplemented in MatchingItemList.
|
inlinevirtual |
Check if this item is a MatchingItemRandom one
Reimplemented in MatchingItemRandom.
|
inlinevirtual |
Check if this item is a MatchingItemRegexp one
Reimplemented in MatchingItemRegexp.
|
inlinevirtual |
Check if this item is a MatchingItemString one
Reimplemented in MatchingItemString.
|
inline |
NamedList parameter match. Handles matching result negation
list | List to search for parameter match |
params | Optional parameters used during match |
Referenced by MessageFilter::matchesMsg().
|
inline |
String match. Handles matching result negation
str | String to match |
params | Optional parameters used during match |
Referenced by MessageFilter::matchesMsg().
|
inline |
Retrieve the name of this item
|
inline |
Check if this item is negated when testing
|
inlinevirtual |
NamedList parameter match
list | List to search for parameter match |
params | Optional parameters used during match |
Reimplemented in MatchingItemList, and MatchingItemRandom.
|
inlinevirtual |
String match to be implemented by descendants
str | String to match |
params | Optional parameters used during match |
Reimplemented in MatchingItemList, MatchingItemRandom, MatchingItemRegexp, and MatchingItemString.
|
inlinevirtual |