foobar2000 SDK  2015-08-03
Public Member Functions
titleformat_objectabstract

#include <titleformat.h>

+ Inheritance diagram for titleformat_object:

Public Member Functions

 FB2K_MAKE_SERVICE_INTERFACE (titleformat_object, service_base)
 
virtual void run (titleformat_hook *p_source, pfc::string_base &p_out, titleformat_text_filter *p_filter)=0
 
void run_hook (const playable_location &p_location, const file_info *p_source, titleformat_hook *p_hook, pfc::string_base &p_out, titleformat_text_filter *p_filter)
 
void run_simple (const playable_location &p_location, const file_info *p_source, pfc::string_base &p_out)
 
- 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 ()
 

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

Represents precompiled executable title-formatting script. Use titleformat_compiler to instantiate; do not reimplement.

Definition at line 41 of file titleformat.h.

Member Function Documentation

titleformat_object::FB2K_MAKE_SERVICE_INTERFACE ( titleformat_object  ,
service_base   
)
virtual void titleformat_object::run ( titleformat_hook p_source,
pfc::string_base p_out,
titleformat_text_filter p_filter 
)
pure virtual
void titleformat_object::run_hook ( const playable_location p_location,
const file_info p_source,
titleformat_hook p_hook,
pfc::string_base p_out,
titleformat_text_filter p_filter 
)

Definition at line 74 of file titleformat.cpp.

75 {
76  if (p_hook)
77  {
78  run(
80  p_hook,
81  &titleformat_hook_impl_file_info(p_location,p_source)
82  ),
83  p_out,p_filter);
84  }
85  else
86  {
87  run(
88  &titleformat_hook_impl_file_info(p_location,p_source),
89  p_out,p_filter);
90  }
91 }
virtual void run(titleformat_hook *p_source, pfc::string_base &p_out, titleformat_text_filter *p_filter)=0
void titleformat_object::run_simple ( const playable_location p_location,
const file_info p_source,
pfc::string_base p_out 
)

Definition at line 93 of file titleformat.cpp.

94 {
95  run(&titleformat_hook_impl_file_info(p_location,p_source),p_out,NULL);
96 }
virtual void run(titleformat_hook *p_source, pfc::string_base &p_out, titleformat_text_filter *p_filter)=0

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