A base class that a dreamview plus plug-in can inherit from.
更多...
#include <dv_plugin_base.h>
|
| 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.h 第 38 行定义.
◆ DvPluginBase()
apollo::dreamview::DvPluginBase::DvPluginBase |
( |
| ) |
|
|
inline |
◆ ~DvPluginBase()
virtual apollo::dreamview::DvPluginBase::~DvPluginBase |
( |
| ) |
|
|
virtualdefault |
◆ GetDataHandlerConf()
Get the data handler info that needs to be subscribed and unsubscribed
- 返回
- The data handler info of the plugin.
在文件 dv_plugin_base.cc 第 38 行定义.
◆ 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.cc 第 30 行定义.
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.cc 第 34 行定义.
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.cc 第 26 行定义.
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_path | Configuration 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 |
该类的文档由以下文件生成: