foobar2000 SDK  2015-08-03
Data Structures | Public Member Functions | Private Attributes
event_logger_recorder_impl

#include <event_logger.h>

+ Inheritance diagram for event_logger_recorder_impl:

Data Structures

struct  entry_t
 

Public Member Functions

void log_entry (const char *line, unsigned severity)
 
void playback (event_logger::ptr playTo)
 
- Public Member Functions inherited from event_logger
void log_error (const char *line)
 
void log_status (const char *line)
 
void log_warning (const char *line)
 
- 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 ()
 

Private Attributes

pfc::chain_list_v2_t< entry_tm_entries
 

Additional Inherited Members

- Public Types inherited from event_logger
enum  { severity_status, severity_warning, severity_error }
 
- Public Types inherited from service_base
typedef service_base t_interface
 
- Protected Member Functions inherited from service_base
 service_base ()
 
 ~service_base ()
 

Detailed Description

Definition at line 27 of file event_logger.h.


Data Structure Documentation

struct event_logger_recorder_impl::entry_t

Definition at line 42 of file event_logger.h.

Data Fields
string_simple line
unsigned severity

Member Function Documentation

void event_logger_recorder_impl::log_entry ( const char *  line,
unsigned  severity 
)
inlinevirtual

Implements event_logger.

Definition at line 35 of file event_logger.h.

35  {
36  auto rec = m_entries.insert_last();
37  rec->line = line;
38  rec->severity = severity;
39  }
pfc::chain_list_v2_t< entry_t > m_entries
Definition: event_logger.h:46
void event_logger_recorder_impl::playback ( event_logger::ptr  playTo)
inlinevirtual

Implements event_logger_recorder.

Definition at line 29 of file event_logger.h.

29  {
30  for(auto i = m_entries.first(); i.is_valid(); ++i ) {
31  playTo->log_entry( i->line.get_ptr(), i->severity );
32  }
33  }
pfc::chain_list_v2_t< entry_t > m_entries
Definition: event_logger.h:46

Field Documentation

pfc::chain_list_v2_t< entry_t > event_logger_recorder_impl::m_entries
private

Definition at line 46 of file event_logger.h.


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