foobar2000 SDK  2015-08-03
create_directory_helper.h
Go to the documentation of this file.
1 #ifndef _CREATE_DIRECTORY_HELPER_H_
2 #define _CREATE_DIRECTORY_HELPER_H_
3 
4 namespace create_directory_helper {
5  void create_path(const char * p_path,abort_callback & p_abort);
6  void make_path(const char * parent,const char * filename,const char * extension,bool allow_new_dirs,pfc::string8 & out,bool b_really_create_dirs,abort_callback & p_dir_create_abort);
7  void format_filename(const metadb_handle_ptr & handle,titleformat_hook * p_hook,const char * spec,pfc::string_base & out);
8  void format_filename(const metadb_handle_ptr & handle,titleformat_hook * p_hook,titleformat_object::ptr spec,pfc::string_base & out);
9  void format_filename_ex(const metadb_handle_ptr & handle,titleformat_hook * p_hook,titleformat_object::ptr spec,const char * suffix, pfc::string_base & out);
10 
11  pfc::string sanitize_formatted_path(pfc::stringp str, bool allowWC = false);
12 
14  public:
15  void write(const GUID & p_inputType,pfc::string_receiver & p_out,const char * p_data,t_size p_dataLength);
16  };
17 
18 };
19 
20 #endif//_CREATE_DIRECTORY_HELPER_H_
void format_filename_ex(const metadb_handle_ptr &handle, titleformat_hook *p_hook, titleformat_object::ptr spec, const char *suffix, pfc::string_base &out)
Definition: pfc.h:71
void create_path(const char *p_path, abort_callback &p_abort)
void make_path(const char *parent, const char *filename, const char *extension, bool allow_new_dirs, pfc::string8 &out, bool really_create_dirs, abort_callback &p_abort)
void write(const GUID &p_inputType, pfc::string_receiver &p_out, const char *p_data, t_size p_dataLength)
void format_filename(const metadb_handle_ptr &handle, titleformat_hook *p_hook, const char *spec, pfc::string_base &out)
"String parameter" helper class, to use in function parameters, allowing functions to take any type o...
Definition: stringNew.h:224
size_t t_size
Definition: int_types.h:48
pfc::string sanitize_formatted_path(pfc::stringp str, bool allowWC=false)
New EXPERIMENTAL string class, allowing efficient copies and returning from functions. Does not implement the string_base interface so you still need string8 in many cases. Safe to pass between DLLs, but since a reference is used, objects possibly created by other DLLs must be released before owning DLLs are unloaded.
Definition: stringNew.h:19