|
Apollo 10.0
自动驾驶开放平台
|
#include <plugin_manager.h>
Public 成员函数 | |
| ~PluginManager () | |
| bool | ProcessPluginDescriptionFile (const std::string &file_path, std::string *library_path) |
| parse plugin description file and load the library TODO(liangjinping): parse description to struct | |
| bool | LoadPlugin (const std::string &plugin_description_file_path) |
| load plugin clases from file | |
| template<typename Base > | |
| std::shared_ptr< Base > | CreateInstance (const std::string &derived_class) |
create plugin instance of derived class based on Base | |
| bool | FindPluginIndexAndLoad (const std::string &plugin_index_path) |
| find plugin index file and load plugins | |
| bool | LoadInstalledPlugins () |
| load plugins from installed path | |
| template<typename Base > | |
| std::string | GetPluginClassHomePath (const std::string &class_name) |
| @bried get plugin description file location that class belongs to | |
| template<typename Base > | |
| std::string | GetPluginConfPath (const std::string &class_name, const std::string &conf_name) |
| get plugin configuration file location | |
| bool | LoadLibrary (const std::string &library_path) |
| load library of plugin | |
| template<typename Base > | |
| bool | IsLibraryLoaded (const std::string &class_name) |
| check if library of plugin is loaded | |
| template<typename Base > | |
| bool | CheckAndLoadPluginLibrary (const std::string &class_name) |
| check if library of plugin is loaded, and load it if not | |
| template<typename Base > | |
| std::vector< std::string > | GetDerivedClassNameByBaseClass () |
| Get all derived class name by base class name | |
静态 Public 成员函数 | |
| static PluginManager * | Instance () |
| get singleton instance of PluginManager | |
在文件 plugin_manager.h 第 37 行定义.
| PluginManager::~PluginManager | ( | ) |
在文件 plugin_manager.cc 第 39 行定义.
| bool PluginManager::CheckAndLoadPluginLibrary | ( | const std::string & | class_name | ) |
check if library of plugin is loaded, and load it if not
| class_name | derived class name of plugin |
在文件 plugin_manager.h 第 231 行定义.
| std::shared_ptr< Base > PluginManager::CreateInstance | ( | const std::string & | derived_class | ) |
create plugin instance of derived class based on Base
| derived_class | class name of the derived class |
在文件 plugin_manager.h 第 150 行定义.
| bool PluginManager::FindPluginIndexAndLoad | ( | const std::string & | plugin_index_path | ) |
find plugin index file and load plugins
| plugin_index_path | plugin index file directory |
在文件 plugin_manager.cc 第 106 行定义.
| std::vector< std::string > PluginManager::GetDerivedClassNameByBaseClass | ( | ) |
Get all derived class name by base class name
在文件 plugin_manager.h 第 259 行定义.
| std::string PluginManager::GetPluginClassHomePath | ( | const std::string & | class_name | ) |
@bried get plugin description file location that class belongs to
| class_name | derived class name |
在文件 plugin_manager.h 第 161 行定义.
| std::string PluginManager::GetPluginConfPath | ( | const std::string & | class_name, |
| const std::string & | conf_name | ||
| ) |
get plugin configuration file location
| class_name | derived class name |
| conf_name | configuration file name |
在文件 plugin_manager.h 第 192 行定义.
|
static |
get singleton instance of PluginManager
在文件 plugin_manager.cc 第 203 行定义.
| bool PluginManager::IsLibraryLoaded | ( | const std::string & | class_name | ) |
check if library of plugin is loaded
| class_name | derived class name of plugin |
在文件 plugin_manager.h 第 211 行定义.
| bool PluginManager::LoadInstalledPlugins | ( | ) |
load plugins from installed path
在文件 plugin_manager.cc 第 148 行定义.
| bool PluginManager::LoadLibrary | ( | const std::string & | library_path | ) |
load library of plugin
| library_path | library path |
在文件 plugin_manager.cc 第 195 行定义.
| bool PluginManager::LoadPlugin | ( | const std::string & | plugin_description_file_path | ) |
load plugin clases from file
| pluin_description_file_path | file path |
在文件 plugin_manager.cc 第 58 行定义.
| bool PluginManager::ProcessPluginDescriptionFile | ( | const std::string & | file_path, |
| std::string * | library_path | ||
| ) |
parse plugin description file and load the library TODO(liangjinping): parse description to struct
| file_path | the path of plugin description file |
在文件 plugin_manager.cc 第 41 行定义.