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 String & type () const
 
virtual const MatchingItemCustom * itemCustom () const
 
- Public Member Functions inherited from MatchingItemBase
 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 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
 
- Public Member Functions inherited from GenObject
 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)
 

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 NamedCounter * getObjCounter (const String &name, bool create=true)
 
static ObjList & getObjCounters ()
 

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

Member Function Documentation

◆ itemCustom()

virtual const MatchingItemCustom * itemCustom ( ) const
inlinevirtual

Check if this item is a MatchingItemCustom one

Returns
MatchingItemCustom pointer

Reimplemented from MatchingItemBase.

◆ type()

const String & type ( ) const
inline

Retrieve the type

Returns
Type name

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