foobar2000 SDK  2015-01-14
Public Member Functions | Protected Member Functions
commandline_handler_metadb_handleabstract

#include <commandline.h>

+ Inheritance diagram for commandline_handler_metadb_handle:

Public Member Functions

virtual void on_file (const metadb_handle_ptr &ptr)=0
 
virtual void on_files_done ()
 
virtual result on_token (const char *token)=0
 
- Public Member Functions inherited from commandline_handler
 FB2K_MAKE_SERVICE_INTERFACE_ENTRYPOINT (commandline_handler)
 
- 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 ()
 

Protected Member Functions

virtual void on_file (const char *url)
 
virtual bool want_directories ()
 
- Protected Member Functions inherited from service_base
 service_base ()
 
 ~service_base ()
 

Additional Inherited Members

- Public Types inherited from commandline_handler
enum  result { RESULT_NOT_OURS, RESULT_PROCESSED, RESULT_PROCESSED_EXPECT_FILES }
 
- Public Types inherited from service_base
typedef service_base t_interface
 

Detailed Description

Definition at line 18 of file commandline.h.

Member Function Documentation

void commandline_handler_metadb_handle::on_file ( const char *  url)
protectedvirtual

Reimplemented from commandline_handler.

Definition at line 3 of file commandline.cpp.

3  {
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
virtual void commandline_handler_metadb_handle::on_file ( const metadb_handle_ptr ptr)
pure virtual
virtual void commandline_handler_metadb_handle::on_files_done ( )
inlinevirtual

Reimplemented from commandline_handler.

Definition at line 25 of file commandline.h.

25 {};
virtual result commandline_handler_metadb_handle::on_token ( const char *  token)
pure virtual

Implements commandline_handler.

virtual bool commandline_handler_metadb_handle::want_directories ( )
inlineprotectedvirtual

Reimplemented from commandline_handler.

Definition at line 22 of file commandline.h.

22 {return true;}

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