foobar2000 SDK  2015-08-03
Public Member Functions | Private Attributes
file_info_impl_utils::info_storage

#include <file_info_impl.h>

Public Member Functions

t_size add_item (const char *p_name, t_size p_name_length, const char *p_value, t_size p_value_length)
 
void copy_from (const file_info &p_info)
 
t_size get_count () const
 
const char * get_name (t_size p_index) const
 
const char * get_value (t_size p_index) const
 
void remove_mask (const bit_array &p_mask)
 

Private Attributes

info_entry_array m_info
 

Detailed Description

Definition at line 28 of file file_info_impl.h.

Member Function Documentation

t_size file_info_impl_utils::info_storage::add_item ( const char *  p_name,
t_size  p_name_length,
const char *  p_value,
t_size  p_value_length 
)

Definition at line 142 of file file_info_impl.cpp.

142  {
143  t_size index = m_info.get_size();
144  m_info.set_size(index + 1);
145  m_info[index].init(p_name,p_name_length,p_value,p_value_length);
146  return index;
147 }
size_t t_size
Definition: int_types.h:48
void set_size(t_size p_size)
Definition: array.h:104
t_size get_size() const
Definition: array.h:130
void file_info_impl_utils::info_storage::copy_from ( const file_info p_info)

Definition at line 237 of file file_info_impl.cpp.

238 {
239  t_size n, count;
240  count = p_info.info_get_count();
241  m_info.set_count(count);
242  for(n=0;n<count;n++) m_info[n].init(p_info.info_enum_name(n),~0,p_info.info_enum_value(n),~0);
243 }
virtual const char * info_enum_value(t_size p_index) const =0
Retrieves the value of specified technical info entry. Return value is a null-terminated UTF-8 encode...
void set_count(t_size p_count)
Definition: array.h:129
size_t t_size
Definition: int_types.h:48
virtual const char * info_enum_name(t_size p_index) const =0
Retrieves the name of specified technical info entry. Return value is a null-terminated UTF-8 encoded...
virtual t_size info_get_count() const =0
Retrieves number of technical info entries.
t_size file_info_impl_utils::info_storage::get_count ( ) const
inline

Definition at line 33 of file file_info_impl.h.

33 {return m_info.get_count();}
t_size get_count() const
Definition: array.h:131
const char* file_info_impl_utils::info_storage::get_name ( t_size  p_index) const
inline

Definition at line 34 of file file_info_impl.h.

34 {return m_info[p_index].get_name();}
const char* file_info_impl_utils::info_storage::get_value ( t_size  p_index) const
inline

Definition at line 35 of file file_info_impl.h.

35 {return m_info[p_index].get_value();}
void file_info_impl_utils::info_storage::remove_mask ( const bit_array p_mask)

Definition at line 149 of file file_info_impl.cpp.

149  {
150  pfc::remove_mask_t(m_info,p_mask);
151 }
t_size remove_mask_t(t_array &p_array, const bit_array &p_mask)
Definition: primitives.h:719

Field Documentation

info_entry_array file_info_impl_utils::info_storage::m_info
private

Definition at line 38 of file file_info_impl.h.


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