Function boost_plugin_loader::isSymbolAvailable

Function Documentation

bool boost_plugin_loader::isSymbolAvailable(const std::string &symbol_name, const std::string &library_name, const std::string &library_directory = "")

Check if the symbol is available in the library_name searching system folders for library.

The symbol name is the alias provide when calling EXPORT_CLASS_SECTIONED

Parameters:
  • symbol_name – The symbol to create a shared instance of

  • library_name – The library name to load which does not include the prefix ‘lib’ or suffix ‘.so’

  • library_directory – The library directory, if empty it will enable search system directories

Returns:

True if the symbol exists, otherwise false