DUNE: Uniform Navigational Environment  2019.02.1
DUNE::IMC::AddressResolver Class Reference

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)
 

Constructor & Destructor Documentation

DUNE::IMC::AddressResolver::AddressResolver ( void  )

Default constructor.

Member Function Documentation

unsigned DUNE::IMC::AddressResolver::id ( void  )

Retrieve the address id of this instance.

Returns
the address id of this instance.

Referenced by 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.

Parameters
idthe address id of this instance.
void DUNE::IMC::AddressResolver::insert ( const std::string &  name,
unsigned  id 
)

Referenced by DUNE::Daemon::Daemon().

static unsigned DUNE::IMC::AddressResolver::invalid ( void  )
inlinestatic
static bool DUNE::IMC::AddressResolver::isCCU ( unsigned  id)
inlinestatic
bool DUNE::IMC::AddressResolver::isLocal ( unsigned  a_id)
inline

References isUnknown().

bool DUNE::IMC::AddressResolver::isUnknown ( unsigned  a_id)

Test if the given id doesn't have a registered name.

Parameters
a_idnode id.
Returns
true if the given id doesn't have a registered name, false otherwise.

Referenced by isLocal().

static bool DUNE::IMC::AddressResolver::isValid ( unsigned  id)
inlinestatic

References invalid().

Referenced by DUNE::Tasks::Task::dispatch().

const char * DUNE::IMC::AddressResolver::name ( void  )

Retrieve the address name of this instance.

Returns
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.

Returns
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().

Collaboration diagram for DUNE::IMC::AddressResolver:
Collaboration graph