foobar2000 SDK  2015-08-03
Public Member Functions | Data Fields
file_info_impl_utils::meta_entry

#include <file_info_impl.h>

Public Member Functions

 meta_entry ()
 
 meta_entry (const char *p_name, t_size p_name_len, const char *p_value, t_size p_value_len)
 
const char * get_name () const
 
const char * get_value (t_size p_index) const
 
t_size get_value_count () const
 
void insert_value (t_size p_value_index, const char *p_value, t_size p_value_length)
 
void modify_value (t_size p_value_index, const char *p_value, t_size p_value_length)
 
void remove_values (const bit_array &p_mask)
 

Data Fields

pfc::string_simple m_name
 
meta_value_array m_values
 

Detailed Description

Definition at line 45 of file file_info_impl.h.

Constructor & Destructor Documentation

file_info_impl_utils::meta_entry::meta_entry ( )
inline

Definition at line 46 of file file_info_impl.h.

46 {}
file_info_impl_utils::meta_entry::meta_entry ( const char *  p_name,
t_size  p_name_len,
const char *  p_value,
t_size  p_value_len 
)

Definition at line 182 of file file_info_impl.cpp.

183 {
184  m_name.set_string(p_name,p_name_len);
185  m_values.set_size(1);
186  m_values[0].set_string(p_value,p_value_len);
187 }
meta_value_array m_values
pfc::string_simple m_name
void set_size(t_size p_size)
Definition: array.h:104

Member Function Documentation

const char* file_info_impl_utils::meta_entry::get_name ( ) const
inline

Definition at line 53 of file file_info_impl.h.

53 {return m_name;}
pfc::string_simple m_name
const char* file_info_impl_utils::meta_entry::get_value ( t_size  p_index) const
inline

Definition at line 54 of file file_info_impl.h.

54 {return m_values[p_index];}
meta_value_array m_values
t_size file_info_impl_utils::meta_entry::get_value_count ( ) const
inline

Definition at line 55 of file file_info_impl.h.

55 {return m_values.get_size();}
meta_value_array m_values
t_size get_size() const
Definition: array.h:130
void file_info_impl_utils::meta_entry::insert_value ( t_size  p_value_index,
const char *  p_value,
t_size  p_value_length 
)

Definition at line 195 of file file_info_impl.cpp.

196 {
197  pfc::string_simple temp;
198  temp.set_string(p_value,p_value_length);
199  pfc::insert_t(m_values,temp,p_value_index);
200 }
meta_value_array m_values
string_simple_t< char > string_simple
Definition: string_base.h:826
t_size insert_t(t_array &p_array, const T &p_item, t_size p_index)
Definition: primitives.h:500
void file_info_impl_utils::meta_entry::modify_value ( t_size  p_value_index,
const char *  p_value,
t_size  p_value_length 
)

Definition at line 202 of file file_info_impl.cpp.

203 {
204  m_values[p_value_index].set_string(p_value,p_value_length);
205 }
meta_value_array m_values
void file_info_impl_utils::meta_entry::remove_values ( const bit_array p_mask)

Definition at line 190 of file file_info_impl.cpp.

191 {
193 }
meta_value_array m_values
t_size remove_mask_t(t_array &p_array, const bit_array &p_mask)
Definition: primitives.h:719

Field Documentation

pfc::string_simple file_info_impl_utils::meta_entry::m_name

Definition at line 58 of file file_info_impl.h.

meta_value_array file_info_impl_utils::meta_entry::m_values

Definition at line 59 of file file_info_impl.h.


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