35 #ifndef ROS_INTROSPECTION_ROSTYPE_H 36 #define ROS_INTROSPECTION_ROSTYPE_H 55 ROSType(boost::string_ref name);
70 const boost::string_ref&
msgName()
const;
73 const boost::string_ref&
pkgName()
const;
151 static std::map<boost::string_ref, BuiltinType> string_to_builtin_map {
169 const auto it = string_to_builtin_map.find(s);
170 return (it != string_to_builtin_map.cend()) ? it->second :
OTHER;
result_type operator()(RosIntrospection::ROSType const &type) const
ROSType & operator=(const ROSType &other)
std::ostream & operator<<(std::ostream &os, const BuiltinType &c)
int typeSize() const
If builtin, size of builtin, -1 means variable or undefined.
const boost::string_ref & pkgName() const
ex.: geometry_msgs/Pose -> "geometry_msgs"
bool operator!=(const ROSType &other) const
boost::string_ref _msg_name
const std::string & baseName() const
int builtinSize(const BuiltinType c)
BuiltinType toBuiltinType(const boost::string_ref &s)
bool operator<(const ROSType &other) const
RosIntrospection::ROSType argument_type
void setPkgName(boost::string_ref new_pkg)
bool operator==(const ROSType &other) const
ROSType(const ROSType &other)
boost::string_ref _pkg_name
BuiltinType typeID() const
If type is builtin, returns the id. BuiltinType::OTHER otherwise.
bool isBuiltin() const
True if the type is ROS builtin.
const boost::string_ref & msgName() const
ex.: geometry_msgs/Pose -> "Pose"