Yate: TxtRecord Class Reference

Yate

- Main Page
- Namespaces
- Classes
- Files

- Class List
- Class Hierarchy
- Class Members

Public Member Functions | Static Public Member Functions | Protected Attributes | List of all members
TxtRecord Class Reference

A text based DNS record. More...

`#include <yateclass.h>`

Inheritance diagram for TxtRecord:

## Public Member Functions
| TxtRecord (int ttl, const char *text)
const String & | text () const
virtual void | dump (String &buf, const char *sep=" ")
Public Member Functions inherited from DnsRecord
| DnsRecord (int ttl, int order, int pref)
| DnsRecord ()
int | ttl () const
int | order () const
int | pref () const
Public Member Functions inherited from GenObject
| GenObject ()
virtual | ~GenObject ()
virtual bool | alive () const
virtual void | destruct ()
virtual const String & | toString () const
virtual const String & | traceId () const
virtual void * | getObject (const String &name) const
NamedCounter * | getObjCounter () const
NamedCounter * | setObjCounter (NamedCounter *counter)

## Static Public Member Functions
static void | copy (ObjList &dest, const ObjList &src)
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 NamedCounter * | getObjCounter (const String &name, bool create=true)
static ObjList & | getObjCounters ()

## Protected Attributes
String | m_text
Protected Attributes inherited from DnsRecord
int | m_ttl
int | m_order
int | m_pref

## Detailed Description

A text based DNS record.

This class holds a A, AAAA or TXT record from DNS

## Constructor & Destructor Documentation

TxtRecord | ( | int | ttl,
|  | const char * | text
| ) |  |
| inline

Build a TXT record

Parameters

  ttl | Record Time To Live
  text | Text content of the record

## Member Function Documentation

static void copy | ( | ObjList & | dest,
|  | const ObjList & | src
| ) |  |
| static

Copy a TxtRecord list into another one

Parameters

  dest | Destination list
  src | Source list

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

Dump this record for debug purposes

Parameters

  buf | Destination buffer
  sep | Fields separator

Reimplemented from DnsRecord.

const String& text | ( |  | ) | const
| inline

Retrieve the record text

Returns
  Record text

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

- yateclass.h