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

#include <ole_interaction.h>

+ Inheritance diagram for playlist_dataobject_desc_impl:

Data Structures

struct  entry
 

Public Member Functions

 playlist_dataobject_desc_impl ()
 
 playlist_dataobject_desc_impl (const playlist_dataobject_desc_v2 &source)
 
void get_entry_content (t_size which, metadb_handle_list_ref out) const
 
t_size get_entry_count () const
 
void get_entry_name (t_size which, pfc::string_base &out) const
 
void get_side_data (t_size which, mem_block_container &out) const
 
void set_entry_content (t_size which, metadb_handle_list_cref content)
 
void set_entry_count (t_size count)
 
void set_entry_name (t_size which, const char *name)
 
void set_side_data (t_size which, const void *data, t_size size)
 
- Public Member Functions inherited from playlist_dataobject_desc_v2
void copy (playlist_dataobject_desc_v2 const &source)
 
const playlist_dataobject_desc_v2operator= (const playlist_dataobject_desc_v2 &source)
 
void set_from_playlist_manager (bit_array const &mask)
 
- Public Member Functions inherited from playlist_dataobject_desc
void copy (playlist_dataobject_desc const &source)
 

Private Attributes

pfc::array_t< entrym_entries
 

Additional Inherited Members

- Protected Member Functions inherited from playlist_dataobject_desc_v2
 ~playlist_dataobject_desc_v2 ()
 
- Protected Member Functions inherited from playlist_dataobject_desc
 ~playlist_dataobject_desc ()
 

Detailed Description

Definition at line 64 of file ole_interaction.h.


Data Structure Documentation

struct playlist_dataobject_desc_impl::entry

Definition at line 98 of file ole_interaction.h.

Data Fields
metadb_handle_list m_content
string8 m_name
array_t< t_uint8 > m_sideData

Constructor & Destructor Documentation

playlist_dataobject_desc_impl::playlist_dataobject_desc_impl ( )
inline

Definition at line 66 of file ole_interaction.h.

66 {}
playlist_dataobject_desc_impl::playlist_dataobject_desc_impl ( const playlist_dataobject_desc_v2 source)
inline

Definition at line 67 of file ole_interaction.h.

67 {copy(source);}
void copy(playlist_dataobject_desc_v2 const &source)

Member Function Documentation

void playlist_dataobject_desc_impl::get_entry_content ( t_size  which,
metadb_handle_list_ref  out 
) const
inlinevirtual

Implements playlist_dataobject_desc.

Definition at line 74 of file ole_interaction.h.

74  {
75  if (which < m_entries.get_size()) out = m_entries[which].m_content;
76  else throw pfc::exception_invalid_params();
77  }
pfc::array_t< entry > m_entries
t_size playlist_dataobject_desc_impl::get_entry_count ( ) const
inlinevirtual

Implements playlist_dataobject_desc.

Definition at line 69 of file ole_interaction.h.

69 {return m_entries.get_size();}
pfc::array_t< entry > m_entries
void playlist_dataobject_desc_impl::get_entry_name ( t_size  which,
pfc::string_base out 
) const
inlinevirtual

Implements playlist_dataobject_desc.

Definition at line 70 of file ole_interaction.h.

70  {
71  if (which < m_entries.get_size()) out = m_entries[which].m_name;
72  else throw pfc::exception_invalid_params();
73  }
pfc::array_t< entry > m_entries
void playlist_dataobject_desc_impl::get_side_data ( t_size  which,
mem_block_container out 
) const
inlinevirtual

Implements playlist_dataobject_desc_v2.

Definition at line 89 of file ole_interaction.h.

89  {
90  if (which < m_entries.get_size()) out.set(m_entries[which].m_sideData);
91  else throw pfc::exception_invalid_params();
92  }
void set(const void *p_buffer, t_size p_size)
pfc::array_t< entry > m_entries
void playlist_dataobject_desc_impl::set_entry_content ( t_size  which,
metadb_handle_list_cref  content 
)
inlinevirtual

Implements playlist_dataobject_desc.

Definition at line 85 of file ole_interaction.h.

85  {
86  if (which < m_entries.get_size()) m_entries[which].m_content = content;
87  else throw pfc::exception_invalid_params();
88  }
pfc::array_t< entry > m_entries
void playlist_dataobject_desc_impl::set_entry_count ( t_size  count)
inlinevirtual

Implements playlist_dataobject_desc.

Definition at line 78 of file ole_interaction.h.

78  {
79  m_entries.set_size(count);
80  }
pfc::array_t< entry > m_entries
void playlist_dataobject_desc_impl::set_entry_name ( t_size  which,
const char *  name 
)
inlinevirtual

Implements playlist_dataobject_desc.

Definition at line 81 of file ole_interaction.h.

81  {
82  if (which < m_entries.get_size()) m_entries[which].m_name = name;
83  else throw pfc::exception_invalid_params();
84  }
pfc::array_t< entry > m_entries
void playlist_dataobject_desc_impl::set_side_data ( t_size  which,
const void *  data,
t_size  size 
)
inlinevirtual

Implements playlist_dataobject_desc_v2.

Definition at line 93 of file ole_interaction.h.

93  {
94  if (which < m_entries.get_size()) m_entries[which].m_sideData.set_data_fromptr(reinterpret_cast<const t_uint8*>(data), size);
95  else throw pfc::exception_invalid_params();
96  }
pfc::array_t< entry > m_entries

Field Documentation

pfc::array_t<entry> playlist_dataobject_desc_impl::m_entries
private

Definition at line 99 of file ole_interaction.h.


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