DomainPlug-insDocumentation
Public Member Functions | Private Attributes | Friends
DTExtData Class Reference

; More...

#include <DomainPluginTypes.h>

Public Member Functions

 DTExtData ()
 DTExtData (const map< Str, Str > &m)
const Str operator[] (const Str &key) const
bool isExist (const Str &key)
bool next () const
const Str & getKey () const
const Str & getValue () const
void add (const Str &key, const Str &val)
void set (const Str &key, const Str &val)
bool exists (const Str &key) const
DTExtDataoperator= (const DTExtData &t)
 DTExtData (const DTExtData &t)

Private Attributes

map< Str, Str > pdata
map< Str, Str >::const_iterator iCur

Friends

class DTExtDataSerializer

Detailed Description

;

Usually using as attribute of Domains, Contacts or NameServer (additional info)


Constructor & Destructor Documentation

DTExtData::DTExtData ( ) [inline]
DTExtData::DTExtData ( const map< Str, Str > &  m) [inline]
DTExtData::DTExtData ( const DTExtData t) [inline]

Member Function Documentation

void DTExtData::add ( const Str &  key,
const Str &  val 
) [inline]

adding new pair of ParameterName,Value.

Parameters:
keyname of parameter
valvalue of parameter
bool DTExtData::exists ( const Str &  key) const [inline]
Parameters:
keyname of parameter in Extension Data.
Returns:
False in case there is no parameter with name key.
const Str& DTExtData::getKey ( ) const [inline]
Todo:
Possible SIGFAULT if call get on empty list (get == end)
Returns:
name of parameter by current position of cursor.
const Str& DTExtData::getValue ( ) const [inline]
Todo:
Possible SIGFAULT if call get on empty list (get == end)
Returns:
value of parameter by current position of cursor.
bool DTExtData::isExist ( const Str &  key) [inline]
Parameters:
keyname of parameter in Extension Data.
Returns:
False in case there is no parameter with name key.
bool DTExtData::next ( ) const [inline]

Move cursor to next position.

Returns:
False if there is no more elements, otherwise True. After you get False call method again to restart from beginning of list.
See also:
DTNameServers::nex()
DTExtData& DTExtData::operator= ( const DTExtData t) [inline]
const Str DTExtData::operator[] ( const Str &  key) const [inline]
Parameters:
keyname of parameter in Extension Data.
Returns:
value of parameter of Extension Data
void DTExtData::set ( const Str &  key,
const Str &  val 
) [inline]

set a value to existing key or reset the Value.

Parameters:
keyname of parameter
valvalue of parameter

Friends And Related Function Documentation

friend class DTExtDataSerializer [friend]

Field Documentation

map<Str, Str>::const_iterator DTExtData::iCur [mutable, private]
map<Str, Str> DTExtData::pdata [private]

The documentation for this class was generated from the following file:
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines