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

#include <titleformat.h>

+ Inheritance diagram for titleformat_hook_impl_list:

Public Member Functions

 titleformat_hook_impl_list (t_size p_index, t_size p_total)
 
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)
 

Private Attributes

t_size m_index
 
t_size m_total
 

Detailed Description

Definition at line 172 of file titleformat.h.

Constructor & Destructor Documentation

titleformat_hook_impl_list::titleformat_hook_impl_list ( t_size  p_index,
t_size  p_total 
)
inline

Definition at line 174 of file titleformat.h.

174 : m_index(p_index), m_total(p_total) {}

Member Function Documentation

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

Implements titleformat_hook.

Definition at line 176 of file titleformat.h.

176  {
177  if (
178  pfc::stricmp_ascii_ex(p_name,p_name_length,"list_index",~0) == 0
179  ) {
181  p_found_flag = true; return true;
182  } else if (
183  pfc::stricmp_ascii_ex(p_name,p_name_length,"list_total",~0) == 0
184  ) {
186  p_found_flag = true; return true;
187  } else {
188  p_found_flag = false; return false;
189  }
190  }
void write_int_padded(const GUID &p_inputtype, t_int64 val, t_int64 maxval)
int stricmp_ascii_ex(const char *const s1, t_size const len1, const char *const s2, t_size const len2)
void write_int(const GUID &p_inputtype, t_int64 val)
bool titleformat_hook_impl_list::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 
)
inlinevirtual

Implements titleformat_hook.

Definition at line 192 of file titleformat.h.

192 {return false;}

Field Documentation

t_size titleformat_hook_impl_list::m_index
private

Definition at line 195 of file titleformat.h.

t_size titleformat_hook_impl_list::m_total
private

Definition at line 195 of file titleformat.h.


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