Yate
MatchingItemCustom Class Reference

Base class for custom matching. More...

#include <yateclass.h>

Inheritance diagram for MatchingItemCustom:
MatchingItemBase GenObject

Public Member Functions

 MatchingItemCustom (const char *name, const char *type, bool negated=false)
const Stringtype () const
virtual const MatchingItemCustomitemCustom () const
Public Member Functions inherited from MatchingItemBase
 MatchingItemBase (const char *name, bool negated=false)
const Stringname () 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 MatchingItemBasecopy () const
virtual const MatchingItemStringitemString () const
virtual const MatchingItemRegexpitemRegexp () const
virtual const MatchingItemRandomitemRandom () const
virtual const MatchingItemListitemList () const
virtual Stringdump (String &buf, const MatchingItemDump *dump=0, const String &indent=String::empty(), const String &origIndent=String::empty(), unsigned int depth=0) const
virtual StringdumpValue (String &buf, const MatchingItemDump *dump=0, const String &indent=String::empty(), const String &origIndent=String::empty(), unsigned int depth=0) const
virtual GenObjectdumpXml (const MatchingItemDump *dump=0, unsigned int depth=0) const
virtual const StringtoString () const
Public Member Functions inherited from GenObject
 GenObject ()
virtual ~GenObject ()
virtual bool alive () const
virtual void destruct ()
virtual const StringtraceId () const
virtual void * getObject (const String &name) const
NamedCountergetObjCounter () const
NamedCountersetObjCounter (NamedCounter *counter)

Additional Inherited Members

Static Public Member Functions inherited from GenObject
static void * getObject (const String &name, const GenObject *obj)
static bool getObjCounting ()
static void setObjCounting (bool enable)
static NamedCountergetObjCounter (const String &name, bool create=true)
static ObjListgetObjCounters ()

Detailed Description

Base class for custom matching.

Custom match

Constructor & Destructor Documentation

◆ MatchingItemCustom()

MatchingItemCustom ( const char * name,
const char * type,
bool negated = false )
inline

Constructor

Parameters
nameItem name
typeType name
negatedTrue if matching is negated (return the opposite of match in public methods), false otherwise

References MatchingItemBase::MatchingItemBase(), MatchingItemBase::name(), MatchingItemBase::negated(), and type().

Referenced by itemCustom().

Member Function Documentation

◆ itemCustom()

virtual const MatchingItemCustom * itemCustom ( ) const
inlinevirtual

Check if this item is a MatchingItemCustom one

Returns
MatchingItemCustom pointer

Reimplemented from MatchingItemBase.

References MatchingItemCustom().

◆ type()

const String & type ( ) const
inline

Retrieve the type

Returns
Type name

Referenced by MatchingItemCustom().


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