Public Member Functions | Protected Attributes | List of all members
RosMsgParser::ROSType Class Reference

ROSType. More...

#include <ros_type.hpp>

Public Member Functions

const std::string & baseName () const
 
size_t hash () const
 
bool isBuiltin () const
 True if the type is ROS builtin. More...
 
const std::string_viewmsgName () const
 ex.: geometry_msgs/Pose -> "Pose" More...
 
bool operator!= (const ROSType &other) const
 
bool operator< (const ROSType &other) const
 
ROSTypeoperator= (const ROSType &other)
 
ROSTypeoperator= (ROSType &&other)
 
bool operator== (const ROSType &other) const
 
const std::string_viewpkgName () const
 ex.: geometry_msgs/Pose -> "geometry_msgs" More...
 
 ROSType ()
 
 ROSType (const ROSType &other)
 
 ROSType (const std::string &name)
 
 ROSType (ROSType &&other)
 
void setPkgName (std::string_view new_pkg)
 
BuiltinType typeID () const
 If type is builtin, returns the id. BuiltinType::OTHER otherwise. More...
 
int typeSize () const
 If builtin, size of builtin, -1 means variable or undefined. More...
 

Protected Attributes

std::string _base_name
 
size_t _hash = 0
 
BuiltinType _id = OTHER
 
std::string_view _msg_name
 
std::string_view _pkg_name
 

Detailed Description

ROSType.

Definition at line 39 of file ros_type.hpp.

Constructor & Destructor Documentation

◆ ROSType() [1/4]

RosMsgParser::ROSType::ROSType ( )
inline

Definition at line 42 of file ros_type.hpp.

◆ ROSType() [2/4]

RosMsgParser::ROSType::ROSType ( const std::string &  name)

Definition at line 30 of file ros_type.cpp.

◆ ROSType() [3/4]

RosMsgParser::ROSType::ROSType ( const ROSType other)
inline

Definition at line 48 of file ros_type.hpp.

◆ ROSType() [4/4]

RosMsgParser::ROSType::ROSType ( ROSType &&  other)
inline

Definition at line 53 of file ros_type.hpp.

Member Function Documentation

◆ baseName()

const std::string & RosMsgParser::ROSType::baseName ( ) const
inline

Concatenation of msg_name and pkg_name. ex.: geometry_msgs/Pose"

Definition at line 113 of file ros_type.hpp.

◆ hash()

size_t RosMsgParser::ROSType::hash ( ) const
inline

Definition at line 98 of file ros_type.hpp.

◆ isBuiltin()

bool RosMsgParser::ROSType::isBuiltin ( ) const
inline

True if the type is ROS builtin.

Definition at line 128 of file ros_type.hpp.

◆ msgName()

const std::string_view & RosMsgParser::ROSType::msgName ( ) const
inline

ex.: geometry_msgs/Pose -> "Pose"

Definition at line 118 of file ros_type.hpp.

◆ operator!=()

bool RosMsgParser::ROSType::operator!= ( const ROSType other) const
inline

Definition at line 88 of file ros_type.hpp.

◆ operator<()

bool RosMsgParser::ROSType::operator< ( const ROSType other) const
inline

Definition at line 93 of file ros_type.hpp.

◆ operator=() [1/2]

ROSType & RosMsgParser::ROSType::operator= ( const ROSType other)

Definition at line 57 of file ros_type.cpp.

◆ operator=() [2/2]

ROSType & RosMsgParser::ROSType::operator= ( ROSType &&  other)

Definition at line 70 of file ros_type.cpp.

◆ operator==()

bool RosMsgParser::ROSType::operator== ( const ROSType other) const
inline

Definition at line 83 of file ros_type.hpp.

◆ pkgName()

const std::string_view & RosMsgParser::ROSType::pkgName ( ) const
inline

ex.: geometry_msgs/Pose -> "geometry_msgs"

Definition at line 123 of file ros_type.hpp.

◆ setPkgName()

void RosMsgParser::ROSType::setPkgName ( std::string_view  new_pkg)

Definition at line 83 of file ros_type.cpp.

◆ typeID()

BuiltinType RosMsgParser::ROSType::typeID ( ) const
inline

If type is builtin, returns the id. BuiltinType::OTHER otherwise.

Definition at line 138 of file ros_type.hpp.

◆ typeSize()

int RosMsgParser::ROSType::typeSize ( ) const
inline

If builtin, size of builtin, -1 means variable or undefined.

Definition at line 133 of file ros_type.hpp.

Member Data Documentation

◆ _base_name

std::string RosMsgParser::ROSType::_base_name
protected

Definition at line 105 of file ros_type.hpp.

◆ _hash

size_t RosMsgParser::ROSType::_hash = 0
protected

Definition at line 108 of file ros_type.hpp.

◆ _id

BuiltinType RosMsgParser::ROSType::_id = OTHER
protected

Definition at line 104 of file ros_type.hpp.

◆ _msg_name

std::string_view RosMsgParser::ROSType::_msg_name
protected

Definition at line 106 of file ros_type.hpp.

◆ _pkg_name

std::string_view RosMsgParser::ROSType::_pkg_name
protected

Definition at line 107 of file ros_type.hpp.


The documentation for this class was generated from the following files:


plotjuggler
Author(s): Davide Faconti
autogenerated on Mon Nov 11 2024 03:23:52