A ROSMessage will contain one or more ROSField(s). Each field is little more than a name / type pair. More...
#include <ros_field.hpp>
Public Member Functions | |
int | arraySize () const |
bool | isArray () const |
True if the type is an array. | |
bool | isConstant () const |
True if field is a constant in message definition. | |
const std::string & | name () const |
ROSField (const std::string &definition) | |
const ROSType & | type () const |
const std::string & | value () const |
If constant, value of field, else undefined. | |
Protected Attributes | |
int | _array_size |
std::string | _fieldname |
ROSType | _type |
std::string | _value |
Friends | |
class | ROSMessage |
A ROSMessage will contain one or more ROSField(s). Each field is little more than a name / type pair.
Definition at line 52 of file ros_field.hpp.
RosIntrospection::ROSField::ROSField | ( | const std::string & | definition | ) |
Definition at line 42 of file ros_field.cpp.
int RosIntrospection::ROSField::arraySize | ( | ) | const [inline] |
1 if !is_array, -1 if is_array and array is variable length, otherwise length in name
Definition at line 74 of file ros_field.hpp.
bool RosIntrospection::ROSField::isArray | ( | ) | const [inline] |
True if the type is an array.
Definition at line 70 of file ros_field.hpp.
bool RosIntrospection::ROSField::isConstant | ( | ) | const [inline] |
True if field is a constant in message definition.
Definition at line 62 of file ros_field.hpp.
const std::string& RosIntrospection::ROSField::name | ( | ) | const [inline] |
Definition at line 57 of file ros_field.hpp.
const ROSType& RosIntrospection::ROSField::type | ( | ) | const [inline] |
Definition at line 59 of file ros_field.hpp.
const std::string& RosIntrospection::ROSField::value | ( | ) | const [inline] |
If constant, value of field, else undefined.
Definition at line 67 of file ros_field.hpp.
friend class ROSMessage [friend] |
Definition at line 76 of file ros_field.hpp.
int RosIntrospection::ROSField::_array_size [protected] |
Definition at line 82 of file ros_field.hpp.
std::string RosIntrospection::ROSField::_fieldname [protected] |
Definition at line 79 of file ros_field.hpp.
ROSType RosIntrospection::ROSField::_type [protected] |
Definition at line 80 of file ros_field.hpp.
std::string RosIntrospection::ROSField::_value [protected] |
Definition at line 81 of file ros_field.hpp.