Public Member Functions | Private Attributes | List of all members
RosIntrospection::ROSMessage Class Reference

#include <ros_message.hpp>

Public Member Functions

const ROSFieldfield (size_t index) const
 Get field by index. More...
 
const std::vector< ROSField > & fields () const
 Vector of fields. More...
 
void mutateType (const ROSType &new_type)
 
 ROSMessage (const std::string &msg_def)
 
const ROSTypetype () const
 
void updateMissingPkgNames (const std::vector< const ROSType * > &all_types)
 

Private Attributes

std::vector< ROSField_fields
 
ROSType _type
 

Detailed Description

Definition at line 44 of file ros_message.hpp.

Constructor & Destructor Documentation

RosIntrospection::ROSMessage::ROSMessage ( const std::string &  msg_def)

This constructor does most of the work in terms of parsing. It uses the message definition to extract fields and types.

Definition at line 45 of file ros_message.cpp.

Member Function Documentation

const ROSField& RosIntrospection::ROSMessage::field ( size_t  index) const
inline

Get field by index.

Definition at line 54 of file ros_message.hpp.

const std::vector<ROSField>& RosIntrospection::ROSMessage::fields ( ) const
inline

Vector of fields.

Returns

Definition at line 60 of file ros_message.hpp.

void RosIntrospection::ROSMessage::mutateType ( const ROSType new_type)
inline

Definition at line 64 of file ros_message.hpp.

const ROSType& RosIntrospection::ROSMessage::type ( ) const
inline

Definition at line 62 of file ros_message.hpp.

void RosIntrospection::ROSMessage::updateMissingPkgNames ( const std::vector< const ROSType * > &  all_types)

Definition at line 73 of file ros_message.cpp.

Member Data Documentation

std::vector<ROSField> RosIntrospection::ROSMessage::_fields
private

Definition at line 71 of file ros_message.hpp.

ROSType RosIntrospection::ROSMessage::_type
private

Definition at line 70 of file ros_message.hpp.


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


ros_type_introspection
Author(s): Davide Faconti
autogenerated on Thu May 16 2019 02:39:10