OpenCPN Partial API docs
Loading...
Searching...
No Matches
PlugBlacklist Class Reference
Inheritance diagram for PlugBlacklist:
AbstractBlacklist

Public Member Functions

virtual plug_data get_library_data (const std::string &library_file)
 Best effort attempt to get data for a library file.
 
plug_status get_status (const std::string &name, int major, int minor)
 Return status for given official plugin name and version.
 
plug_status get_status (const plug_data pd)
 Return status for given official plugin name and version.
 
virtual bool mark_unloadable (const std::string &name, int major, int minor)
 Given plugin name and version mark it as unloadable.
 
bool mark_unloadable (const std::string &path)
 Given a path, mark filename as unloadable.
 
bool is_loadable (const std::string path)
 Return true iff plugin (a path) is loadable.
 
std::string get_message (plug_status status, const plug_data &data)
 Return plugin-specific message, possibly "".
 

Friends

std::unique_ptr< AbstractBlacklistblacklist_factory ()
 

Detailed Description

Definition at line 147 of file plugin_blacklist.cpp.

Member Function Documentation

◆ get_library_data()

virtual plug_data PlugBlacklist::get_library_data ( const std::string &  library_file)
inlinevirtual

Best effort attempt to get data for a library file.

Implements AbstractBlacklist.

Definition at line 197 of file plugin_blacklist.cpp.

◆ get_message()

std::string PlugBlacklist::get_message ( plug_status  sts,
const plug_data data 
)
inlinevirtual

Return plugin-specific message, possibly "".

Implements AbstractBlacklist.

Definition at line 238 of file plugin_blacklist.cpp.

◆ get_status() [1/2]

plug_status PlugBlacklist::get_status ( const plug_data  pd)
inlinevirtual

Return status for given official plugin name and version.

Implements AbstractBlacklist.

Definition at line 210 of file plugin_blacklist.cpp.

◆ get_status() [2/2]

plug_status PlugBlacklist::get_status ( const std::string &  name,
int  _major,
int  _minor 
)
inlinevirtual

Return status for given official plugin name and version.

Implements AbstractBlacklist.

Definition at line 204 of file plugin_blacklist.cpp.

◆ is_loadable()

bool PlugBlacklist::is_loadable ( const std::string  path)
inlinevirtual

Return true iff plugin (a path) is loadable.

Implements AbstractBlacklist.

Definition at line 226 of file plugin_blacklist.cpp.

◆ mark_unloadable() [1/2]

virtual bool PlugBlacklist::mark_unloadable ( const std::string &  name,
int  major,
int  minor 
)
inlinevirtual

Given plugin name and version mark it as unloadable.

Returns
true if plugin was already marked, else false.

Implements AbstractBlacklist.

Definition at line 214 of file plugin_blacklist.cpp.

◆ mark_unloadable() [2/2]

bool PlugBlacklist::mark_unloadable ( const std::string &  path)
inlinevirtual

Given a path, mark filename as unloadable.

Implements AbstractBlacklist.

Definition at line 219 of file plugin_blacklist.cpp.

Friends And Related Symbol Documentation

◆ blacklist_factory

std::unique_ptr< AbstractBlacklist > blacklist_factory ( )
friend

Definition at line 258 of file plugin_blacklist.cpp.


The documentation for this class was generated from the following file: