foobar2000 SDK  2015-01-14
commandline.cpp
Go to the documentation of this file.
1 #include "foobar2000.h"
2 
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 }
t_size get_size() const
Definition: list.h:366
void complain(const char *what, const char *msg)
Definition: console.cpp:21
size_t t_size
Definition: int_types.h:48
std::exception exception
Definition: primitives.h:193
Helper template used to easily access core services. Usage: static_api_ptr_t api; api->doso...
Definition: service.h:533
virtual void on_file(const char *url)
Definition: commandline.cpp:3