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
names.hpp File Reference
#include <string>
#include "fastrtps/utils/fixed_size_string.hpp"
#include "rmw/types.h"
#include "namespace_prefix.hpp"
Include dependency graph for names.hpp:

Go to the source code of this file.

Functions

eprosima::fastrtps::string_255 _mangle_topic_name (const char *prefix, const char *base, const char *suffix=nullptr)
 Construct a topic name. More...
 
eprosima::fastrtps::string_255 _create_topic_name (const rmw_qos_profile_t *qos_profile, const char *prefix, const char *base, const char *suffix=nullptr)
 Construct a topic name according to proper conventions. More...
 

Function Documentation

◆ _mangle_topic_name()

eprosima::fastrtps::string_255 _mangle_topic_name ( const char *  prefix,
const char *  base,
const char *  suffix = nullptr 
)
inline

Construct a topic name.

Parameters
[in]prefixRequired prefix for topic name.
[in]baseRequired name of the topic.
[in]suffixOptional suffix for topic name.

◆ _create_topic_name()

eprosima::fastrtps::string_255 _create_topic_name ( const rmw_qos_profile_t qos_profile,
const char *  prefix,
const char *  base,
const char *  suffix = nullptr 
)
inline

Construct a topic name according to proper conventions.

Parameters
[in]qos_profileThe QoS profile for the topic.
[in]prefixRequired prefix for topic name.
[in]baseRequired name of the topic.
[in]suffixOptional suffix for topic name.