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

#include <titleformat.h>

+ Inheritance diagram for titleformat_hook_impl_splitter:

Public Member Functions

 titleformat_hook_impl_splitter (titleformat_hook *p_hook1, titleformat_hook *p_hook2)
 
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

titleformat_hookm_hook1
 
titleformat_hookm_hook2
 

Detailed Description

Definition at line 138 of file titleformat.h.

Constructor & Destructor Documentation

titleformat_hook_impl_splitter::titleformat_hook_impl_splitter ( titleformat_hook p_hook1,
titleformat_hook p_hook2 
)
inline

Definition at line 140 of file titleformat.h.

140 : m_hook1(p_hook1), m_hook2(p_hook2) {}
titleformat_hook * m_hook1
Definition: titleformat.h:144
titleformat_hook * m_hook2
Definition: titleformat.h:144

Member Function Documentation

bool titleformat_hook_impl_splitter::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 112 of file titleformat.cpp.

113 {
114  p_found_flag = false;
115  if (m_hook1 && m_hook1->process_field(p_out,p_name,p_name_length,p_found_flag)) return true;
116  p_found_flag = false;
117  if (m_hook2 && m_hook2->process_field(p_out,p_name,p_name_length,p_found_flag)) return true;
118  p_found_flag = false;
119  return false;
120 }
titleformat_hook * m_hook1
Definition: titleformat.h:144
titleformat_hook * m_hook2
Definition: titleformat.h:144
virtual bool process_field(titleformat_text_out *p_out, const char *p_name, t_size p_name_length, bool &p_found_flag)=0
bool titleformat_hook_impl_splitter::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 122 of file titleformat.cpp.

123 {
124  p_found_flag = false;
125  if (m_hook1 && m_hook1->process_function(p_out,p_name,p_name_length,p_params,p_found_flag)) return true;
126  p_found_flag = false;
127  if (m_hook2 && m_hook2->process_function(p_out,p_name,p_name_length,p_params,p_found_flag)) return true;
128  p_found_flag = false;
129  return false;
130 }
titleformat_hook * m_hook1
Definition: titleformat.h:144
titleformat_hook * m_hook2
Definition: titleformat.h:144
virtual 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)=0

Field Documentation

titleformat_hook* titleformat_hook_impl_splitter::m_hook1
private

Definition at line 144 of file titleformat.h.

titleformat_hook * titleformat_hook_impl_splitter::m_hook2
private

Definition at line 144 of file titleformat.h.


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