Program Listing for File ReaderAttributes.h
↰ Return to documentation for file (/tmp/ws/src/fastrtps/include/fastdds/rtps/attributes/ReaderAttributes.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_ATTRIBUTES_READERATTRIBUTES_H_
#define _FASTDDS_RTPS_ATTRIBUTES_READERATTRIBUTES_H_
#include <fastdds/rtps/common/Time_t.h>
#include <fastdds/rtps/common/Guid.h>
#include <fastdds/rtps/attributes/EndpointAttributes.h>
#include <fastrtps/qos/QosPolicies.h>
#include <fastrtps/utils/collections/ResourceLimitedContainerConfig.hpp>
#include <functional>
namespace eprosima {
namespace fastrtps {
namespace rtps {
class ReaderTimes
{
public:
ReaderTimes()
{
initialAcknackDelay.nanosec = 70 * 1000 * 1000;
heartbeatResponseDelay.nanosec = 5 * 1000 * 1000;
}
virtual ~ReaderTimes()
{
}
bool operator ==(
const ReaderTimes& b) const
{
return (this->initialAcknackDelay == b.initialAcknackDelay) &&
(this->heartbeatResponseDelay == b.heartbeatResponseDelay);
}
Duration_t initialAcknackDelay;
Duration_t heartbeatResponseDelay;
};
class ReaderAttributes
{
public:
ReaderAttributes()
: liveliness_kind_(AUTOMATIC_LIVELINESS_QOS)
, liveliness_lease_duration(TIME_T_INFINITE_SECONDS, TIME_T_INFINITE_NANOSECONDS)
, expectsInlineQos(false)
, disable_positive_acks(false)
{
endpoint.endpointKind = READER;
endpoint.durabilityKind = VOLATILE;
endpoint.reliabilityKind = BEST_EFFORT;
}
virtual ~ReaderAttributes()
{
}
EndpointAttributes endpoint;
ReaderTimes times;
LivelinessQosPolicyKind liveliness_kind_;
Duration_t liveliness_lease_duration;
bool expectsInlineQos;
bool disable_positive_acks;
ResourceLimitedContainerConfig matched_writers_allocation;
};
} /* namespace rtps */
} /* namespace fastrtps */
} /* namespace eprosima */
#endif /* _FASTDDS_RTPS_ATTRIBUTES_READERATTRIBUTES_H_ */