Patterns Class Reference

#include <Patterns.h>

List of all members.


Detailed Description

Pattern matching routines for digits, IP addresses and subnets.

Public Member Functions

 Patterns ()
virtual ~Patterns ()
virtual bool IPv4subnet (const UtlString ipv4, const UtlString cidr) const
 Matches IPv4 addressess to CIDR specified subnets.
virtual bool DnsWildcard (const UtlString fqdn, const UtlString wildcard)
 Matches FQDN to DNS wildcards.

Protected Attributes

UtlHashMap mPatterns

Constructor & Destructor Documentation

Patterns (  ) 

~Patterns (  )  [virtual]


Member Function Documentation

bool IPv4subnet ( const UtlString  ipv4,
const UtlString  cidr 
) const [virtual]

Matches IPv4 addressess to CIDR specified subnets.

Returns:
true if the ipv4 is in the subnet, false if not.
Parameters:
ipv4  An IPv4 dotted quad to be matched
cidr  A subnet specified in CIDR notation: x.y.z.q/size x.y.z/size x.y/size x/size size is 1..32

bool DnsWildcard ( const UtlString  fqdn,
const UtlString  wildcard 
) [virtual]

Matches FQDN to DNS wildcards.

Returns:
true if the fqdn is in the wildcard domain, false if not.
Parameters:
wildcard  A "wildcard" domain name, where the *. prefix will match any sub-domain of that domain. ('*.pingtel.com') A lone '*' matches any


Member Data Documentation

UtlHashMap mPatterns [protected]


Online Library Docs

sipXecs home page

Version 4.2.1-018930 2010-07-31T01:13:23 build16 abuild