Program Listing for File Participant.h
↰ Return to documentation for file (/tmp/ws/src/fastrtps/include/fastrtps/participant/Participant.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 PARTICIPANT_H_
#define PARTICIPANT_H_
#include <fastdds/rtps/common/Guid.h>
#include <fastdds/rtps/attributes/RTPSParticipantAttributes.h>
#include <utility>
namespace eprosima {
namespace fastrtps{
class ParticipantImpl;
class ParticipantAttributes;
namespace rtps
{
class WriterProxyData;
class ReaderProxyData;
class ResourceEvent;
class RTPSParticipant;
}
class RTPS_DllAPI Participant
{
public:
const rtps::GUID_t& getGuid() const;
const ParticipantAttributes& getAttributes() const;
bool newRemoteEndpointDiscovered(
const rtps::GUID_t& partguid,
uint16_t userId,
rtps::EndpointKind_t kind);
std::vector<std::string> getParticipantNames() const;
void assert_liveliness();
rtps::ResourceEvent& get_resource_event() const;
private:
Participant();
virtual ~Participant();
ParticipantImpl* mp_impl;
friend class Domain;
friend class ParticipantImpl;
};
}
} /* namespace eprosima */
#endif /* PARTICIPANT_H_ */