Apollo 10.0
自动驾驶开放平台
qos_filler.h
浏览该文件的文档.
1/******************************************************************************
2 * Copyright 2024 The Apollo Authors. All Rights Reserved.
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 *****************************************************************************/
16
17#ifndef CYBER_DDS_ADAPTER_FASTDDS_QOS_FILLER_H_
18#define CYBER_DDS_ADAPTER_FASTDDS_QOS_FILLER_H_
19
20#include <string>
21
22#include "cyber/base/macros.h"
23
24#include "fastdds/dds/publisher/qos/DataWriterQos.hpp"
25#include "fastdds/dds/publisher/qos/PublisherQos.hpp"
26#include "fastdds/dds/subscriber/qos/DataReaderQos.hpp"
27#include "fastdds/dds/subscriber/qos/SubscriberQos.hpp"
28#include "fastdds/dds/topic/qos/TopicQos.hpp"
29#include "cyber/proto/qos_profile.pb.h"
30
31namespace apollo {
32namespace cyber {
33namespace transport {
34
35class QosFiller {
36 public:
37 static bool FillInPubQos(const std::string& channel_name,
38 const proto::QosProfile& qos,
39 eprosima::fastdds::dds::PublisherQos* pub_qos);
40
41 static bool FillInWriterQos(
42 const std::string& channel_name, const proto::QosProfile& qos,
43 eprosima::fastdds::dds::DataWriterQos* writer_qos);
44
45 static bool FillInSubQos(const std::string& channel_name,
46 const proto::QosProfile& qos,
47 eprosima::fastdds::dds::SubscriberQos* sub_qos);
48
49 static bool FillInReaderQos(
50 const std::string& channel_name, const proto::QosProfile& qos,
51 eprosima::fastdds::dds::DataReaderQos* reader_qos);
52
53 static bool FillInTopicQos(const std::string& channel_name,
54 const proto::QosProfile& qos,
55 eprosima::fastdds::dds::TopicQos* topic_qos);
56};
57
58} // namespace transport
59} // namespace cyber
60} // namespace apollo
61
62#endif // CYBER_DDS_ADAPTER_FASTDDS_QOS_FILLER_H_
static bool FillInTopicQos(const std::string &channel_name, const proto::QosProfile &qos, eprosima::fastdds::dds::TopicQos *topic_qos)
static bool FillInPubQos(const std::string &channel_name, const proto::QosProfile &qos, eprosima::fastdds::dds::PublisherQos *pub_qos)
static bool FillInSubQos(const std::string &channel_name, const proto::QosProfile &qos, eprosima::fastdds::dds::SubscriberQos *sub_qos)
static bool FillInWriterQos(const std::string &channel_name, const proto::QosProfile &qos, eprosima::fastdds::dds::DataWriterQos *writer_qos)
static bool FillInReaderQos(const std::string &channel_name, const proto::QosProfile &qos, eprosima::fastdds::dds::DataReaderQos *reader_qos)
class register implement
Definition arena_queue.h:37