Program Listing for File RTPSDomain.h
↰ Return to documentation for file (/tmp/ws/src/fastrtps/include/fastdds/rtps/RTPSDomain.h
)
// 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 <atomic>
#include <mutex>
#include <set>
#include <fastdds/rtps/attributes/RTPSParticipantAttributes.h>
#include <fastdds/rtps/common/Types.h>
#include <fastdds/rtps/history/IPayloadPool.h>
#include <fastdds/rtps/history/IChangePool.h>
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<IPayloadPool>& payload_pool,
WriterHistory* hist,
WriterListener* listen = nullptr);
RTPS_DllAPI static RTPSWriter* createRTPSWriter(
RTPSParticipant* p,
WriterAttributes& watt,
const std::shared_ptr<IPayloadPool>& payload_pool,
const std::shared_ptr<IChangePool>& 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<IPayloadPool>& payload_pool,
const std::shared_ptr<IChangePool>& 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<IPayloadPool>& 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<IPayloadPool>& 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<IPayloadPool>& 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_*/