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