Goby3  3.1.5a
2024.05.23
goby::moos::ModemIdConvert Class Reference

#include <goby/moos/modem_id_convert.h>

Public Member Functions

 ModemIdConvert ()=default
 
std::string read_lookup_file (const std::string &path)
 
std::string get_name_from_id (int id)
 
std::string get_type_from_id (int id)
 
std::string get_location_from_id (int id)
 
int get_id_from_name (const std::string &name)
 
size_t max_name_length ()
 
int max_id ()
 
const std::map< int, std::string > & names () const
 

Detailed Description

Definition at line 36 of file modem_id_convert.h.

Constructor & Destructor Documentation

◆ ModemIdConvert()

goby::moos::ModemIdConvert::ModemIdConvert ( )
default

Member Function Documentation

◆ get_id_from_name()

int goby::moos::ModemIdConvert::get_id_from_name ( const std::string &  name)

◆ get_location_from_id()

std::string goby::moos::ModemIdConvert::get_location_from_id ( int  id)

◆ get_name_from_id()

std::string goby::moos::ModemIdConvert::get_name_from_id ( int  id)

◆ get_type_from_id()

std::string goby::moos::ModemIdConvert::get_type_from_id ( int  id)

◆ max_id()

int goby::moos::ModemIdConvert::max_id ( )
inline

Definition at line 49 of file modem_id_convert.h.

◆ max_name_length()

size_t goby::moos::ModemIdConvert::max_name_length ( )
inline

Definition at line 48 of file modem_id_convert.h.

◆ names()

const std::map<int, std::string>& goby::moos::ModemIdConvert::names ( ) const
inline

Definition at line 51 of file modem_id_convert.h.

◆ read_lookup_file()

std::string goby::moos::ModemIdConvert::read_lookup_file ( const std::string &  path)

The documentation for this class was generated from the following file: