#include <TcaEndpointID.h>
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_ |
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 28 of file apps/tca_admin/TcaEndpointID.cc.
References parse(), and dtn_endpoint_id_t::uri.
TcaEndpointID::TcaEndpointID | ( | const std::string & | str | ) |
TcaEndpointID::TcaEndpointID | ( | const std::string & | host, | |
const std::string & | app | |||
) |
Definition at line 42 of file apps/tca_admin/TcaEndpointID.cc.
TcaEndpointID::TcaEndpointID | ( | const TcaEndpointID & | eid | ) |
Definition at line 49 of file apps/tca_admin/TcaEndpointID.cc.
const std::string& TcaEndpointID::host | ( | ) | const [inline] |
const std::string& TcaEndpointID::app | ( | ) | const [inline] |
const std::string TcaEndpointID::str | ( | ) | const [inline] |
Definition at line 44 of file apps/tca_admin/TcaEndpointID.h.
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 | ) |
void TcaEndpointID::set_app | ( | const std::string & | app | ) |
Definition at line 95 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 57 of file apps/tca_admin/TcaEndpointID.cc.
References app_, host_, and valid_.
Referenced by TcaEndpointID().
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().