#include <source/ariba/utility/addressing/facades/address_v.hpp>
Inherits address_convenience< address_v >.
Inherited by vobject_hull< NonVirtual, ariba::addressing::address_v, AdaptorType >.
Public Member Functions | |
virtual string | to_string () const =0 |
convert address to a string that can be used to reconstruct the address | |
virtual bool | assign (const std::string &text)=0 |
Assigns an address using a human-readable. | |
virtual bool | is_bytes_size_static () const =0 |
returns true, if this address has a fixed size in bytes | |
virtual size_t | to_bytes_size () const =0 |
returns the number of bytes used for serialization of this address | |
virtual void | to_bytes (uint8_t *bytes) const =0 |
converts this address to a binary representation | |
virtual bool | assign (const uint8_t *bytes, size_t size)=0 |
Assigns an address using a bunch of bytes. | |
virtual int | compare_to (const address_v &rhs) const =0 |
implements comparison operators | |
virtual bool | assign (const address_v &rhs)=0 |
Assigns an address. | |
virtual const string & | type_name () const =0 |
returns the name of the address | |
virtual uint16_t | type_id () const =0 |
sets the type id, if possible | |
virtual void * | data (const std::type_info &type)=0 |
Obtain the underlaying data type or null if it does not match the type. | |
virtual address_v * | clone () const =0 |
Clones this address. | |
template<class T > | |
bool | instanceof () const |
template<class T > | |
operator T & () | |
cast operator to detailed type | |
template<class T > | |
operator T () const | |
cast operator to detailed type | |
template<class T > | |
operator const T & () const | |
cast operator to detailed type |
Definition at line 25 of file address_v.hpp.
virtual bool ariba::addressing::address_v::assign | ( | const address_v & | rhs | ) | [pure virtual] |
Assigns an address.
Implemented in vobject_hull< NonVirtual, ariba::addressing::address_v, AdaptorType >.
virtual bool ariba::addressing::address_v::assign | ( | const uint8_t * | bytes, | |
size_t | size | |||
) | [pure virtual] |
Assigns an address using a bunch of bytes.
Implemented in vobject_hull< NonVirtual, ariba::addressing::address_v, AdaptorType >.
virtual bool ariba::addressing::address_v::assign | ( | const std::string & | text | ) | [pure virtual] |
Assigns an address using a human-readable.
Implemented in vobject_hull< NonVirtual, ariba::addressing::address_v, AdaptorType >.
virtual address_v* ariba::addressing::address_v::clone | ( | ) | const [pure virtual] |
Clones this address.
Implemented in vobject_hull< NonVirtual, ariba::addressing::address_v, AdaptorType >.
Referenced by ariba::communication::BaseCommunication::add_endpoint(), and ariba::communication::BaseCommunication::receiveMessage().
virtual int ariba::addressing::address_v::compare_to | ( | const address_v & | rhs | ) | const [pure virtual] |
implements comparison operators
Implemented in vobject_hull< NonVirtual, ariba::addressing::address_v, AdaptorType >.
virtual void* ariba::addressing::address_v::data | ( | const std::type_info & | type | ) | [pure virtual] |
Obtain the underlaying data type or null if it does not match the type.
Implemented in vobject_hull< NonVirtual, ariba::addressing::address_v, AdaptorType >.
Referenced by vobject_hull< NonVirtual, ariba::addressing::address_v, AdaptorType >::conv(), instanceof(), operator const T &(), and operator T &().
bool ariba::addressing::address_v::instanceof | ( | ) | const [inline] |
Definition at line 78 of file address_v.hpp.
References data().
Referenced by ariba::transport::transport_peer::send(), and ariba::transport::transport_peer::terminate().
virtual bool ariba::addressing::address_v::is_bytes_size_static | ( | ) | const [pure virtual] |
returns true, if this address has a fixed size in bytes
Implemented in vobject_hull< NonVirtual, ariba::addressing::address_v, AdaptorType >.
ariba::addressing::address_v::operator const T & | ( | ) | const [inline] |
ariba::addressing::address_v::operator T | ( | ) | const [inline] |
ariba::addressing::address_v::operator T & | ( | ) | [inline] |
virtual void ariba::addressing::address_v::to_bytes | ( | uint8_t * | bytes | ) | const [pure virtual] |
converts this address to a binary representation
Implemented in vobject_hull< NonVirtual, ariba::addressing::address_v, AdaptorType >.
virtual size_t ariba::addressing::address_v::to_bytes_size | ( | ) | const [pure virtual] |
returns the number of bytes used for serialization of this address
Implemented in vobject_hull< NonVirtual, ariba::addressing::address_v, AdaptorType >.
virtual string ariba::addressing::address_v::to_string | ( | ) | const [pure virtual] |
convert address to a string that can be used to reconstruct the address
Implemented in vobject_hull< NonVirtual, ariba::addressing::address_v, AdaptorType >.
Referenced by ariba::overlay::BaseOverlay::onLinkRequest(), ariba::communication::BaseCommunication::receiveMessage(), and ariba::transport::transport_peer::send().
virtual uint16_t ariba::addressing::address_v::type_id | ( | ) | const [pure virtual] |
sets the type id, if possible
Implemented in vobject_hull< NonVirtual, ariba::addressing::address_v, AdaptorType >.
Referenced by ariba::communication::BaseCommunication::add_endpoint(), and ariba::communication::BaseCommunication::remove_endpoint().
virtual const string& ariba::addressing::address_v::type_name | ( | ) | const [pure virtual] |
returns the name of the address
Implemented in vobject_hull< NonVirtual, ariba::addressing::address_v, AdaptorType >.