Public Member Functions | Private Attributes
RosIntrospection::ROSMessage Class Reference

#include <parser.hpp>

List of all members.

Public Member Functions

const ROSFieldfield (const SString &name) const
 Get field by name. it uses linear search, so you should use it for debug only.
const ROSFieldfield (size_t index) const
 Get field by index.
const std::vector< ROSField > & fields () const
 Vector of fields.
void mutateType (const ROSType &new_type)
 ROSMessage (const std::string &msg_def)
const ROSTypetype () const
void updateTypes (const std::vector< ROSType > &all_types)

Private Attributes

std::vector< ROSField_fields
ROSType _type

Detailed Description

Definition at line 169 of file parser.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 323 of file parser.cpp.


Member Function Documentation

const ROSField * RosIntrospection::ROSMessage::field ( const SString name) const [inline]

Get field by name. it uses linear search, so you should use it for debug only.

Definition at line 211 of file parser.hpp.

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

Get field by index.

Definition at line 193 of file parser.hpp.

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

Vector of fields.

Returns:

Definition at line 199 of file parser.hpp.

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

Definition at line 203 of file parser.hpp.

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

Definition at line 201 of file parser.hpp.

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

Sometimes the whole type information is incomplete, in particular ROSTYPE::pkgName(). This method helps the application to "fill the blancks". Used internally by buildROSTypeMapFromDefinition, the user should probably ignore it.

Definition at line 351 of file parser.cpp.


Member Data Documentation

Definition at line 207 of file parser.hpp.

Definition at line 206 of file parser.hpp.


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


ros_type_introspection
Author(s): Davide Faconti
autogenerated on Sun Oct 1 2017 02:54:53