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

#include <input_file_type.h>

+ Inheritance diagram for input_file_type_v2_impl:

Public Member Functions

 input_file_type_v2_impl (const char *extensions, const char *name, const char *namePlural)
 
unsigned get_count ()
 
void get_extensions (unsigned idx, pfc::string_base &out)
 
void get_format_name (unsigned idx, pfc::string_base &out, bool isPlural)
 
bool is_associatable (unsigned idx)
 
- Public Member Functions inherited from input_file_type_v2
bool get_mask (unsigned idx, pfc::string_base &out)
 
bool get_name (unsigned idx, pfc::string_base &out)
 
- Public Member Functions inherited from input_file_type
 FB2K_MAKE_SERVICE_INTERFACE_ENTRYPOINT (input_file_type)
 
- 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

const pfc::string8 m_extensions
 
const pfc::string8 m_name
 
const pfc::string8 m_namePlural
 

Additional Inherited Members

- Public Types inherited from service_base
typedef service_base t_interface
 
- Static Public Member Functions inherited from input_file_type
static void build_openfile_mask (pfc::string_base &out, bool b_include_playlists=true)
 
static void make_extension_support_fingerprint (pfc::string_base &str)
 
static void make_filetype_support_fingerprint (pfc::string_base &str)
 
- Protected Member Functions inherited from service_base
 service_base ()
 
 ~service_base ()
 

Detailed Description

Definition at line 79 of file input_file_type.h.

Constructor & Destructor Documentation

input_file_type_v2_impl::input_file_type_v2_impl ( const char *  extensions,
const char *  name,
const char *  namePlural 
)
inline

Definition at line 81 of file input_file_type.h.

81 : m_extensions(extensions), m_name(name), m_namePlural(namePlural) {}
const pfc::string8 m_name
const pfc::string8 m_namePlural
const pfc::string8 m_extensions

Member Function Documentation

unsigned input_file_type_v2_impl::get_count ( )
inlinevirtual

Implements input_file_type.

Definition at line 82 of file input_file_type.h.

82 {return 1;}
void input_file_type_v2_impl::get_extensions ( unsigned  idx,
pfc::string_base out 
)
inlinevirtual

Implements input_file_type_v2.

Definition at line 87 of file input_file_type.h.

87  {
88  out = m_extensions;
89  }
const pfc::string8 m_extensions
void input_file_type_v2_impl::get_format_name ( unsigned  idx,
pfc::string_base out,
bool  isPlural 
)
inlinevirtual

Implements input_file_type_v2.

Definition at line 84 of file input_file_type.h.

84  {
85  out = isPlural ? m_namePlural : m_name;
86  }
const pfc::string8 m_name
const pfc::string8 m_namePlural
bool input_file_type_v2_impl::is_associatable ( unsigned  idx)
inlinevirtual

Implements input_file_type.

Definition at line 83 of file input_file_type.h.

83 {return true;}

Field Documentation

const pfc::string8 input_file_type_v2_impl::m_extensions
private

Definition at line 92 of file input_file_type.h.

const pfc::string8 input_file_type_v2_impl::m_name
private

Definition at line 92 of file input_file_type.h.

const pfc::string8 input_file_type_v2_impl::m_namePlural
private

Definition at line 92 of file input_file_type.h.


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