TcaEndpointID Class Reference

#include <TcaEndpointID.h>

List of all members.


Detailed Description

Definition at line 32 of file apps/tca_admin/TcaEndpointID.h.


Public Member Functions

 TcaEndpointID ()
 TcaEndpointID (const dtn_endpoint_id_t &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
const std::string str () const
const char * c_str () 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 (const std::string &str)

Protected Attributes

bool valid_
std::string host_
std::string app_

Constructor & Destructor Documentation

TcaEndpointID::TcaEndpointID (  )  [inline]

Definition at line 35 of file apps/tca_admin/TcaEndpointID.h.

TcaEndpointID::TcaEndpointID ( const dtn_endpoint_id_t eid  ) 

Definition at line 26 of file apps/tca_admin/TcaEndpointID.cc.

References parse(), and dtn_endpoint_id_t::uri.

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

Definition at line 33 of file apps/tca_admin/TcaEndpointID.cc.

References parse().

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

Definition at line 40 of file apps/tca_admin/TcaEndpointID.cc.

TcaEndpointID::TcaEndpointID ( const TcaEndpointID eid  ) 

Definition at line 47 of file apps/tca_admin/TcaEndpointID.cc.


Member Function Documentation

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

Definition at line 41 of file apps/tca_admin/TcaEndpointID.h.

References host_.

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

Definition at line 42 of file apps/tca_admin/TcaEndpointID.h.

References app_.

const std::string TcaEndpointID::str (  )  const [inline]

Definition at line 44 of file apps/tca_admin/TcaEndpointID.h.

References app_, and host_.

Referenced by c_str(), TcaController::gate_reg(), TcaController::handle_adv_sent(), TcaController::handle_ask_received(), TcaController::handle_ask_sent(), TcaController::handle_coa_sent(), TcaController::handle_unb(), and TcaController::route_reg().

const char* TcaEndpointID::c_str (  )  const [inline]

Definition at line 45 of file apps/tca_admin/TcaEndpointID.h.

References str().

Referenced by TcaController::gate_reg(), and TcaController::handle_unb().

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

Definition at line 86 of file apps/tca_admin/TcaEndpointID.cc.

References host_.

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

Definition at line 93 of file apps/tca_admin/TcaEndpointID.cc.

References app_.

Referenced by TcaController::gate_reg(), TcaController::handle_adv_sent(), TcaController::handle_ask_received(), TcaController::handle_ask_sent(), TcaController::handle_coa_sent(), and TcaController::route_reg().

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

Definition at line 50 of file apps/tca_admin/TcaEndpointID.h.

References host_.

Referenced by TcaController::do_registration(), and TcaController::get_registration().

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

Definition at line 54 of file apps/tca_admin/TcaEndpointID.h.

Referenced by dtn::TcaEndpointID::set_app(), and dtn::TcaEndpointID::set_host().

void TcaEndpointID::parse ( const std::string &  str  )  [protected]

Definition at line 55 of file apps/tca_admin/TcaEndpointID.cc.

References app_, host_, and valid_.

Referenced by TcaEndpointID().


Member Data Documentation

bool TcaEndpointID::valid_ [protected]

Definition at line 60 of file apps/tca_admin/TcaEndpointID.h.

Referenced by dtn::TcaEndpointID::parse(), and parse().

std::string TcaEndpointID::host_ [protected]

Definition at line 61 of file apps/tca_admin/TcaEndpointID.h.

Referenced by get_hostid(), host(), dtn::TcaEndpointID::parse(), parse(), dtn::TcaEndpointID::set_app(), dtn::TcaEndpointID::set_host(), set_host(), and str().

std::string TcaEndpointID::app_ [protected]

Definition at line 62 of file apps/tca_admin/TcaEndpointID.h.

Referenced by app(), dtn::TcaEndpointID::parse(), parse(), dtn::TcaEndpointID::set_app(), set_app(), dtn::TcaEndpointID::set_host(), and str().


The documentation for this class was generated from the following files:
Generated on Sat Sep 8 08:36:21 2007 for DTN Reference Implementation by  doxygen 1.5.3