rmw_fastrtps_shared_cpp  master
Code shared on static and dynamic type support of rmw_fastrtps_cpp.
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
Functions | Variables
namespace_prefix.hpp File Reference
#include <vector>
#include <string>
#include "rmw_fastrtps_shared_cpp/visibility_control.h"
Include dependency graph for namespace_prefix.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

std::string _resolve_prefix (const std::string &name, const std::string &prefix)
 Returns name stripped of prefix if exists, if not return "". More...
 
std::string _get_ros_prefix_if_exists (const std::string &topic_name)
 Return the ROS specific prefix if it exists, otherwise "". More...
 
std::string _strip_ros_prefix_if_exists (const std::string &topic_name)
 Returns the topic name stripped of and ROS specific prefix if exists. More...
 
const std::vector< std::string > & _get_all_ros_prefixes ()
 Returns the list of ros prefixes. More...
 

Variables

const char *const ros_topic_prefix
 
const char *const ros_service_requester_prefix
 
const char *const ros_service_response_prefix
 
const std::vector< std::string_ros_prefixes
 

Function Documentation

◆ _resolve_prefix()

std::string _resolve_prefix ( const std::string name,
const std::string prefix 
)

Returns name stripped of prefix if exists, if not return "".

Parameters
[in]namestring that will be stripped from prefix
[in]prefixprefix to be stripped
Returns
name stripped of prefix, or
"" if name doesn't start with prefix

◆ _get_ros_prefix_if_exists()

std::string _get_ros_prefix_if_exists ( const std::string topic_name)

Return the ROS specific prefix if it exists, otherwise "".

◆ _strip_ros_prefix_if_exists()

std::string _strip_ros_prefix_if_exists ( const std::string topic_name)

Returns the topic name stripped of and ROS specific prefix if exists.

◆ _get_all_ros_prefixes()

const std::vector<std::string>& _get_all_ros_prefixes ( )

Returns the list of ros prefixes.

Variable Documentation

◆ ros_topic_prefix

const char* const ros_topic_prefix

◆ ros_service_requester_prefix

const char* const ros_service_requester_prefix

◆ ros_service_response_prefix

const char* const ros_service_response_prefix

◆ _ros_prefixes

const std::vector<std::string> _ros_prefixes