foobar2000 SDK  2015-01-14
Public Member Functions | Private Attributes
album_art_extractor_instance_simple

#include <album_art_helpers.h>

+ Inheritance diagram for album_art_extractor_instance_simple:

Public Member Functions

bool have_item (const GUID &p_what)
 
bool is_empty () const
 
album_art_data_ptr query (const GUID &p_what, abort_callback &p_abort)
 
bool remove (const GUID &p_what)
 
void set (const GUID &p_what, album_art_data_ptr p_content)
 
- Public Member Functions inherited from album_art_extractor_instance
bool query (const GUID &what, album_art_data::ptr &out, abort_callback &abort)
 
- 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 ()
 

Private Attributes

pfc::map_t< GUID, album_art_data_ptrm_content
 

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 ()
 

Detailed Description

Helper - simple implementation of album_art_extractor_instance.

Definition at line 35 of file album_art_helpers.h.

Member Function Documentation

bool album_art_extractor_instance_simple::have_item ( const GUID p_what)
inline

Definition at line 38 of file album_art_helpers.h.

38 {return m_content.have_item(p_what);}
pfc::map_t< GUID, album_art_data_ptr > m_content
bool album_art_extractor_instance_simple::is_empty ( ) const
inline

Definition at line 44 of file album_art_helpers.h.

44 {return m_content.get_count() == 0;}
pfc::map_t< GUID, album_art_data_ptr > m_content
album_art_data_ptr album_art_extractor_instance_simple::query ( const GUID p_what,
abort_callback p_abort 
)
inlinevirtual

Throws exception_album_art_not_found when the requested album art entry could not be found in the referenced media file.

Implements album_art_extractor_instance.

Definition at line 39 of file album_art_helpers.h.

39  {
40  album_art_data_ptr temp;
41  if (!m_content.query(p_what,temp)) throw exception_album_art_not_found();
42  return temp;
43  }
Autopointer class to be used with all services. Manages reference counter calls behind-the-scenes.
Definition: service.h:55
pfc::map_t< GUID, album_art_data_ptr > m_content
bool album_art_extractor_instance_simple::remove ( const GUID p_what)
inline

Definition at line 45 of file album_art_helpers.h.

45  {
46  return m_content.remove(p_what);
47  }
pfc::map_t< GUID, album_art_data_ptr > m_content
void album_art_extractor_instance_simple::set ( const GUID p_what,
album_art_data_ptr  p_content 
)
inline

Definition at line 37 of file album_art_helpers.h.

37 {m_content.set(p_what,p_content);}
pfc::map_t< GUID, album_art_data_ptr > m_content

Field Documentation

pfc::map_t<GUID,album_art_data_ptr> album_art_extractor_instance_simple::m_content
private

Definition at line 49 of file album_art_helpers.h.


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