Classes | Public Member Functions | Private Attributes | List of all members
RosMsgParser::ParsersCollection< DeserializerT > Class Template Reference

#include <ros_parser.hpp>

Classes

struct  CachedPack
 

Public Member Functions

const FlatMessagedeserialize (const std::string &topic_name, Span< const uint8_t > buffer)
 
const ParsergetParser (const std::string &topic_name) const
 
 ParsersCollection ()
 
void registerParser (const std::string &topic_name, const ROSType &msg_type, const std::string &definition)
 

Private Attributes

std::vector< uint8_t > _buffer
 
std::unique_ptr< Deserializer_deserializer
 
std::unordered_map< std::string, CachedPack_pack
 

Detailed Description

template<class DeserializerT>
class RosMsgParser::ParsersCollection< DeserializerT >

Definition at line 192 of file ros_parser.hpp.

Constructor & Destructor Documentation

◆ ParsersCollection()

template<class DeserializerT >
RosMsgParser::ParsersCollection< DeserializerT >::ParsersCollection ( )
inline

Definition at line 195 of file ros_parser.hpp.

Member Function Documentation

◆ deserialize()

template<class DeserializerT >
const FlatMessage* RosMsgParser::ParsersCollection< DeserializerT >::deserialize ( const std::string &  topic_name,
Span< const uint8_t >  buffer 
)
inline

Definition at line 221 of file ros_parser.hpp.

◆ getParser()

template<class DeserializerT >
const Parser* RosMsgParser::ParsersCollection< DeserializerT >::getParser ( const std::string &  topic_name) const
inline

Definition at line 211 of file ros_parser.hpp.

◆ registerParser()

template<class DeserializerT >
void RosMsgParser::ParsersCollection< DeserializerT >::registerParser ( const std::string &  topic_name,
const ROSType msg_type,
const std::string &  definition 
)
inline

Definition at line 200 of file ros_parser.hpp.

Member Data Documentation

◆ _buffer

template<class DeserializerT >
std::vector<uint8_t> RosMsgParser::ParsersCollection< DeserializerT >::_buffer
private

Definition at line 243 of file ros_parser.hpp.

◆ _deserializer

template<class DeserializerT >
std::unique_ptr<Deserializer> RosMsgParser::ParsersCollection< DeserializerT >::_deserializer
private

Definition at line 244 of file ros_parser.hpp.

◆ _pack

template<class DeserializerT >
std::unordered_map<std::string, CachedPack> RosMsgParser::ParsersCollection< DeserializerT >::_pack
private

Definition at line 242 of file ros_parser.hpp.


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


plotjuggler
Author(s): Davide Faconti
autogenerated on Sun Aug 11 2024 02:24:31