.. _program_listing_file__tmp_ws_src_fastrtps_include_fastrtps_types_DynamicDataHelper.hpp: Program Listing for File DynamicDataHelper.hpp ============================================== |exhale_lsh| :ref:`Return to documentation for file ` (``/tmp/ws/src/fastrtps/include/fastrtps/types/DynamicDataHelper.hpp``) .. |exhale_lsh| unicode:: U+021B0 .. UPWARDS ARROW WITH TIP LEFTWARDS .. code-block:: cpp // Copyright 2019 Proyectos y Sistemas de Mantenimiento SL (eProsima). // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. #ifndef _FASTRTPS_TYPES_DYNAMICDATAHELPER_HPP_ #define _FASTRTPS_TYPES_DYNAMICDATAHELPER_HPP_ #include #include #include #include #include #include namespace eprosima { namespace fastrtps { namespace types { class DynamicDataHelper { public: RTPS_DllAPI static void print( const DynamicData_ptr& data); RTPS_DllAPI static void print( const DynamicData* data); protected: static void print_basic_element( DynamicData* data, MemberId id, TypeKind kind); static void print_collection( DynamicData* data, const std::string& tabs = ""); static void fill_array_positions( const std::vector& bounds, std::vector>& positions); static void get_index_position( uint32_t index, const std::vector& bounds, std::vector& position); static void aux_index_position( uint32_t index, uint32_t inner_index, const std::vector& bounds, std::vector& position); static void print_basic_collection( DynamicData* data); static void print_complex_collection( DynamicData* data, const std::string& tabs = ""); static void print_complex_element( DynamicData* data, MemberId id, const std::string& tabs = ""); static void print_member( DynamicData* data, const DynamicTypeMember* type, const std::string& tabs = ""); }; } // namespace types } // namespace fastrtps } // namespace eprosima #endif // _FASTRTPS_TYPES_DYNAMICDATAHELPER_HPP_