typedef list<XrlAtom>::const_iterator const_iterator | const_iterator |
typedef list<XrlAtom>::iterator iterator | iterator |
BadArgs (struct) | BadArgs |
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 (BadArgs) | get_bool |
[const]
void remove_bool (const char* name)
throw (XrlAtomNotFound) | remove_bool |
XrlArgs& add (const char* n, bool v)
throw (XrlAtomFound) | add |
void get (const char* n, bool& t)
throw (BadArgs) | get |
[const]
XrlArgs& add_int32 (const char* name, int32_t val)
throw (XrlAtomFound) | add_int32 |
const int32_t& get_int32 (const char* name)
throw (BadArgs) | get_int32 |
[const]
void remove_int32 (const char* name)
throw (XrlAtomNotFound) | remove_int32 |
XrlArgs& add (const char* n, int32_t v)
throw (XrlAtomFound) | add |
void get (const char* n, int32_t& t)
throw (BadArgs) | get |
[const]
XrlArgs& add_uint32 (const char* name, uint32_t v)
throw (XrlAtomFound) | add_uint32 |
const uint32_t& get_uint32 (const char* name)
throw (BadArgs) | get_uint32 |
[const]
void remove_uint32 (const char* name)
throw (XrlAtomNotFound) | remove_uint32 |
XrlArgs& add (const char* n, uint32_t v)
throw (XrlAtomFound) | add |
void get (const char* n, uint32_t& t)
throw (BadArgs) | get |
[const]
XrlArgs& add_ipv4 (const char* n, const IPv4& a)
throw (XrlAtomFound) | add_ipv4 |
const IPv4& get_ipv4 (const char* name)
throw (BadArgs) | get_ipv4 |
[const]
void remove_ipv4 (const char* name)
throw (XrlAtomNotFound) | remove_ipv4 |
XrlArgs& add (const char* n, const IPv4& a)
throw (XrlAtomFound) | add |
void get (const char* n, IPv4& a)
throw (BadArgs) | get |
[const]
XrlArgs& add_ipv4net (const char* n, const IPv4Net& a)
throw (XrlAtomFound) | add_ipv4net |
const IPv4Net& get_ipv4net (const char* name)
throw (BadArgs) | get_ipv4net |
[const]
void remove_ipv4net (const char* name)
throw (XrlAtomNotFound) | remove_ipv4net |
XrlArgs& add (const char* n, const IPv4Net& v)
throw (XrlAtomFound) | add |
void get (const char* n, IPv4Net& t)
throw (BadArgs) | get |
[const]
XrlArgs& add_ipv6 (const char* name, const IPv6& addr)
throw (XrlAtomFound) | add_ipv6 |
const IPv6& get_ipv6 (const char* name)
throw (BadArgs) | get_ipv6 |
[const]
void remove_ipv6 (const char* name)
throw (XrlAtomNotFound) | remove_ipv6 |
XrlArgs& add (const char* n, const IPv6& a)
throw (XrlAtomFound) | add |
void get (const char* n, IPv6& a)
throw (BadArgs) | get |
[const]
XrlArgs& add_ipv6net (const char* name, const IPv6Net& addr)
throw (XrlAtomFound) | add_ipv6net |
const IPv6Net& get_ipv6net (const char* name)
throw (BadArgs) | get_ipv6net |
[const]
void remove_ipv6net (const char* name)
throw (XrlAtomNotFound) | remove_ipv6net |
XrlArgs& add (const char* n, const IPv6Net& a)
throw (XrlAtomFound) | add |
void get (const char* n, IPv6Net& a)
throw (BadArgs) | get |
[const]
XrlArgs& add_ipvx (const char* name, const IPvX& ipvx)
throw (XrlAtomFound) | add_ipvx |
const IPvX get_ipvx (const char* name)
throw (BadArgs) | get_ipvx |
[const]
void remove_ipvx (const char* name)
throw (XrlAtomNotFound) | remove_ipvx |
XrlArgs& add (const char* n, const IPvX& a)
throw (XrlAtomFound) | add |
void get (const char* n, IPvX& a)
throw (BadArgs) | get |
[const]
XrlArgs& add_ipvxnet (const char* name, const IPvXNet& ipvxnet)
throw (XrlAtomFound) | add_ipvxnet |
const IPvXNet get_ipvxnet (const char* name)
throw (BadArgs) | get_ipvxnet |
[const]
void remove_ipvxnet (const char* name)
throw (XrlAtomNotFound) | remove_ipvxnet |
XrlArgs& add (const char* n, const IPvXNet& a)
throw (XrlAtomFound) | add |
void get (const char* n, IPvXNet& a)
throw (BadArgs) | get |
[const]
XrlArgs& add_mac (const char* name, const Mac& addr)
throw (XrlAtomFound) | add_mac |
const Mac& get_mac (const char* name)
throw (BadArgs) | get_mac |
[const]
void remove_mac (const char* name)
throw (XrlAtomNotFound) | remove_mac |
XrlArgs& add (const char* n, const Mac& a)
throw (XrlAtomFound) | add |
void get (const char* n, Mac& a)
throw (BadArgs) | get |
[const]
XrlArgs& add_string (const char* name, const string& addr)
throw (XrlAtomFound) | add_string |
const string& get_string (const char* name)
throw (BadArgs) | get_string |
[const]
void remove_string (const char* name)
throw (XrlAtomNotFound) | remove_string |
XrlArgs& add (const char* n, const string& a)
throw (XrlAtomFound) | add |
void get (const char* n, string& a)
throw (BadArgs) | get |
[const]
XrlArgs& add_list (const char* name, const XrlAtomList& addr)
throw (XrlAtomFound) | add_list |
const XrlAtomList& get_list (const char* name)
throw (BadArgs) | get_list |
[const]
void remove_list (const char* name)
throw (XrlAtomNotFound) | remove_list |
XrlArgs& add (const char* n, const XrlAtomList& a)
throw (XrlAtomFound) | add |
void get (const char* n, XrlAtomList& a)
throw (BadArgs) | 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 (BadArgs) | get_binary |
[const]
void remove_binary (const char* name)
throw (XrlAtomNotFound) | remove_binary |
XrlArgs& add (const char* n, const vector<uint8_t>& a)
throw (XrlAtomFound) | add |
void get (const char* n, vector<uint8_t>& a)
throw (BadArgs) | get |
[const]
XrlArgs& add_int64 (const char* name, int64_t v)
throw (XrlAtomFound) | add_int64 |
const int64_t& get_int64 (const char* name)
throw (BadArgs) | get_int64 |
[const]
void remove_int64 (const char* name)
throw (XrlAtomNotFound) | remove_int64 |
XrlArgs& add (const char* n, int64_t v)
throw (XrlAtomFound) | add |
void get (const char* n, int64_t& t)
throw (BadArgs) | get |
[const]
XrlArgs& add_uint64 (const char* name, uint64_t v)
throw (XrlAtomFound) | add_uint64 |
const uint64_t& get_uint64 (const char* name)
throw (BadArgs) | get_uint64 |
[const]
void remove_uint64 (const char* name)
throw (XrlAtomNotFound) | remove_uint64 |
XrlArgs& add (const char* n, uint64_t v)
throw (XrlAtomFound) | add |
void get (const char* n, uint64_t& t)
throw (BadArgs) | 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]
const XrlAtom& item (uint32_t index)
| item |
[const]
const XrlAtom& operator[] (const string& name)
throw (XrlAtomNotFound) | operator[] |
[const]
const XrlAtom& item (const string& name)
throw (XrlAtomNotFound) | item |
[const]
void push_front (const XrlAtom& xa)
| push_front |
const XrlAtom& front ()
throw (XrlAtomNotFound) | front |
void pop_front ()
throw (XrlAtomNotFound) | pop_front |
void push_back (const XrlAtom& xa)
| push_back |
const XrlAtom& back ()
throw (XrlAtomNotFound) | back |
void pop_back ()
throw (XrlAtomNotFound) | pop_back |
const_iterator begin ()
| begin |
[const]
const_iterator end ()
| end |
[const]
void clear ()
| clear |
bool empty ()
| empty |
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:
buffer | buffer to receive data. |
buffer_bytes | size 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:
buffer | to read data from. |
buffer_bytes | size 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 (BadArgs) | 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 (BadArgs) | 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 (BadArgs) | 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 (BadArgs) | 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 (BadArgs) | 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 (BadArgs) | 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 (BadArgs) | 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 (BadArgs) | 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 (BadArgs) | 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 (BadArgs) | 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 (BadArgs) | get |
[protected const]
inline XrlArgs&
add (const char* n, const XrlAtomList& a)
throw (XrlAtomFound) | add |
[protected]
inline void
get (const char* n, XrlAtomList& a)
throw (BadArgs) | 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 (BadArgs) | get |
[protected const]
inline XrlArgs&
add (const char* n, int64_t v)
throw (XrlAtomFound) | add |
[protected]
inline void
get (const char* n, int64_t& t)
throw (BadArgs) | get |
[protected const]
inline XrlArgs&
add (const char* n, uint64_t v)
throw (XrlAtomFound) | add |
[protected]
inline void
get (const char* n, uint64_t& t)
throw (BadArgs) | 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]