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

#include <titleformat.h>

+ Inheritance diagram for titleformat_hook_impl_file_info:

Public Member Functions

 titleformat_hook_impl_file_info (const playable_location &p_location, const file_info *p_info)
 
bool process_field (titleformat_text_out *p_out, const char *p_name, t_size p_name_length, bool &p_found_flag)
 
bool process_function (titleformat_text_out *p_out, const char *p_name, t_size p_name_length, titleformat_hook_function_params *p_params, bool &p_found_flag)
 

Protected Member Functions

bool remap_meta (t_size &p_index, const char *p_name, t_size p_name_length)
 

Protected Attributes

const file_infom_info
 

Private Attributes

static_api_ptr_t< titleformat_common_methodsm_api
 
const playable_locationm_location
 

Detailed Description

Definition at line 124 of file titleformat.h.

Constructor & Destructor Documentation

titleformat_hook_impl_file_info::titleformat_hook_impl_file_info ( const playable_location p_location,
const file_info p_info 
)
inline

Definition at line 127 of file titleformat.h.

127 : m_location(p_location), m_info(p_info) {}//caller must ensure that referenced file_info object is alive as long as the titleformat_hook_impl_file_info instance
const playable_location & m_location
Definition: titleformat.h:134

Member Function Documentation

bool titleformat_hook_impl_file_info::process_field ( titleformat_text_out p_out,
const char *  p_name,
t_size  p_name_length,
bool &  p_found_flag 
)
virtual

Implements titleformat_hook.

Definition at line 67 of file titleformat.cpp.

67  {
68  return m_api->process_field(*m_info,m_location,p_out,p_name,p_name_length,p_found_flag);
69 }
static_api_ptr_t< titleformat_common_methods > m_api
Definition: titleformat.h:135
const playable_location & m_location
Definition: titleformat.h:134
bool titleformat_hook_impl_file_info::process_function ( titleformat_text_out p_out,
const char *  p_name,
t_size  p_name_length,
titleformat_hook_function_params p_params,
bool &  p_found_flag 
)
virtual

Implements titleformat_hook.

Definition at line 70 of file titleformat.cpp.

70  {
71  return m_api->process_function(*m_info,m_location,p_out,p_name,p_name_length,p_params,p_found_flag);
72 }
static_api_ptr_t< titleformat_common_methods > m_api
Definition: titleformat.h:135
const playable_location & m_location
Definition: titleformat.h:134
bool titleformat_hook_impl_file_info::remap_meta ( t_size p_index,
const char *  p_name,
t_size  p_name_length 
)
inlineprotected

Definition at line 131 of file titleformat.h.

131 {return m_api->remap_meta(*m_info,p_index,p_name,p_name_length);}
static_api_ptr_t< titleformat_common_methods > m_api
Definition: titleformat.h:135

Field Documentation

static_api_ptr_t<titleformat_common_methods> titleformat_hook_impl_file_info::m_api
private

Definition at line 135 of file titleformat.h.

const file_info* titleformat_hook_impl_file_info::m_info
protected

Definition at line 132 of file titleformat.h.

const playable_location& titleformat_hook_impl_file_info::m_location
private

Definition at line 134 of file titleformat.h.


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