ariba::addressing::rfcomm_endpoint Class Reference

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

Inherits address_convenience< rfcomm_endpoint >.

Collaboration diagram for ariba::addressing::rfcomm_endpoint:

Collaboration graph
[legend]

List of all members.

Public Types

typedef rfcomm_endpoint self

Public Member Functions

 rfcomm_endpoint ()
 rfcomm_endpoint (const rfcomm_endpoint &copy)
 rfcomm_endpoint (const mac_address &mac, const rfcomm_channel_address &channel)
 rfcomm_endpoint (const std::string &mac, const std::string &channel)
 rfcomm_endpoint (const std::string &mac, uint16_t channel)
 rfcomm_endpoint (const std::string &text)
 rfcomm_endpoint (const char *text)
 rfcomm_endpoint (const uint8_t *bytes, size_t size)
bool assign (const self &copy)
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.
const string & type_name () const
 returns the name of the address
uint16_t type_id () const
 returns the id of the address
mac_addressmac ()
const mac_addressmac () const
rfcomm_channel_addresschannel ()
const rfcomm_channel_addresschannel () const

Private Attributes

mac_address mac_
rfcomm_channel_address channel_

Static Private Attributes

static const std::string protocol_name = "rfcomm"


Detailed Description

TODO: Doc

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

Definition at line 30 of file rfcomm_endpoint.hpp.


Member Typedef Documentation

Definition at line 37 of file rfcomm_endpoint.hpp.


Constructor & Destructor Documentation

ariba::addressing::rfcomm_endpoint::rfcomm_endpoint (  )  [inline]

Definition at line 40 of file rfcomm_endpoint.hpp.

ariba::addressing::rfcomm_endpoint::rfcomm_endpoint ( const rfcomm_endpoint copy  )  [inline]

Definition at line 44 of file rfcomm_endpoint.hpp.

References assign().

ariba::addressing::rfcomm_endpoint::rfcomm_endpoint ( const mac_address mac,
const rfcomm_channel_address channel 
) [inline]

Definition at line 48 of file rfcomm_endpoint.hpp.

ariba::addressing::rfcomm_endpoint::rfcomm_endpoint ( const std::string &  mac,
const std::string &  channel 
) [inline]

Definition at line 52 of file rfcomm_endpoint.hpp.

ariba::addressing::rfcomm_endpoint::rfcomm_endpoint ( const std::string &  mac,
uint16_t  channel 
) [inline]

Definition at line 56 of file rfcomm_endpoint.hpp.

ariba::addressing::rfcomm_endpoint::rfcomm_endpoint ( const std::string &  text  )  [inline]

Definition at line 60 of file rfcomm_endpoint.hpp.

References assign().

ariba::addressing::rfcomm_endpoint::rfcomm_endpoint ( const char *  text  )  [inline]

Definition at line 64 of file rfcomm_endpoint.hpp.

References assign().

ariba::addressing::rfcomm_endpoint::rfcomm_endpoint ( const uint8_t *  bytes,
size_t  size 
) [inline]

Definition at line 68 of file rfcomm_endpoint.hpp.

References assign().


Member Function Documentation

bool ariba::addressing::rfcomm_endpoint::assign ( const std::string &  text  )  [inline]

bool ariba::addressing::rfcomm_endpoint::assign ( const uint8_t *  bytes,
size_t  size 
) [inline]

Assigns an address using a bunch of bytes.

Definition at line 105 of file rfcomm_endpoint.hpp.

bool ariba::addressing::rfcomm_endpoint::assign ( const self copy  )  [inline]

Definition at line 72 of file rfcomm_endpoint.hpp.

References channel_, and mac_.

Referenced by rfcomm_endpoint().

const rfcomm_channel_address& ariba::addressing::rfcomm_endpoint::channel (  )  const [inline]

Definition at line 156 of file rfcomm_endpoint.hpp.

References channel_.

rfcomm_channel_address& ariba::addressing::rfcomm_endpoint::channel (  )  [inline]

int ariba::addressing::rfcomm_endpoint::compare_to ( const self rhs  )  const [inline]

bool ariba::addressing::rfcomm_endpoint::is_bytes_size_static (  )  const [inline]

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

Definition at line 89 of file rfcomm_endpoint.hpp.

const mac_address& ariba::addressing::rfcomm_endpoint::mac (  )  const [inline]

Definition at line 148 of file rfcomm_endpoint.hpp.

References mac_.

mac_address& ariba::addressing::rfcomm_endpoint::mac (  )  [inline]

void ariba::addressing::rfcomm_endpoint::to_bytes ( uint8_t *  bytes  )  const [inline]

size_t ariba::addressing::rfcomm_endpoint::to_bytes_size (  )  const [inline]

returns the number of bytes used for serialization of this address

Definition at line 94 of file rfcomm_endpoint.hpp.

References channel_, mac_, ariba::addressing::port_address_tpl< AddressInfo >::to_bytes_size(), and ariba::addressing::mac_address_tpl< AddressInfo >::to_bytes_size().

std::string ariba::addressing::rfcomm_endpoint::to_string (  )  const [inline]

uint16_t ariba::addressing::rfcomm_endpoint::type_id (  )  const [inline]

returns the id of the address

Definition at line 138 of file rfcomm_endpoint.hpp.

const string& ariba::addressing::rfcomm_endpoint::type_name (  )  const [inline]

returns the name of the address

Definition at line 133 of file rfcomm_endpoint.hpp.

References protocol_name.


Member Data Documentation

Definition at line 33 of file rfcomm_endpoint.hpp.

Referenced by assign(), channel(), compare_to(), to_bytes(), to_bytes_size(), and to_string().

Definition at line 32 of file rfcomm_endpoint.hpp.

Referenced by assign(), compare_to(), mac(), to_bytes(), to_bytes_size(), and to_string().

const std::string ariba::addressing::rfcomm_endpoint::protocol_name = "rfcomm" [static, private]

Definition at line 34 of file rfcomm_endpoint.hpp.

Referenced by type_name().


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

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