class XrlArgs


 
LOGO
 Annotated List  Files  Globals  Hierarchy  Index  Top

Public Types

Public Methods

Protected Methods

Protected Members


Detailed Description

typedef list<XrlAtom>::const_iterator const_iterator

const_iterator

typedef list<XrlAtom>::iterator iterator

iterator

XrlAtomNotFound (class)

XrlAtomNotFound

XrlAtomFound (class)

XrlAtomFound

 XrlArgs ()

XrlArgs

explicit  XrlArgs (const char* str)
throw (InvalidString)

XrlArgs

 ~XrlArgs ()

~XrlArgs

XrlArgs&  add (const XrlAtom& xa)
throw (XrlAtomFound)

add

const XrlAtom&  get (const XrlAtom& dataless)
throw (XrlAtomNotFound)

get

[const]

void  remove (const XrlAtom& dataless)
throw (XrlAtomNotFound)

remove

XrlArgs&  add_bool (const char* name, bool val)
throw (XrlAtomFound)

add_bool

const bool_t&  get_bool (const char* name)
throw (XrlAtomNotFound)

get_bool

[const]

void  remove_bool (const char* name)
throw (XrlAtomNotFound)

remove_bool

inline XrlArgs&  add (const char* n, bool v)
throw (XrlAtomFound)

add

inline void  get (const char* n, bool& t)
throw (XrlAtomNotFound)

get

[const]

XrlArgs&  add_int32 (const char* name, int32_t val)
throw (XrlAtomFound)

add_int32

const int32_t&  get_int32 (const char* name)
throw (XrlAtomNotFound)

get_int32

[const]

void  remove_int32 (const char* name)
throw (XrlAtomNotFound)

remove_int32

inline XrlArgs&  add (const char* n, int32_t v)
throw (XrlAtomFound)

add

inline void  get (const char* n, int32_t& t)
throw (XrlAtomNotFound)

get

[const]

XrlArgs&  add_uint32 (const char* name, uint32_t v)
throw (XrlAtomFound)

add_uint32

const uint32_t&  get_uint32 (const char* name)
throw (XrlAtomNotFound)

get_uint32

[const]

void  remove_uint32 (const char* name)
throw (XrlAtomNotFound)

remove_uint32

inline XrlArgs&  add (const char* n, uint32_t v)
throw (XrlAtomFound)

add

inline void  get (const char* n, uint32_t& t)
throw (XrlAtomNotFound)

get

[const]

XrlArgs&  add_ipv4 (const char* n, const IPv4& a)
throw (XrlAtomFound)

add_ipv4

const IPv4&  get_ipv4 (const char* name)
throw (XrlAtomNotFound)

get_ipv4

[const]

void  remove_ipv4 (const char* name)
throw (XrlAtomNotFound)

remove_ipv4

inline XrlArgs&  add (const char* n, const IPv4& a)
throw (XrlAtomFound)

add

inline void  get (const char* n, IPv4& a)
throw (XrlAtomNotFound)

get

[const]

XrlArgs&  add_ipv4net (const char* n, const IPv4Net& a)
throw (XrlAtomFound)

add_ipv4net

const IPv4Net&  get_ipv4net (const char* name)
throw (XrlAtomNotFound)

get_ipv4net

[const]

void  remove_ipv4net (const char* name)
throw (XrlAtomNotFound)

remove_ipv4net

inline XrlArgs&  add (const char* n, const IPv4Net& v)
throw (XrlAtomFound)

add

inline void  get (const char* n, IPv4Net& t)
throw (XrlAtomNotFound)

get

[const]

XrlArgs&  add_ipv6 (const char* name, const IPv6& addr)
throw (XrlAtomFound)

add_ipv6

const IPv6&  get_ipv6 (const char* name)
throw (XrlAtomNotFound)

get_ipv6

[const]

void  remove_ipv6 (const char* name)
throw (XrlAtomNotFound)

remove_ipv6

inline XrlArgs&  add (const char* n, const IPv6& a)
throw (XrlAtomFound)

add

inline void  get (const char* n, IPv6& a)
throw (XrlAtomNotFound)

get

[const]

XrlArgs&  add_ipv6net (const char* name, const IPv6Net& addr)
throw (XrlAtomFound)

add_ipv6net

const IPv6Net&  get_ipv6net (const char* name)
throw (XrlAtomNotFound)

get_ipv6net

[const]

void  remove_ipv6net (const char* name)
throw (XrlAtomNotFound)

remove_ipv6net

inline XrlArgs&  add (const char* n, const IPv6Net& a)
throw (XrlAtomFound)

add

inline void  get (const char* n, IPv6Net& a)
throw (XrlAtomNotFound)

get

[const]

XrlArgs&  add_ipvx (const char* name, const IPvX& ipvx)
throw (XrlAtomFound)

add_ipvx

const IPvX  get_ipvx (const char* name)
throw (XrlAtomNotFound)

get_ipvx

[const]

void  remove_ipvx (const char* name)
throw (XrlAtomNotFound)

remove_ipvx

inline XrlArgs&  add (const char* n, const IPvX& a)
throw (XrlAtomFound)

add

inline void  get (const char* n, IPvX& a)
throw (XrlAtomNotFound)

get

[const]

XrlArgs&  add_ipvxnet (const char* name, const IPvXNet& ipvxnet)
throw (XrlAtomFound)

add_ipvxnet

const IPvXNet  get_ipvxnet (const char* name)
throw (XrlAtomNotFound)

get_ipvxnet

[const]

void  remove_ipvxnet (const char* name)
throw (XrlAtomNotFound)

remove_ipvxnet

inline XrlArgs&  add (const char* n, const IPvXNet& a)
throw (XrlAtomFound)

add

inline void  get (const char* n, IPvXNet& a)
throw (XrlAtomNotFound)

get

[const]

XrlArgs&  add_mac (const char* name, const Mac& addr)
throw (XrlAtomFound)

add_mac

const Mac&  get_mac (const char* name)
throw (XrlAtomNotFound)

get_mac

[const]

void  remove_mac (const char* name)
throw (XrlAtomNotFound)

remove_mac

inline XrlArgs&  add (const char* n, const Mac& a)
throw (XrlAtomFound)

add

inline void  get (const char* n, Mac& a)
throw (XrlAtomNotFound)

get

[const]

XrlArgs&  add_string (const char* name, const string& addr)
throw (XrlAtomFound)

add_string

const string&  get_string (const char* name)
throw (XrlAtomNotFound)

get_string

[const]

void  remove_string (const char* name)
throw (XrlAtomNotFound)

remove_string

inline XrlArgs&  add (const char* n, const string& a)
throw (XrlAtomFound)

add

inline void  get (const char* n, string& a)
throw (XrlAtomNotFound)

get

[const]

XrlArgs&  add_list (const char* name, const XrlAtomList& addr)
throw (XrlAtomFound)

add_list

const XrlAtomList&  get_list (const char* name)
throw (XrlAtomNotFound)

get_list

[const]

void  remove_list (const char* name)
throw (XrlAtomNotFound)

remove_list

inline XrlArgs&  add (const char* n, const XrlAtomList& a)
throw (XrlAtomFound)

add

inline void  get (const char* n, XrlAtomList& a)
throw (XrlAtomNotFound)

get

[const]

XrlArgs&  add_binary (const char* name, const vector<uint8_t>& addr)
throw (XrlAtomFound)

add_binary

const vector<uint8_t>&  get_binary (const char* name)
throw (XrlAtomNotFound)

get_binary

[const]

void  remove_binary (const char* name)
throw (XrlAtomNotFound)

remove_binary

inline XrlArgs&  add (const char* n, const vector<uint8_t>& a)
throw (XrlAtomFound)

add

inline void  get (const char* n, vector<uint8_t>& a)
throw (XrlAtomNotFound)

get

[const]

XrlArgs&  add (const XrlArgs& args)
throw (XrlAtomFound)

add

bool  matches_template (XrlArgs& t)

matches_template

[const]

bool  operator== (const XrlArgs& t)

operator==

[const]

size_t  size ()

size

[const]

const XrlAtom&  operator[] (uint32_t index)

operator[]

[const]

inline const XrlAtom&  item (uint32_t index)

item

[const]

const XrlAtom&  operator[] (const string& name)
throw (XrlAtomNotFound)

operator[]

[const]

inline const XrlAtom&  item (const string& name)
throw (XrlAtomNotFound)

item

[const]

inline void  push_front (const XrlAtom& xa)

push_front

inline const XrlAtom&  front ()
throw (XrlAtomNotFound)

front

inline void  pop_front ()
throw (XrlAtomNotFound)

pop_front

inline void  push_back (const XrlAtom& xa)

push_back

inline const XrlAtom&  back ()
throw (XrlAtomNotFound)

back

inline void  pop_back ()
throw (XrlAtomNotFound)

pop_back

inline const_iterator  begin ()

begin

[const]

inline const_iterator  end ()

end

[const]

inline void  clear ()

clear

inline bool  empty ()

empty

inline void  swap (XrlArgs& xa)

swap

size_t  packed_bytes ()

packed_bytes

[const]

Get number of bytes needed to pack atoms contained within instance.

size_t  pack (uint8_t* buffer, size_t buffer_bytes)

pack

[const]

Pack contained atoms into a byte array. The size of the byte array should be larger or equal to the value returned by packed_bytes().

Parameters:

bufferbuffer to receive data.
buffer_bytessize of buffer.

Returns: size of packed data on success, 0 on failure.

size_t  unpack (const uint8_t* buffer, size_t buffer_bytes)

unpack

Unpack atoms from byte array into instance. The atoms are appended to the list of atoms associated with instance.

Parameters:

bufferto read data from.
buffer_bytessize of buffer. The size should exactly match number of bytes of packed atoms, ie packed_bytes() value used when packing.

Returns: number of bytes turned into atoms on success, 0 on failure.

string  str ()

str

[const]

void  check_not_found (const XrlAtom &xa)
throw (XrlAtomFound)

check_not_found

[protected]

list<XrlAtom> _args

_args

[protected]

inline XrlArgs&  add (const char* n, bool v)
throw (XrlAtomFound)

add

[protected]

inline void  get (const char* n, bool& t)
throw (XrlAtomNotFound)

get

[protected const]

inline XrlArgs&  add (const char* n, int32_t v)
throw (XrlAtomFound)

add

[protected]

inline void  get (const char* n, int32_t& t)
throw (XrlAtomNotFound)

get

[protected const]

inline XrlArgs&  add (const char* n, uint32_t v)
throw (XrlAtomFound)

add

[protected]

inline void  get (const char* n, uint32_t& t)
throw (XrlAtomNotFound)

get

[protected const]

inline XrlArgs&  add (const char* n, const IPv4& a)
throw (XrlAtomFound)

add

[protected]

inline void  get (const char* n, IPv4& a)
throw (XrlAtomNotFound)

get

[protected const]

inline XrlArgs&  add (const char* n, const IPv4Net& v)
throw (XrlAtomFound)

add

[protected]

inline void  get (const char* n, IPv4Net& t)
throw (XrlAtomNotFound)

get

[protected const]

inline XrlArgs&  add (const char* n, const IPv6& a)
throw (XrlAtomFound)

add

[protected]

inline void  get (const char* n, IPv6& a)
throw (XrlAtomNotFound)

get

[protected const]

inline XrlArgs&  add (const char* n, const IPv6Net& a)
throw (XrlAtomFound)

add

[protected]

inline void  get (const char* n, IPv6Net& a)
throw (XrlAtomNotFound)

get

[protected const]

inline XrlArgs&  add (const char* n, const IPvX& a)
throw (XrlAtomFound)

add

[protected]

inline void  get (const char* n, IPvX& a)
throw (XrlAtomNotFound)

get

[protected const]

inline XrlArgs&  add (const char* n, const IPvXNet& a)
throw (XrlAtomFound)

add

[protected]

inline void  get (const char* n, IPvXNet& a)
throw (XrlAtomNotFound)

get

[protected const]

inline XrlArgs&  add (const char* n, const Mac& a)
throw (XrlAtomFound)

add

[protected]

inline void  get (const char* n, Mac& a)
throw (XrlAtomNotFound)

get

[protected const]

inline XrlArgs&  add (const char* n, const string& a)
throw (XrlAtomFound)

add

[protected]

inline void  get (const char* n, string& a)
throw (XrlAtomNotFound)

get

[protected const]

inline XrlArgs&  add (const char* n, const vector<uint8_t>& a)
throw (XrlAtomFound)

add

[protected]

inline void  get (const char* n, vector<uint8_t>& a)
throw (XrlAtomNotFound)

get

[protected const]

inline const XrlAtom&  item (uint32_t index)

item

[protected const]

inline const XrlAtom&  item (const string& name)
throw (XrlAtomNotFound)

item

[protected const]

inline void  push_front (const XrlAtom& xa)

push_front

[protected]

inline const XrlAtom&  front ()
throw (XrlAtomNotFound)

front

[protected]

inline void  pop_front ()
throw (XrlAtomNotFound)

pop_front

[protected]

inline void  push_back (const XrlAtom& xa)

push_back

[protected]

inline const XrlAtom&  back ()
throw (XrlAtomNotFound)

back

[protected]

inline void  pop_back ()
throw (XrlAtomNotFound)

pop_back

[protected]


Generated by: pavlin on possum.icir.org on Wed Apr 13 21:52:50 2005, using kdoc $.