foobar2000 SDK  2015-08-03
Public Member Functions | Private Attributes
icon_remapping_wildcard_impl

#include <icon_remapping_wildcard.h>

+ Inheritance diagram for icon_remapping_wildcard_impl:

Public Member Functions

 icon_remapping_wildcard_impl (const char *p_pattern, const char *p_iconname)
 
bool query (const char *p_extension, pfc::string_base &p_iconname)
 
- Public Member Functions inherited from icon_remapping
 FB2K_MAKE_SERVICE_INTERFACE_ENTRYPOINT (icon_remapping)
 
- 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::string8 m_iconname
 
pfc::string8 m_pattern
 

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

Definition at line 1 of file icon_remapping_wildcard.h.

Constructor & Destructor Documentation

icon_remapping_wildcard_impl::icon_remapping_wildcard_impl ( const char *  p_pattern,
const char *  p_iconname 
)
inline

Definition at line 3 of file icon_remapping_wildcard.h.

3 : m_pattern(p_pattern), m_iconname(p_iconname) {}

Member Function Documentation

bool icon_remapping_wildcard_impl::query ( const char *  p_extension,
pfc::string_base p_iconname 
)
inlinevirtual
Parameters
p_extensionFile type extension being queried.
p_iconnameReceives the icon name to use, including the .ico extension.
Returns
True when p_iconname has been set, false if we don't recognize the specified extension.

Implements icon_remapping.

Definition at line 4 of file icon_remapping_wildcard.h.

4  {
5  if (wildcard_helper::test(p_extension,m_pattern,true)) {
6  p_iconname = m_iconname; return true;
7  } else {
8  return false;
9  }
10  }
bool test(const char *str, const char *pattern, bool b_separate_by_semicolon=false)
Definition: wildcard.cpp:26

Field Documentation

pfc::string8 icon_remapping_wildcard_impl::m_iconname
private

Definition at line 12 of file icon_remapping_wildcard.h.

pfc::string8 icon_remapping_wildcard_impl::m_pattern
private

Definition at line 12 of file icon_remapping_wildcard.h.


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