Lunchbox
1.13.0
Multi-threaded C++ toolbox library for all application developers creating high-performance multi-threaded programs.
|
Holder for all functions and information of one compression plugin DSO. More...
#include <plugin.h>
Public Member Functions | |
Plugin (const std::string &libraryName) | |
Construct and initialize a new plugin DSO. More... | |
virtual | ~Plugin () |
Destruct this plugin handle. More... | |
Data Access. | |
bool | isGood () const |
VisitorResult | accept (PluginVisitor &visitor) |
Visit all compressors. More... | |
VisitorResult | accept (ConstPluginVisitor &visitor) const |
Visit all compressors. More... | |
bool | implementsType (const uint32_t name) const |
EqCompressorInfo | findInfo (const uint32_t name) const |
const CompressorInfos & | getInfos () const |
![]() | |
DSO () | |
Construct a new dynamic shared object. More... | |
DSO (const std::string &name) | |
Construct and initialize a dynamic shared object. More... | |
~DSO () | |
Destruct this DSO handle. More... | |
bool | open (const std::string &fileName) |
Open a dynamic shared object. More... | |
void | close () |
Close the DSO, invalidates retrieved function pointers. More... | |
void * | getFunctionPointer (const std::string &functionName) const |
template<class F > | |
F | getFunctionPointer (const std::string &func) const |
bool | isOpen () const |
bool | operator== (const DSO &rhs) const |
bool | operator!= (const DSO &rhs) const |
Public Attributes | |
Plugin function pointers. | |
GetNumCompressors_t const | getNumCompressors |
Get the number of engines found in the plugin. More... | |
NewCompressor_t const | newCompressor |
Get a new compressor instance. More... | |
NewDecompressor_t const | newDecompressor |
Get a new decompressor instance. More... | |
DeleteCompressor_t const | deleteCompressor |
Delete the compressor instance. More... | |
DeleteDecompressor_t const | deleteDecompressor |
Delete the decompressor instance. More... | |
Compress_t const | compress |
Compress data. More... | |
Decompress_t const | decompress |
Decompress data. More... | |
GetNumResults_t const | getNumResults |
Get the number of results from the last compression. More... | |
GetResult_t const | getResult |
Get the nth result from the last compression. More... | |
IsCompatible_t const | isCompatible |
Check if the transfer plugin can be used. More... | |
Download_t const | download |
Download pixel data. More... | |
Upload_t const | upload |
Upload pixel data. More... | |
StartDownload_t const | startDownload |
Start downloading pixel data. More... | |
FinishDownload_t const | finishDownload |
Start downloading pixel data. More... | |
Holder for all functions and information of one compression plugin DSO.
Example:
|
explicit |
Construct and initialize a new plugin DSO.
|
virtual |
Destruct this plugin handle.
VisitorResult lunchbox::Plugin::accept | ( | PluginVisitor & | visitor | ) |
Visit all compressors.
VisitorResult lunchbox::Plugin::accept | ( | ConstPluginVisitor & | visitor | ) | const |
Visit all compressors.
bool lunchbox::Plugin::isGood | ( | ) | const |
Compress_t const lunchbox::Plugin::compress |
Decompress_t const lunchbox::Plugin::decompress |
DeleteCompressor_t const lunchbox::Plugin::deleteCompressor |
DeleteDecompressor_t const lunchbox::Plugin::deleteDecompressor |
Download_t const lunchbox::Plugin::download |
FinishDownload_t const lunchbox::Plugin::finishDownload |
GetNumCompressors_t const lunchbox::Plugin::getNumCompressors |
GetNumResults_t const lunchbox::Plugin::getNumResults |
GetResult_t const lunchbox::Plugin::getResult |
IsCompatible_t const lunchbox::Plugin::isCompatible |
NewCompressor_t const lunchbox::Plugin::newCompressor |
NewDecompressor_t const lunchbox::Plugin::newDecompressor |
StartDownload_t const lunchbox::Plugin::startDownload |
Upload_t const lunchbox::Plugin::upload |