foobar2000 SDK
2015-08-03
|
#include <titleformat.h>
Public Member Functions | |
virtual bool | compile (titleformat_object::ptr &p_out, const char *p_spec)=0 |
void | compile_force (titleformat_object::ptr &p_out, const char *p_spec) |
void | compile_safe (titleformat_object::ptr &p_out, const char *p_spec) |
void | compile_safe_ex (titleformat_object::ptr &p_out, const char *p_spec, const char *p_fallback="<ERROR>") |
FB2K_MAKE_SERVICE_INTERFACE_ENTRYPOINT (titleformat_compiler) | |
void | run (titleformat_hook *p_source, pfc::string_base &p_out, const char *p_spec) |
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 () |
Static Public Member Functions | |
static void | remove_color_marks (const char *src, pfc::string_base &out) |
static void | remove_forbidden_chars (titleformat_text_out *p_out, const GUID &p_inputtype, const char *p_source, t_size p_source_len, const char *p_forbidden_chars) |
static void | remove_forbidden_chars_string (pfc::string_base &p_out, const char *p_source, t_size p_source_len, const char *p_forbidden_chars) |
static void | remove_forbidden_chars_string_append (pfc::string_receiver &p_out, const char *p_source, t_size p_source_len, const char *p_forbidden_chars) |
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 () | |
Standard service for instantiating titleformat_object. Implemented by the core; do not reimplement. To instantiate, use static_api_ptr_t<titleformat_compiler>.
Definition at line 54 of file titleformat.h.
|
pure virtual |
Returns false in case of a compilation error.
|
inline |
Throws a bug check exception when script can't be compiled. For use with hardcoded scripts only.
Definition at line 68 of file titleformat.h.
void titleformat_compiler::compile_safe | ( | titleformat_object::ptr & | p_out, |
const char * | p_spec | ||
) |
Should never fail, falls back to filename% in case of failure.
Definition at line 156 of file titleformat.cpp.
void titleformat_compiler::compile_safe_ex | ( | titleformat_object::ptr & | p_out, |
const char * | p_spec, | ||
const char * | p_fallback = "<ERROR>" |
||
) |
Falls back to p_fallback in case of failure.
Definition at line 176 of file titleformat.cpp.
titleformat_compiler::FB2K_MAKE_SERVICE_INTERFACE_ENTRYPOINT | ( | titleformat_compiler | ) |
|
static |
Definition at line 6 of file titleformat.cpp.
|
static |
Definition at line 26 of file titleformat.cpp.
|
static |
Definition at line 61 of file titleformat.cpp.
|
static |
Definition at line 56 of file titleformat.cpp.
void titleformat_compiler::run | ( | titleformat_hook * | p_source, |
pfc::string_base & | p_out, | ||
const char * | p_spec | ||
) |
Helper;.
Definition at line 149 of file titleformat.cpp.