dtn::TcaEndpointID Class Reference

#include <TcaEndpointID.h>

Inheritance diagram for dtn::TcaEndpointID:

dtn::EndpointID oasys::SerializableObject List of all members.

Detailed Description

Definition at line 57 of file servlib/routing/TcaEndpointID.h.

Public Member Functions

 TcaEndpointID ()
 TcaEndpointID (const EndpointID &eid)
 TcaEndpointID (const std::string &str)
 TcaEndpointID (const std::string &host, const std::string &app)
 TcaEndpointID (const TcaEndpointID &eid)
const std::string & host () const
const std::string & app () const
void set_host (const std::string &host)
void set_app (const std::string &app)
const std::string get_hostid () const

Static Public Member Functions

static std::string build (const std::string &host, const std::string &app)

Protected Member Functions

void parse ()
 Extract and look up the scheme and ssp.

Protected Attributes

std::string host_
std::string app_


Constructor & Destructor Documentation

dtn::TcaEndpointID::TcaEndpointID (  )  [inline]

Definition at line 60 of file servlib/routing/TcaEndpointID.h.

TcaEndpointID::TcaEndpointID ( const EndpointID eid  ) 

Definition at line 65 of file servlib/routing/TcaEndpointID.cc.

References parse().

TcaEndpointID::TcaEndpointID ( const std::string &  str  ) 

Definition at line 51 of file servlib/routing/TcaEndpointID.cc.

References parse().

TcaEndpointID::TcaEndpointID ( const std::string &  host,
const std::string &  app 
)

Definition at line 58 of file servlib/routing/TcaEndpointID.cc.

References dtn::EndpointID::assign(), and build().

TcaEndpointID::TcaEndpointID ( const TcaEndpointID eid  ) 

Definition at line 72 of file servlib/routing/TcaEndpointID.cc.


Member Function Documentation

const std::string& dtn::TcaEndpointID::host (  )  const [inline]

Definition at line 66 of file servlib/routing/TcaEndpointID.h.

References host_.

Referenced by dtn::TcaRouter::get_forwarding_rule(), and dtn::TcaRouter::handle_bundle_received().

const std::string& dtn::TcaEndpointID::app (  )  const [inline]

Definition at line 67 of file servlib/routing/TcaEndpointID.h.

References app_.

Referenced by dtn::TcaRouter::get_forwarding_rule(), and dtn::TcaRouter::handle_bundle_received().

void TcaEndpointID::set_host ( const std::string &  host  ) 

Definition at line 112 of file servlib/routing/TcaEndpointID.cc.

References TcaEndpointID::app_, TcaEndpointID::build(), and TcaEndpointID::host_.

void TcaEndpointID::set_app ( const std::string &  app  ) 

Definition at line 120 of file servlib/routing/TcaEndpointID.cc.

References TcaEndpointID::app_, TcaEndpointID::build(), and TcaEndpointID::host_.

Referenced by dtn::TcaRouter::TcaRouter().

const std::string dtn::TcaEndpointID::get_hostid (  )  const [inline]

Definition at line 72 of file servlib/routing/TcaEndpointID.h.

References host_.

Referenced by dtn::TcaRouter::is_local_source().

static std::string dtn::TcaEndpointID::build ( const std::string &  host,
const std::string &  app 
) [inline, static]

Definition at line 76 of file servlib/routing/TcaEndpointID.h.

Referenced by TcaEndpointID().

void TcaEndpointID::parse (  )  [protected]

Extract and look up the scheme and ssp.

Returns:
true if the string is a valid endpoint id, false if not.

Reimplemented from dtn::EndpointID.

Definition at line 79 of file servlib/routing/TcaEndpointID.cc.

References TcaEndpointID::app_, TcaEndpointID::host_, and TcaEndpointID::valid_.

Referenced by TcaEndpointID().


Member Data Documentation

std::string dtn::TcaEndpointID::host_ [protected]

Definition at line 82 of file servlib/routing/TcaEndpointID.h.

Referenced by get_hostid(), and host().

std::string dtn::TcaEndpointID::app_ [protected]

Definition at line 83 of file servlib/routing/TcaEndpointID.h.

Referenced by app().


The documentation for this class was generated from the following files:
Generated on Fri Dec 22 14:48:05 2006 for DTN Reference Implementation by  doxygen 1.5.1