Fast RTPS  Version 2.10.1
Fast RTPS
TypeNamesGenerator.h
1#ifndef _TYPE_NAMES_GENERATOR_
2#define _TYPE_NAMES_GENERATOR_
3
4#include <fastrtps/fastrtps_dll.h>
5
6#include <cstdint>
7#include <string>
8#include <vector>
9
10namespace eprosima {
11namespace fastrtps {
12namespace types {
13
15{
16public:
17 RTPS_DllAPI static std::string get_string_type_name(
18 uint32_t bound,
19 bool wide,
20 bool generate_identifier = true);
21
22 RTPS_DllAPI static std::string get_sequence_type_name(
23 const std::string& type_name,
24 uint32_t bound,
25 bool generate_identifier = true);
26
27 RTPS_DllAPI static std::string get_array_type_name(
28 const std::string& type_name,
29 const std::vector<uint32_t>& bound,
30 bool generate_identifier = true);
31
32 RTPS_DllAPI static std::string get_array_type_name(
33 const std::string& type_name,
34 const std::vector<uint32_t>& bound,
35 uint32_t& ret_size,
36 bool generate_identifier = true);
37
38 RTPS_DllAPI static std::string get_map_type_name(
39 const std::string& key_type_name,
40 const std::string& value_type_name,
41 uint32_t bound,
42 bool generate_identifier = true);
43};
44
45} // namespace types
46} // namespace fastrtps
47} // namespace eprosima
48
49#endif //_TYPE_NAMES_GENERATOR_
Definition: TypeNamesGenerator.h:15
static RTPS_DllAPI std::string get_string_type_name(uint32_t bound, bool wide, bool generate_identifier=true)
static RTPS_DllAPI std::string get_array_type_name(const std::string &type_name, const std::vector< uint32_t > &bound, uint32_t &ret_size, bool generate_identifier=true)
static RTPS_DllAPI std::string get_array_type_name(const std::string &type_name, const std::vector< uint32_t > &bound, bool generate_identifier=true)
static RTPS_DllAPI std::string get_sequence_type_name(const std::string &type_name, uint32_t bound, bool generate_identifier=true)
static RTPS_DllAPI std::string get_map_type_name(const std::string &key_type_name, const std::string &value_type_name, uint32_t bound, bool generate_identifier=true)
eProsima namespace.
Definition: LibrarySettingsAttributes.h:23