#include <ros_message.hpp>
Public Member Functions | |
const ROSField & | field (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 ROSType & | type () const |
void | updateMissingPkgNames (const std::vector< const ROSType * > &all_types) |
Private Attributes | |
std::vector< ROSField > | _fields |
ROSType | _type |
Definition at line 44 of file ros_message.hpp.
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.
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] |
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.
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.