Apollo 10.0
自动驾驶开放平台
history_attributes.h
浏览该文件的文档.
1/******************************************************************************
2 * Copyright 2018 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_TRANSPORT_MESSAGE_HISTORY_ATTRIBUTES_H_
18#define CYBER_TRANSPORT_MESSAGE_HISTORY_ATTRIBUTES_H_
19
20#include <cstdint>
21
22#include "cyber/proto/qos_profile.pb.h"
23
24namespace apollo {
25namespace cyber {
26namespace transport {
27
30 : history_policy(proto::QosHistoryPolicy::HISTORY_KEEP_LAST),
31 depth(1000) {}
32 HistoryAttributes(const proto::QosHistoryPolicy& qos_history_policy,
33 uint32_t history_depth)
34 : history_policy(qos_history_policy), depth(history_depth) {}
35
37 uint32_t depth;
38};
39
40} // namespace transport
41} // namespace cyber
42} // namespace apollo
43
44#endif // CYBER_TRANSPORT_MESSAGE_HISTORY_ATTRIBUTES_H_
class register implement
Definition arena_queue.h:37
HistoryAttributes(const proto::QosHistoryPolicy &qos_history_policy, uint32_t history_depth)