Yate
Public Member Functions | Protected Attributes | List of all members
NaptrRecord Class Reference

A NAPTR record. More...

#include <yateclass.h>

Inheritance diagram for NaptrRecord:
DnsRecord GenObject

Public Member Functions

 NaptrRecord (int ttl, int ord, int pref, const char *flags, const char *serv, const char *regexp, const char *next)
 
bool replace (String &str) const
 
virtual void dump (String &buf, const char *sep=" ")
 
const Stringflags () const
 
const Stringserv () const
 
const Regexpregexp () const
 
const StringrepTemplate () const
 
const StringnextName () const
 
- Public Member Functions inherited from DnsRecord
 DnsRecord (int ttl, int order, int pref)
 
 DnsRecord ()
 
int ttl () const
 
int order () const
 
int pref () const
 
virtual void dump (String &buf, const char *sep=" ")
 
- Public Member Functions inherited from GenObject
 GenObject ()
 
virtual ~GenObject ()
 
virtual bool alive () const
 
virtual void destruct ()
 
virtual const StringtoString () const
 
virtual const StringtraceId () const
 
virtual void * getObject (const String &name) const
 
NamedCountergetObjCounter () const
 
NamedCountersetObjCounter (NamedCounter *counter)
 

Protected Attributes

String m_flags
 
String m_service
 
Regexp m_regmatch
 
String m_template
 
String m_next
 
- Protected Attributes inherited from DnsRecord
int m_ttl
 
int m_order
 
int m_pref
 

Additional Inherited Members

- Static Public Member Functions inherited from DnsRecord
static bool insert (ObjList &list, DnsRecord *rec, bool ascPref)
 
- 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

A NAPTR record.

This class holds a NAPTR (Naming Authority Pointer) record

Constructor & Destructor Documentation

◆ NaptrRecord()

NaptrRecord ( int  ttl,
int  ord,
int  pref,
const char *  flags,
const char *  serv,
const char *  regexp,
const char *  next 
)

Build a NAPTR record

Parameters
ttlRecord Time To Live
ordRecord order
prefRecord preference
flagsInterpretation flags
servAvailable services
regexpSubstitution expression
nextNext name to query

Member Function Documentation

◆ dump()

virtual void dump ( String buf,
const char *  sep = " " 
)
virtual

Dump this record for debug purposes

Parameters
bufDestination buffer
sepFields separator

Reimplemented from DnsRecord.

◆ flags()

const String & flags ( ) const
inline

Retrieve record interpretation flags

Returns
Record interpretation flags

◆ nextName()

const String & nextName ( ) const
inline

Retrieve the next domain name to query

Returns
The next domain to query

◆ regexp()

const Regexp & regexp ( ) const
inline

Retrieve the regular expression match

Returns
Regular expression used in match

◆ replace()

bool replace ( String str) const

Replace the enclosed template in a given string if matching the substitution expression

Parameters
strString to replace
Returns
True on success

◆ repTemplate()

const String & repTemplate ( ) const
inline

Retrieve the template for replacing

Returns
Template used to replace the match

◆ serv()

const String & serv ( ) const
inline

Retrieve available services

Returns
Available services

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