Apollo 10.0
自动驾驶开放平台
apollo::dreamview::DvPluginBase类 参考abstract

A base class that a dreamview plus plug-in can inherit from. 更多...

#include <dv_plugin_base.h>

apollo::dreamview::DvPluginBase 的协作图:

Public 成员函数

 DvPluginBase ()
 
virtual void Init ()=0
 Initialize the interface for instances inherited by derived classes.
 
virtual void Run ()=0
 The instance running interface that needs to be inherited by the derived class mainly implements the calling of the instance.
 
virtual ~DvPluginBase ()=default
 
virtual std::map< std::string, WebSocketHandler * > GetWebSocketHandlers ()
 ß
 
virtual std::map< std::string, CivetHandler * > GetHandlers ()
 Get dreamview plus http handlers' info from base class or derived class.
 
virtual std::map< std::string, UpdaterBase * > GetUpdaterHandlers ()
 Get the websocket that needs to be subscribed and unsubscribed
 
virtual apollo::dreamview::DataHandlerConf GetDataHandlerConf ()
 Get the data handler info that needs to be subscribed and unsubscribed
 
virtual void Stop ()
 Mainly stop some resources of the instance.
 

详细描述

A base class that a dreamview plus plug-in can inherit from.

在文件 dv_plugin_base.h38 行定义.

构造及析构函数说明

◆ DvPluginBase()

apollo::dreamview::DvPluginBase::DvPluginBase ( )
inline

在文件 dv_plugin_base.h40 行定义.

40{}

◆ ~DvPluginBase()

virtual apollo::dreamview::DvPluginBase::~DvPluginBase ( )
virtualdefault

成员函数说明

◆ GetDataHandlerConf()

apollo::dreamview::DataHandlerConf apollo::dreamview::DvPluginBase::GetDataHandlerConf ( )
virtual

Get the data handler info that needs to be subscribed and unsubscribed

返回
The data handler info of the plugin.

在文件 dv_plugin_base.cc38 行定义.

◆ GetHandlers()

std::map< std::string, CivetHandler * > apollo::dreamview::DvPluginBase::GetHandlers ( )
virtual

Get dreamview plus http handlers' info from base class or derived class.

返回
The return value is a map, the key value is uri, and the value is the handler corresponding to uri.

在文件 dv_plugin_base.cc30 行定义.

30 {
31 return std::map<std::string, CivetHandler *>();
32}

◆ GetUpdaterHandlers()

std::map< std::string, UpdaterBase * > apollo::dreamview::DvPluginBase::GetUpdaterHandlers ( )
virtual

Get the websocket that needs to be subscribed and unsubscribed

返回
The return value is a map, the key value is uri, and the value is the handler and data handler info corresponding to uri.

在文件 dv_plugin_base.cc34 行定义.

34 {
35 return std::map<std::string, UpdaterBase *>();
36}

◆ GetWebSocketHandlers()

std::map< std::string, WebSocketHandler * > apollo::dreamview::DvPluginBase::GetWebSocketHandlers ( )
virtual

ß

Get dreamview plus websocket handlers' info from base class or derived class.

返回
The return value is a map, the key value is uri, and the value is the websocket handler corresponding to uri.

在文件 dv_plugin_base.cc26 行定义.

26 {
27 return std::map<std::string, WebSocketHandler *>();
28}

◆ Init()

virtual void apollo::dreamview::DvPluginBase::Init ( )
pure virtual

Initialize the interface for instances inherited by derived classes.

参数
config_pathConfiguration file path required when initializing multiple instances. Generally obtained through the plug-in configuration file.

◆ Run()

virtual void apollo::dreamview::DvPluginBase::Run ( )
pure virtual

The instance running interface that needs to be inherited by the derived class mainly implements the calling of the instance.

◆ Stop()

void apollo::dreamview::DvPluginBase::Stop ( )
virtual

Mainly stop some resources of the instance.

在文件 dv_plugin_base.cc42 行定义.

42{ return; }

该类的文档由以下文件生成: