DUNE: Uniform Navigational Environment  2016.05.0
DUNE::IMC::Factory Class Reference

Static Public Member Functions

static Messageproduce (uint32_t key)
 
static Messageproduce (const std::string &name)
 
static void getAbbrevs (std::vector< std::string > &v)
 
static void getIds (std::vector< uint32_t > &v)
 
static void getIds (std::string list, std::vector< uint32_t > &v)
 
static std::string getAbbrevFromId (uint32_t id)
 
static uint32_t getIdFromAbbrev (const std::string &name)
 

Member Function Documentation

std::string DUNE::IMC::Factory::getAbbrevFromId ( uint32_t  id)
static

Retrieve the corresponding message abbreviation from the identification number.

Parameters
ididentification number.
Returns
abbreviation.
void DUNE::IMC::Factory::getAbbrevs ( std::vector< std::string > &  v)
static

Retrieve all message abbreviations.

Parameters
voutput vector
uint32_t DUNE::IMC::Factory::getIdFromAbbrev ( const std::string &  name)
static

Retrieve the corresponding message identification number from the abbreviation.

Parameters
nameabbreviation.
Returns
identification number.

Referenced by DUNE::Tasks::Task::bind(), getIds(), produce(), DUNE::Tasks::MessageFilter::setupEntities(), and DUNE::Tasks::MessageFilter::setupRates().

void DUNE::IMC::Factory::getIds ( std::vector< uint32_t > &  v)
static

Retrieve all message identification numbers.

Parameters
voutput vector
void DUNE::IMC::Factory::getIds ( std::string  list,
std::vector< uint32_t > &  v 
)
static

Retrieve message identification numbers for a list of message abbreviations.

Parameters
listcomma separated list of abbreviations
voutput vector

References getIdFromAbbrev(), and DUNE::Utils::String::split().

Message * DUNE::IMC::Factory::produce ( const std::string &  name)
static

Produce a message object by name.

Parameters
namemessage name.
Returns
message object allocated on the heap.

References getIdFromAbbrev(), and produce().

Collaboration diagram for DUNE::IMC::Factory:
Collaboration graph