Go to the documentation of this file.
24 #ifndef ROS_INTROSPECTION_ROSTYPE_H
25 #define ROS_INTROSPECTION_ROSTYPE_H
46 ROSType(
const std::string& name);
153 static std::map<std::string_view, BuiltinType> string_to_builtin_map{
161 const auto it = string_to_builtin_map.find(
s);
162 return (it != string_to_builtin_map.cend()) ? it->second :
OTHER;
const std::string_view & pkgName() const
ex.: geometry_msgs/Pose -> "geometry_msgs"
std::size_t hash(const BasicJsonType &j)
hash a JSON value
BuiltinType typeID() const
If type is builtin, returns the id. BuiltinType::OTHER otherwise.
span_CONFIG_SIZE_TYPE size_t
const std::string_view & msgName() const
ex.: geometry_msgs/Pose -> "Pose"
bool operator<(const ROSType &other) const
bool operator==(const ROSType &other) const
ROSType & operator=(const ROSType &other)
BuiltinType toBuiltinType(const std::string_view &s)
result_type operator()(RosMsgParser::ROSType const &type) const
void setPkgName(std::string_view new_pkg)
RosMsgParser::ROSType argument_type
ROSType(const ROSType &other)
bool isBuiltin() const
True if the type is ROS builtin.
basic_string_view< char > string_view
std::ostream & operator<<(std::ostream &os, const BuiltinType &c)
const std::string & baseName() const
int typeSize() const
If builtin, size of builtin, -1 means variable or undefined.
bool operator!=(const ROSType &other) const
int builtinSize(const BuiltinType c)
std::string_view _msg_name
std::string_view _pkg_name
plotjuggler
Author(s): Davide Faconti
autogenerated on Mon Nov 11 2024 03:23:46