.. _program_listing_file__tmp_ws_src_fastrtps_include_fastdds_dds_core_status_IncompatibleQosStatus.hpp: Program Listing for File IncompatibleQosStatus.hpp ================================================== |exhale_lsh| :ref:`Return to documentation for file ` (``/tmp/ws/src/fastrtps/include/fastdds/dds/core/status/IncompatibleQosStatus.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_INCOMPATIBLE_QOS_STATUS_HPP_ #define _FASTRTPS_INCOMPATIBLE_QOS_STATUS_HPP_ #include #include #include namespace eprosima { namespace fastdds { namespace dds { struct QosPolicyCount { QosPolicyCount() = default; QosPolicyCount( QosPolicyId_t id, int32_t c) : policy_id(id) , count(c) { } QosPolicyId_t policy_id = INVALID_QOS_POLICY_ID; uint32_t count = 0; }; using QosPolicyCountSeq = std::vector; struct IncompatibleQosStatus { uint32_t total_count = 0; uint32_t total_count_change = 0; QosPolicyId_t last_policy_id = INVALID_QOS_POLICY_ID; QosPolicyCountSeq policies; IncompatibleQosStatus() : policies(static_cast(NEXT_QOS_POLICY_ID), QosPolicyCount(INVALID_QOS_POLICY_ID, 0)) { for (uint32_t id = 0; id < NEXT_QOS_POLICY_ID; ++id) { policies[id].policy_id = static_cast(id); policies[id].count = 0; } } }; using RequestedIncompatibleQosStatus = IncompatibleQosStatus; using OfferedIncompatibleQosStatus = IncompatibleQosStatus; } //end of namespace dds } //end of namespace fastdds } //end of namespace eprosima #endif // _FASTRTPS_INCOMPATIBLE_QOS_STATUS_HPP_