Public Member Functions | Protected Attributes | Friends | List of all members
RosIntrospection::ROSField Class Reference

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. More...
 
bool isConstant () const
 True if field is a constant in message definition. More...
 
const std::string & name () const
 
 ROSField (const std::string &definition)
 
const ROSTypetype () const
 
const std::string & value () const
 If constant, value of field, else undefined. More...
 

Protected Attributes

int _array_size
 
std::string _fieldname
 
ROSType _type
 
std::string _value
 

Friends

class ROSMessage
 

Detailed Description

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.

Constructor & Destructor Documentation

RosIntrospection::ROSField::ROSField ( const std::string &  definition)

Definition at line 42 of file ros_field.cpp.

Member Function Documentation

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.

Friends And Related Function Documentation

friend class ROSMessage
friend

Definition at line 76 of file ros_field.hpp.

Member Data Documentation

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.


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