DUNE: Uniform Navigational Environment
2019.02.0
|
Public Member Functions | |
AddressResolver (void) | |
const char * | name (void) |
void | name (const std::string &name) |
unsigned | id (void) |
void | id (unsigned id) |
void | insert (const std::string &name, unsigned id) |
const char * | resolve (unsigned id) |
unsigned | resolve (const std::string &name) |
bool | isLocal (unsigned a_id) |
bool | isUnknown (unsigned a_id) |
Static Public Member Functions | |
static unsigned | invalid (void) |
static bool | isValid (unsigned id) |
static bool | isCCU (unsigned id) |
DUNE::IMC::AddressResolver::AddressResolver | ( | void | ) |
Default constructor.
unsigned DUNE::IMC::AddressResolver::id | ( | void | ) |
Retrieve the address id of this instance.
Referenced by Autonomy::TREX::Task::consume(), DUNE::Daemon::Daemon(), DUNE::Entities::BasicEntity::dispatch(), and DUNE::Tasks::Task::getSystemId().
void DUNE::IMC::AddressResolver::id | ( | unsigned | id | ) |
Set the address id of this instance.
id | the address id of this instance. |
void DUNE::IMC::AddressResolver::insert | ( | const std::string & | name, |
unsigned | id | ||
) |
Referenced by DUNE::Daemon::Daemon(), and Transports::Discovery::Task::readMessage().
|
inlinestatic |
Referenced by DUNE::Daemon::Daemon(), isValid(), DUNE::IMC::Message::Message(), and resolve().
|
inlinestatic |
|
inline |
bool DUNE::IMC::AddressResolver::isUnknown | ( | unsigned | a_id | ) |
Test if the given id doesn't have a registered name.
a_id | node id. |
Referenced by Transports::Discovery::Task::readMessage().
|
inlinestatic |
References invalid().
Referenced by DUNE::Tasks::Task::dispatch().
const char * DUNE::IMC::AddressResolver::name | ( | void | ) |
Retrieve the address name of this instance.
Referenced by DUNE::Daemon::Daemon(), and DUNE::Tasks::Task::getSystemName().
void DUNE::IMC::AddressResolver::name | ( | const std::string & | name | ) |
Set the address name of this instance.
const char * DUNE::IMC::AddressResolver::resolve | ( | unsigned | id | ) |
unsigned DUNE::IMC::AddressResolver::resolve | ( | const std::string & | name | ) |
References invalid().