Fast RTPS  Version 2.14.1
Fast RTPS
Loading...
Searching...
No Matches
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
18 RTPS_DllAPI static std::string get_string_type_name(
19 uint32_t bound,
20 bool wide,
21 bool generate_identifier = true);
22
23 RTPS_DllAPI static std::string get_sequence_type_name(
24 const std::string& type_name,
25 uint32_t bound,
26 bool generate_identifier = true);
27
28 RTPS_DllAPI static std::string get_array_type_name(
29 const std::string& type_name,
30 const std::vector<uint32_t>& bound,
31 bool generate_identifier = true);
32
33 RTPS_DllAPI static std::string get_array_type_name(
34 const std::string& type_name,
35 const std::vector<uint32_t>& bound,
36 uint32_t& ret_size,
37 bool generate_identifier = true);
38
39 RTPS_DllAPI static std::string get_map_type_name(
40 const std::string& key_type_name,
41 const std::string& value_type_name,
42 uint32_t bound,
43 bool generate_identifier = true);
44};
45
46} // namespace types
47} // namespace fastrtps
48} // namespace eprosima
49
50#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