ariba::addressing::port_address_tpl< AddressInfo > Class Template Reference

#include <source/ariba/utility/addressing/port_address.hpp>

Inherits address_convenience< port_address_tpl< AddressInfo > >.

Collaboration diagram for ariba::addressing::port_address_tpl< AddressInfo >:

Collaboration graph
[legend]

List of all members.

Public Types

typedef port_address_tpl
< AddressInfo > 
self

Public Member Functions

 port_address_tpl ()
 port_address_tpl (const port_address_tpl &copy)
 port_address_tpl (const std::string &text)
 port_address_tpl (const char *text)
 port_address_tpl (uint16_t port)
 port_address_tpl (const uint8_t *bytes, size_t size)
int compare_to (const self &rhs) const
 implements comparison operators
bool is_bytes_size_static () const
 returns true, if this address has a fixed size in bytes
size_t to_bytes_size () const
 returns the number of bytes used for serialization of this address
void to_bytes (uint8_t *bytes) const
 converts this address to a binary representation
bool assign (const uint8_t *bytes, size_t size)
 Assigns an address using a bunch of bytes.
std::string to_string () const
 convert address to a string that can be used to reconstruct the address
bool assign (const std::string &text)
 Assigns an address using a human-readable.
bool assign (const self &rhs)
 Assigns an address.
const std::string & type_name () const
 returns the type name
const uint16_t type_id () const
 returns the type identifier
uint16_t asio () const
void asio (uint16_t port)
uint16_t value () const
void value (uint16_t v)

Private Attributes

uint16_t port


Detailed Description

template<class AddressInfo = port_address_info>
class ariba::addressing::port_address_tpl< AddressInfo >

TODO: Doc

Author:
Sebastian Mies <mies@tm.uka.de>

Definition at line 25 of file port_address.hpp.


Member Typedef Documentation

template<class AddressInfo = port_address_info>
typedef port_address_tpl<AddressInfo> ariba::addressing::port_address_tpl< AddressInfo >::self

Definition at line 31 of file port_address.hpp.


Constructor & Destructor Documentation

template<class AddressInfo = port_address_info>
ariba::addressing::port_address_tpl< AddressInfo >::port_address_tpl (  )  [inline]

Definition at line 33 of file port_address.hpp.

template<class AddressInfo = port_address_info>
ariba::addressing::port_address_tpl< AddressInfo >::port_address_tpl ( const port_address_tpl< AddressInfo > &  copy  )  [inline]

Definition at line 37 of file port_address.hpp.

template<class AddressInfo = port_address_info>
ariba::addressing::port_address_tpl< AddressInfo >::port_address_tpl ( const std::string &  text  )  [inline]

Definition at line 41 of file port_address.hpp.

template<class AddressInfo = port_address_info>
ariba::addressing::port_address_tpl< AddressInfo >::port_address_tpl ( const char *  text  )  [inline]

Definition at line 45 of file port_address.hpp.

template<class AddressInfo = port_address_info>
ariba::addressing::port_address_tpl< AddressInfo >::port_address_tpl ( uint16_t  port  )  [inline]

Definition at line 49 of file port_address.hpp.

template<class AddressInfo = port_address_info>
ariba::addressing::port_address_tpl< AddressInfo >::port_address_tpl ( const uint8_t *  bytes,
size_t  size 
) [inline]

Definition at line 53 of file port_address.hpp.


Member Function Documentation

template<class AddressInfo = port_address_info>
void ariba::addressing::port_address_tpl< AddressInfo >::asio ( uint16_t  port  )  [inline]

Definition at line 134 of file port_address.hpp.

template<class AddressInfo = port_address_info>
uint16_t ariba::addressing::port_address_tpl< AddressInfo >::asio (  )  const [inline]

template<class AddressInfo = port_address_info>
bool ariba::addressing::port_address_tpl< AddressInfo >::assign ( const self rhs  )  [inline]

Assigns an address.

Definition at line 111 of file port_address.hpp.

template<class AddressInfo = port_address_info>
bool ariba::addressing::port_address_tpl< AddressInfo >::assign ( const std::string &  text  )  [inline]

Assigns an address using a human-readable.

Definition at line 98 of file port_address.hpp.

template<class AddressInfo = port_address_info>
bool ariba::addressing::port_address_tpl< AddressInfo >::assign ( const uint8_t *  bytes,
size_t  size 
) [inline]

template<class AddressInfo = port_address_info>
int ariba::addressing::port_address_tpl< AddressInfo >::compare_to ( const self rhs  )  const [inline]

implements comparison operators

Definition at line 60 of file port_address.hpp.

Referenced by ariba::addressing::tcpip_endpoint::compare_to(), and ariba::addressing::rfcomm_endpoint::compare_to().

template<class AddressInfo = port_address_info>
bool ariba::addressing::port_address_tpl< AddressInfo >::is_bytes_size_static (  )  const [inline]

returns true, if this address has a fixed size in bytes

Definition at line 67 of file port_address.hpp.

template<class AddressInfo = port_address_info>
void ariba::addressing::port_address_tpl< AddressInfo >::to_bytes ( uint8_t *  bytes  )  const [inline]

converts this address to a binary representation

Definition at line 77 of file port_address.hpp.

Referenced by ariba::addressing::tcpip_endpoint::to_bytes(), and ariba::addressing::rfcomm_endpoint::to_bytes().

template<class AddressInfo = port_address_info>
size_t ariba::addressing::port_address_tpl< AddressInfo >::to_bytes_size (  )  const [inline]

returns the number of bytes used for serialization of this address

Definition at line 72 of file port_address.hpp.

Referenced by ariba::addressing::tcpip_endpoint::to_bytes_size(), ariba::addressing::rfcomm_endpoint::to_bytes_size(), and ariba::addressing::endpoint_set::to_bytes_size().

template<class AddressInfo = port_address_info>
std::string ariba::addressing::port_address_tpl< AddressInfo >::to_string (  )  const [inline]

convert address to a string that can be used to reconstruct the address

Definition at line 91 of file port_address.hpp.

Referenced by ariba::addressing::tcpip_endpoint::to_string(), and ariba::addressing::rfcomm_endpoint::to_string().

template<class AddressInfo = port_address_info>
const uint16_t ariba::addressing::port_address_tpl< AddressInfo >::type_id (  )  const [inline]

returns the type identifier

Definition at line 124 of file port_address.hpp.

template<class AddressInfo = port_address_info>
const std::string& ariba::addressing::port_address_tpl< AddressInfo >::type_name (  )  const [inline]

returns the type name

Definition at line 119 of file port_address.hpp.

template<class AddressInfo = port_address_info>
void ariba::addressing::port_address_tpl< AddressInfo >::value ( uint16_t  v  )  [inline]

Definition at line 142 of file port_address.hpp.

template<class AddressInfo = port_address_info>
uint16_t ariba::addressing::port_address_tpl< AddressInfo >::value (  )  const [inline]


Member Data Documentation

template<class AddressInfo = port_address_info>
uint16_t ariba::addressing::port_address_tpl< AddressInfo >::port [private]


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

Generated on Fri Aug 14 23:39:15 2009 for Ariba by  doxygen 1.5.8