.. _program_listing_file__tmp_ws_src_fastrtps_include_fastdds_rtps_RTPSDomain.h: Program Listing for File RTPSDomain.h ===================================== |exhale_lsh| :ref:`Return to documentation for file ` (``/tmp/ws/src/fastrtps/include/fastdds/rtps/RTPSDomain.h``) .. |exhale_lsh| unicode:: U+021B0 .. UPWARDS ARROW WITH TIP LEFTWARDS .. code-block:: cpp // Copyright 2016 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 _FASTDDS_RTPS_DOMAIN_H_ #define _FASTDDS_RTPS_DOMAIN_H_ #include #include #include #include #include #include #include namespace eprosima { namespace fastrtps { namespace rtps { class RTPSParticipantImpl; class RTPSParticipant; class RTPSParticipantListener; class RTPSWriter; class WriterAttributes; class WriterHistory; class WriterListener; class RTPSReader; class ReaderAttributes; class ReaderHistory; class ReaderListener; class RTPSDomainImpl; class RTPSDomain { public: RTPS_DllAPI static void stopAll(); RTPS_DllAPI static RTPSParticipant* createParticipant( uint32_t domain_id, const RTPSParticipantAttributes& attrs, RTPSParticipantListener* plisten = nullptr); RTPS_DllAPI static RTPSParticipant* createParticipant( uint32_t domain_id, bool enabled, const RTPSParticipantAttributes& attrs, RTPSParticipantListener* plisten = nullptr); RTPS_DllAPI static RTPSWriter* createRTPSWriter( RTPSParticipant* p, WriterAttributes& watt, WriterHistory* hist, WriterListener* listen = nullptr); RTPS_DllAPI static RTPSWriter* createRTPSWriter( RTPSParticipant* p, WriterAttributes& watt, const std::shared_ptr& payload_pool, WriterHistory* hist, WriterListener* listen = nullptr); RTPS_DllAPI static RTPSWriter* createRTPSWriter( RTPSParticipant* p, WriterAttributes& watt, const std::shared_ptr& payload_pool, const std::shared_ptr& change_pool, WriterHistory* hist, WriterListener* listen = nullptr); RTPS_DllAPI static RTPSWriter* createRTPSWriter( RTPSParticipant* p, const EntityId_t& entity_id, WriterAttributes& watt, const std::shared_ptr& payload_pool, const std::shared_ptr& change_pool, WriterHistory* hist, WriterListener* listen = nullptr); RTPS_DllAPI static RTPSWriter* createRTPSWriter( RTPSParticipant* p, const EntityId_t& entity_id, WriterAttributes& watt, const std::shared_ptr& payload_pool, WriterHistory* hist, WriterListener* listen = nullptr); RTPS_DllAPI static bool removeRTPSWriter( RTPSWriter* writer); RTPS_DllAPI static RTPSReader* createRTPSReader( RTPSParticipant* p, ReaderAttributes& ratt, ReaderHistory* hist, ReaderListener* listen = nullptr); RTPS_DllAPI static RTPSReader* createRTPSReader( RTPSParticipant* p, ReaderAttributes& ratt, const std::shared_ptr& payload_pool, ReaderHistory* hist, ReaderListener* listen = nullptr); RTPS_DllAPI static RTPSReader* createRTPSReader( RTPSParticipant* p, const EntityId_t& entity_id, ReaderAttributes& ratt, const std::shared_ptr& payload_pool, ReaderHistory* hist, ReaderListener* listen = nullptr); RTPS_DllAPI static bool removeRTPSReader( RTPSReader* reader); RTPS_DllAPI static bool removeRTPSParticipant( RTPSParticipant* p); private: RTPSDomain() = delete; ~RTPSDomain() = delete; }; } // namespace rtps } /* namespace fastrtps */ } /* namespace eprosima */ #endif /* _FASTDDS_RTPS_DOMAIN_H_*/