foobar2000 SDK
2015-08-03
|
#include <unpack.h>
Public Member Functions | |
FB2K_MAKE_SERVICE_INTERFACE_ENTRYPOINT (unpacker) | |
virtual void | open (service_ptr_t< file > &p_out, const service_ptr_t< file > &p_source, abort_callback &p_abort)=0 |
Public Member Functions inherited from service_base | |
template<typename outPtr_t > | |
bool | cast (outPtr_t &outPtr) |
virtual int | service_add_ref ()=0 throw () |
virtual bool | service_query (service_ptr_t< service_base > &p_out, const GUID &p_guid) |
template<class T > | |
bool | service_query_t (service_ptr_t< T > &p_out) |
virtual int | service_release ()=0 throw () |
Static Public Member Functions | |
static void | g_open (service_ptr_t< file > &p_out, const service_ptr_t< file > &p_source, abort_callback &p_abort) |
Additional Inherited Members | |
Public Types inherited from service_base | |
typedef service_base | t_interface |
Protected Member Functions inherited from service_base | |
service_base () | |
~service_base () | |
Service providing "unpacker" functionality - processes "packed" file (such as a zip file containing a single media file inside) to allow its contents to be accessed transparently.
To access existing unpacker implementations, use unpacker::g_open helper function.
To register your own implementation, use unpacker_factory_t template.
unpacker::FB2K_MAKE_SERVICE_INTERFACE_ENTRYPOINT | ( | unpacker | ) |
|
static |
Static helper querying existing unpacker implementations until one that successfully opens specified file is found. Attempts to open specified file for unpacking, creates interface to virtual file with uncompressed data on success. When examined file doesn't appear to be one of formats supported by registered unpacker implementations, throws exception_io_data.
p_out | Receives interface to virtual file with uncompressed data on success. |
p_source | Source file to process. |
p_abort | abort_callback object signaling user aborting the operation. |
Definition at line 6 of file filesystem.cpp.
|
pure virtual |
Attempts to open specified file for unpacking, creates interface to virtual file with uncompressed data on success. When examined file doesn't appear to be one of formats supported by this unpacker implementation, throws exception_io_data.
p_out | Receives interface to virtual file with uncompressed data on success. |
p_source | Source file to process. |
p_abort | abort_callback object signaling user aborting the operation. |