Apollo 10.0
自动驾驶开放平台
updater_base.h
浏览该文件的文档.
1/******************************************************************************
2 * Copyright 2017 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
22#pragma once
23#include <string>
24#include "nlohmann/json.hpp"
25
26namespace apollo {
27
28namespace dreamview {
29
39 public:
44
51 virtual void StartStream(const double& time_interval_ms,
52 const std::string& channel_name = "",
53 nlohmann::json* subscribe_param = nullptr) = 0;
54
58 virtual void StopStream(const std::string& channel_name = "") = 0;
59
63 virtual void PublishMessage(const std::string& channel_name = "") = 0;
64 virtual ~UpdaterBase() {}
65};
66
67} // namespace dreamview
68} // namespace apollo
Base Class for all data updater.
virtual void StopStream(const std::string &channel_name="")=0
Stop data flow.
virtual void PublishMessage(const std::string &channel_name="")=0
Publish Message to dreamview frontend.
virtual void StartStream(const double &time_interval_ms, const std::string &channel_name="", nlohmann::json *subscribe_param=nullptr)=0
Start data flow.
class register implement
Definition arena_queue.h:37