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

#include <goby/moos/moos_translator.h>

Public Member Functions

 MOOSTranslator (const goby::moos::protobuf::TranslatorEntry &entry=goby::moos::protobuf::TranslatorEntry(), double lat_origin=std::numeric_limits< double >::quiet_NaN(), double lon_origin=std::numeric_limits< double >::quiet_NaN(), const std::string &modem_id_lookup_path="")
 
 MOOSTranslator (const google::protobuf::RepeatedPtrField< goby::moos::protobuf::TranslatorEntry > &entries, double lat_origin=std::numeric_limits< double >::quiet_NaN(), double lon_origin=std::numeric_limits< double >::quiet_NaN(), const std::string &modem_id_lookup_path="")
 
void clear_entry (const std::string &protobuf_name)
 
void add_entry (const goby::moos::protobuf::TranslatorEntry &entry)
 
void add_entry (const std::set< goby::moos::protobuf::TranslatorEntry > &entries)
 
void add_entry (const google::protobuf::RepeatedPtrField< goby::moos::protobuf::TranslatorEntry > &entries)
 
template<typename GoogleProtobufMessagePointer , class StringCMOOSMsgMap >
GoogleProtobufMessagePointer moos_to_protobuf (const StringCMOOSMsgMap &moos_variables, const std::string &protobuf_name)
 
std::multimap< std::string, CMOOSMsgprotobuf_to_moos (const google::protobuf::Message &protobuf_msg)
 
std::multimap< std::string, CMOOSMsgprotobuf_to_inverse_moos (const google::protobuf::Message &protobuf_msg)
 
const std::map< std::string, goby::moos::protobuf::TranslatorEntry > & dictionary () const
 
void update_utm_datum (double lat_origin, double lon_origin)
 

Static Public Member Functions

static CMOOSMsg make_moos_msg (const std::string &var, const std::string &str, bool is_binary, goby::moos::protobuf::TranslatorEntry::ParserSerializerTechnique technique, const std::string &pb_name)
 

Detailed Description

Definition at line 91 of file moos_translator.h.

Constructor & Destructor Documentation

◆ MOOSTranslator() [1/2]

goby::moos::MOOSTranslator::MOOSTranslator ( const goby::moos::protobuf::TranslatorEntry entry = goby::moos::protobuf::TranslatorEntry(),
double  lat_origin = std::numeric_limits<double>::quiet_NaN(),
double  lon_origin = std::numeric_limits<double>::quiet_NaN(),
const std::string &  modem_id_lookup_path = "" 
)
inline

Definition at line 94 of file moos_translator.h.

◆ MOOSTranslator() [2/2]

goby::moos::MOOSTranslator::MOOSTranslator ( const google::protobuf::RepeatedPtrField< goby::moos::protobuf::TranslatorEntry > &  entries,
double  lat_origin = std::numeric_limits<double>::quiet_NaN(),
double  lon_origin = std::numeric_limits<double>::quiet_NaN(),
const std::string &  modem_id_lookup_path = "" 
)
inline

Definition at line 105 of file moos_translator.h.

Member Function Documentation

◆ add_entry() [1/3]

void goby::moos::MOOSTranslator::add_entry ( const goby::moos::protobuf::TranslatorEntry entry)
inline

Definition at line 117 of file moos_translator.h.

◆ add_entry() [2/3]

void goby::moos::MOOSTranslator::add_entry ( const google::protobuf::RepeatedPtrField< goby::moos::protobuf::TranslatorEntry > &  entries)
inline

Definition at line 129 of file moos_translator.h.

◆ add_entry() [3/3]

void goby::moos::MOOSTranslator::add_entry ( const std::set< goby::moos::protobuf::TranslatorEntry > &  entries)
inline

Definition at line 124 of file moos_translator.h.

◆ clear_entry()

void goby::moos::MOOSTranslator::clear_entry ( const std::string &  protobuf_name)
inline

Definition at line 115 of file moos_translator.h.

◆ dictionary()

const std::map<std::string, goby::moos::protobuf::TranslatorEntry>& goby::moos::MOOSTranslator::dictionary ( ) const
inline

Definition at line 147 of file moos_translator.h.

◆ make_moos_msg()

static CMOOSMsg goby::moos::MOOSTranslator::make_moos_msg ( const std::string &  var,
const std::string &  str,
bool  is_binary,
goby::moos::protobuf::TranslatorEntry::ParserSerializerTechnique  technique,
const std::string &  pb_name 
)
inlinestatic

Definition at line 153 of file moos_translator.h.

◆ moos_to_protobuf()

template<typename GoogleProtobufMessagePointer , class StringCMOOSMsgMap >
GoogleProtobufMessagePointer goby::moos::MOOSTranslator::moos_to_protobuf ( const StringCMOOSMsgMap &  moos_variables,
const std::string &  protobuf_name 
)

Definition at line 450 of file moos_translator.h.

◆ protobuf_to_inverse_moos()

std::multimap< std::string, CMOOSMsg > goby::moos::MOOSTranslator::protobuf_to_inverse_moos ( const google::protobuf::Message protobuf_msg)
inline

Definition at line 333 of file moos_translator.h.

◆ protobuf_to_moos()

std::multimap< std::string, CMOOSMsg > goby::moos::MOOSTranslator::protobuf_to_moos ( const google::protobuf::Message protobuf_msg)
inline

Definition at line 242 of file moos_translator.h.

◆ update_utm_datum()

void goby::moos::MOOSTranslator::update_utm_datum ( double  lat_origin,
double  lon_origin 
)

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