15 #ifndef FASTDDS_DDS_XTYPES_DYNAMIC_TYPES__DYNAMICTYPEBUILDERFACTORY_HPP
16 #define FASTDDS_DDS_XTYPES_DYNAMIC_TYPES__DYNAMICTYPEBUILDERFACTORY_HPP
22 #include <fastdds/dds/core/ReturnCode.hpp>
23 #include <fastdds/dds/xtypes/dynamic_types/DynamicType.hpp>
24 #include <fastdds/dds/xtypes/dynamic_types/TypeDescriptor.hpp>
25 #include <fastdds/dds/xtypes/dynamic_types/Types.hpp>
26 #include <fastdds/fastdds_dll.hpp>
154 const std::string& preprocessor) = 0;
165 const std::string& document_url,
166 const std::string& type_name,
186 const std::string& document_url,
200 const std::string& document,
201 const std::string& type_name,
Definition: DynamicTypeBuilderFactory.hpp:37
virtual FASTDDS_EXPORTED_API traits< DynamicTypeBuilder >::ref_type create_type_w_uri(const std::string &document_url, const std::string &type_name, const IncludePathSeq &include_paths)=0
Creates a new DynamicTypeBuilder reference by parsing the type description at the given URL.
virtual FASTDDS_EXPORTED_API traits< DynamicTypeBuilder >::ref_type create_type_copy(traits< DynamicType >::ref_type type)=0
Creates a new DynamicTypeBuilder reference based on the given DynamicType reference.
static FASTDDS_EXPORTED_API traits< DynamicTypeBuilderFactory >::ref_type get_instance()
Returns the singleton factory object.
typename traits< DynamicTypeBuilderFactory >::ref_type _ref_type
Definition: DynamicTypeBuilderFactory.hpp:40
virtual FASTDDS_EXPORTED_API traits< DynamicType >::ref_type get_primitive_type(TypeKind kind)=0
Retrieves the cached DynamicType reference associated to a given primitive.
virtual FASTDDS_EXPORTED_API traits< DynamicTypeBuilder >::ref_type create_type(traits< TypeDescriptor >::ref_type descriptor)=0
Creates a new DynamicTypeBuilder reference based on the given TypeDescriptor state.
virtual FASTDDS_EXPORTED_API traits< DynamicTypeBuilder >::ref_type create_array_type(traits< DynamicType >::ref_type element_type, const BoundSeq &bound)=0
Creates a new DynamicTypeBuilder reference representing an array.
virtual FASTDDS_EXPORTED_API ReturnCode_t for_each_type_w_uri(const std::string &document_url, const IncludePathSeq &include_paths, std::function< bool(traits< DynamicTypeBuilder >::ref_type)> callback)=0
Parse an input document and apply a callback on each encountered type.
virtual FASTDDS_EXPORTED_API traits< DynamicTypeBuilder >::ref_type create_map_type(traits< DynamicType >::ref_type key_element_type, traits< DynamicType >::ref_type element_type, uint32_t bound)=0
Creates a new DynamicTypeBuilder reference representing a map.
static FASTDDS_EXPORTED_API ReturnCode_t delete_instance()
Resets the singleton reference.
DynamicTypeBuilderFactory()=default
virtual FASTDDS_EXPORTED_API traits< DynamicTypeBuilder >::ref_type create_wstring_type(uint32_t bound)=0
Creates a new DynamicTypeBuilder reference representing a bounded wstring type.
virtual FASTDDS_EXPORTED_API traits< DynamicTypeBuilder >::ref_type create_type_w_document(const std::string &document, const std::string &type_name, const IncludePathSeq &include_paths)=0
Creates a new DynamicTypeBuilder reference by parsing the type description contained in the given str...
virtual FASTDDS_EXPORTED_API traits< DynamicTypeBuilder >::ref_type create_bitmask_type(uint32_t bound)=0
Creates a new DynamicTypeBuilder reference representing a bitmask.
virtual ~DynamicTypeBuilderFactory()=default
virtual FASTDDS_EXPORTED_API traits< DynamicTypeBuilder >::ref_type create_string_type(uint32_t bound)=0
Creates a new DynamicTypeBuilder reference representing a bounded string type.
virtual FASTDDS_EXPORTED_API traits< DynamicTypeBuilder >::ref_type create_type_w_type_object(const xtypes::TypeObject &type_object)=0
Creates a new DynamicTypeBuilder reference based on the given xtypes::TypeObject instance.
virtual FASTDDS_EXPORTED_API ReturnCode_t delete_type(traits< DynamicType >::ref_type &type)=0
Resets the internal reference if it is cached.
traits< DynamicTypeBuilderFactory >::ref_type _this()
virtual FASTDDS_EXPORTED_API traits< DynamicTypeBuilder >::ref_type create_sequence_type(traits< DynamicType >::ref_type element_type, uint32_t bound)=0
Creates a new DynamicTypeBuilder reference representing a sequence.
virtual FASTDDS_EXPORTED_API void set_preprocessor(const std::string &preprocessor)=0
Sets the path to the preprocessor executable to be used when parsing type descriptions.
This class represents the union TypeObject defined by the user in the IDL file.
Definition: dds_xtypes_typeobject.hpp:23463
Definition: DomainParticipant.hpp:46
std::vector< std::string > IncludePathSeq
Definition: dynamic_language_binding.hpp:64
std::vector< uint32_t > BoundSeq
Definition: dynamic_language_binding.hpp:68
int32_t ReturnCode_t
Definition: DDSReturnCode.hpp:59
uint8_t TypeKind
Definition: dynamic_language_binding.hpp:70
typename ::std::shared_ptr< T > ref_type
Definition: type_traits.hpp:29