foobar2000 SDK
2015-08-03
Main Page
Related Pages
Namespaces
Data Structures
Files
File List
Globals
foobar2000
SDK
commandline.cpp
Go to the documentation of this file.
1
#include "
foobar2000.h
"
2
3
void
commandline_handler_metadb_handle::on_file
(
const
char
* url) {
4
metadb_handle_list
handles;
5
try
{
6
static_api_ptr_t<metadb_io>
()->path_to_handles_simple(url, handles);
7
}
catch
(
std::exception
const
& e) {
8
console::complain
(
"Path evaluation failure"
, e);
9
return
;
10
}
11
for
(
t_size
walk = 0; walk < handles.
get_size
(); ++walk)
on_file
(handles[walk]);
12
}
pfc::list_impl_t::get_size
t_size get_size() const
Definition:
list.h:366
metadb_handle_list_t
Definition:
metadb_handle.h:169
console::complain
void complain(const char *what, const char *msg)
Definition:
console.cpp:21
t_size
size_t t_size
Definition:
int_types.h:48
foobar2000.h
pfc::exception
std::exception exception
Definition:
primitives.h:193
static_api_ptr_t
Helper template used to easily access core services. Usage: static_api_ptr_t<myclass> api; api->doso...
Definition:
service.h:533
commandline_handler_metadb_handle::on_file
virtual void on_file(const char *url)
Definition:
commandline.cpp:3
Generated by
1.8.11