foobar2000 SDK  2015-08-03
Public Member Functions | Protected Member Functions
titleformat_text_outabstract

#include <titleformat.h>

+ Inheritance diagram for titleformat_text_out:

Public Member Functions

virtual void write (const GUID &p_inputtype, const char *p_data, t_size p_data_length=~0)=0
 
void write_int (const GUID &p_inputtype, t_int64 val)
 
void write_int_padded (const GUID &p_inputtype, t_int64 val, t_int64 maxval)
 

Protected Member Functions

 titleformat_text_out ()
 
 ~titleformat_text_out ()
 

Detailed Description

Definition at line 5 of file titleformat.h.

Constructor & Destructor Documentation

titleformat_text_out::titleformat_text_out ( )
inlineprotected

Definition at line 11 of file titleformat.h.

11 {}
titleformat_text_out::~titleformat_text_out ( )
inlineprotected

Definition at line 12 of file titleformat.h.

12 {}

Member Function Documentation

virtual void titleformat_text_out::write ( const GUID p_inputtype,
const char *  p_data,
t_size  p_data_length = ~0 
)
pure virtual
void titleformat_text_out::write_int ( const GUID p_inputtype,
t_int64  val 
)

Definition at line 139 of file titleformat.cpp.

140 {
141  write(p_inputtype,pfc::format_int(val));
142 }
virtual void write(const GUID &p_inputtype, const char *p_data, t_size p_data_length=~0)=0
void titleformat_text_out::write_int_padded ( const GUID p_inputtype,
t_int64  val,
t_int64  maxval 
)

Definition at line 132 of file titleformat.cpp.

133 {
134  unsigned width = 0;
135  while(maxval > 0) {maxval/=10;width++;}
136  write(p_inputtype,pfc::format_int(val,width));
137 }
virtual void write(const GUID &p_inputtype, const char *p_data, t_size p_data_length=~0)=0

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