foobar2000 SDK  2015-08-03
Public Member Functions | Private Attributes
ui_element_config_parser

#include <ui_element.h>

+ Inheritance diagram for ui_element_config_parser:

Public Member Functions

 ui_element_config_parser (ui_element_config::ptr in)
 
t_size get_remaining () const
 
void reset ()
 
ui_element_config::ptr subelement (t_size size)
 
ui_element_config::ptr subelement (const GUID &id, t_size dataSize)
 
- Public Member Functions inherited from stream_reader_formatter<>
 stream_reader_formatter (stream_reader &p_stream, abort_callback &p_abort)
 
void read_array (TArray &data)
 
void read_byte_block (TArray &data)
 
void read_int (t_int &p_out)
 
void read_raw (void *p_buffer, t_size p_bytes)
 
void read_raw (TArray &data)
 
void read_string_nullterm (pfc::string_base &out)
 
void skip (t_size p_bytes)
 

Private Attributes

abort_callback_dummy _m_abort
 
stream_reader_memblock_ref _m_stream
 
const ui_element_config::ptr m_data
 

Additional Inherited Members

- Data Fields inherited from stream_reader_formatter<>
abort_callbackm_abort
 
stream_readerm_stream
 

Detailed Description

Helper.

Definition at line 33 of file ui_element.h.

Constructor & Destructor Documentation

ui_element_config_parser::ui_element_config_parser ( ui_element_config::ptr  in)
inline

Definition at line 35 of file ui_element.h.

35 : m_data(in), _m_stream(in->get_data(),in->get_data_size()), stream_reader_formatter(_m_stream,_m_abort) {}
const ui_element_config::ptr m_data
Definition: ui_element.h:43
abort_callback_dummy _m_abort
Definition: ui_element.h:44
stream_reader_formatter(stream_reader &p_stream, abort_callback &p_abort)
stream_reader_memblock_ref _m_stream
Definition: ui_element.h:45

Member Function Documentation

t_size ui_element_config_parser::get_remaining ( ) const
inline

Definition at line 38 of file ui_element.h.

38 {return _m_stream.get_remaining();}
stream_reader_memblock_ref _m_stream
Definition: ui_element.h:45
void ui_element_config_parser::reset ( )
inline

Definition at line 37 of file ui_element.h.

37 {_m_stream.reset();}
stream_reader_memblock_ref _m_stream
Definition: ui_element.h:45
ui_element_config::ptr ui_element_config_parser::subelement ( t_size  size)

Definition at line 42 of file ui_element.cpp.

42  {
44 }
static service_ptr_t< ui_element_config > g_create(const GUID &id, const void *data, t_size size)
Helper.
Definition: ui_element.cpp:25
ui_element_config::ptr ui_element_config_parser::subelement ( const GUID id,
t_size  dataSize 
)

Definition at line 45 of file ui_element.cpp.

45  {
46  return ui_element_config::g_create(id, &m_stream, dataSize, m_abort);
47 }
static service_ptr_t< ui_element_config > g_create(const GUID &id, const void *data, t_size size)
Helper.
Definition: ui_element.cpp:25

Field Documentation

abort_callback_dummy ui_element_config_parser::_m_abort
private

Definition at line 44 of file ui_element.h.

stream_reader_memblock_ref ui_element_config_parser::_m_stream
private

Definition at line 45 of file ui_element.h.

const ui_element_config::ptr ui_element_config_parser::m_data
private

Definition at line 43 of file ui_element.h.


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