80 return m_info.
add_item(p_name,p_name_length,p_value,p_value_length);
144 m_info.set_size(index + 1);
145 m_info[index].init(p_name,p_name_length,p_value,p_value_length);
157 meta_entry temp(p_name,p_name_length,p_value,p_value_length);
163 m_data[p_index].insert_value(p_value_index,p_value,p_value_length);
168 m_data[p_index].modify_value(p_value_index,p_value,p_value_length);
173 m_data[p_index].remove_values(p_mask);
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);
198 temp.set_string(p_value,p_value_length);
204 m_values[p_value_index].set_string(p_value,p_value_length);
225 m_data.set_size(meta_count);
226 for(meta_index=0;meta_index<meta_count;meta_index++)
232 for(value_index=0;value_index<value_count;value_index++)
const char * info_enum_name(t_size p_index) const
Retrieves the name of specified technical info entry. Return value is a null-terminated UTF-8 encoded...
meta_value_array m_values
replaygain_info get_replaygain() const
Retrieves ReplayGain information.
void set_replaygain(const replaygain_info &p_info)
Sets ReplayGain information.
t_size info_get_count() const
Retrieves number of technical info entries.
file_info_impl_utils::meta_storage m_meta
double get_length() const
Retrieves audio duration, in seconds. Note that the reported duration should not be assumed to be th...
void remove_values(const bit_array &p_mask)
void insert_value(t_size p_value_index, const char *p_value, t_size p_value_length)
void meta_reorder(const t_size *p_order)
Reorders metadata entries according to specified permutation.
const file_info_impl & operator=(const file_info_impl &p_source)
Bit array interface class, constant version (you can only retrieve values). Range of valid indexes d...
virtual t_size meta_enum_value_count(t_size p_index) const =0
Retrieves count of values in metadata entry of specified index. The value is always equal to or great...
void copy_meta(const file_info &p_source)
Copies metadata from specified file_info object.
void meta_remove_field_ex(const char *p_name, t_size p_name_length)
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...
t_size meta_get_count() const
Retrieves count of metadata entries.
t_size remove_mask_t(t_array &p_array, const bit_array &p_mask)
const char * meta_enum_name(t_size p_index) const
Retrieves the name of metadata entry of specified index. Return value is a null-terminated UTF-8 enco...
virtual const char * meta_enum_value(t_size p_index, t_size p_value_number) const =0
Retrieves specified value from specified metadata entry. Return value is a null-terminated UTF-8 enco...
void meta_remove_mask(const bit_array &p_mask)
Removes metadata entries according to specified bit mask.
void reorder_t(t_container &p_data, const t_size *p_order, t_size p_count)
void copy_from(const file_info &p_info)
const char * info_enum_value(t_size p_index) const
Retrieves the value of specified technical info entry. Return value is a null-terminated UTF-8 encode...
Structure containing ReplayGain scan results from some playable object, also providing various helper...
pfc::string_simple m_name
file_info_impl_utils::info_storage m_info
bool info_remove_ex(const char *p_name, t_size p_name_length)
Main interface class for information about some playable object.
virtual void copy(const file_info &p_source)
Copies entire file_info contents from specified file_info object.
string_simple_t< char > string_simple
void set_size(t_size p_size)
const char * get_value(t_size p_index) const
virtual t_size meta_get_count() const =0
Retrieves count of metadata entries.
t_size meta_set_nocheck_ex(const char *p_name, t_size p_name_length, const char *p_value, t_size p_value_length)
t_size append_swap_t(t_array &p_array, T &p_item)
t_size info_set_nocheck_ex(const char *p_name, t_size p_name_length, const char *p_value, t_size p_value_length)
const char * get_name(t_size p_index) const
t_size meta_enum_value_count(t_size p_index) const
Retrieves count of values in metadata entry of specified index. The value is always equal to or great...
void meta_insert_value_ex(t_size p_index, t_size p_value_index, const char *p_value, t_size p_value_length)
Inserts a new value into specified metadata entry.
void copy_info(const file_info &p_source)
Copies technical info from specified file_info object.
t_size info_set_ex(const char *p_name, t_size p_name_length, const char *p_value, t_size p_value_length)
Creates a new technical info entry with specified name and specified value. If an entry of the same n...
t_size add_item(const char *p_name, t_size p_name_length, const char *p_value, t_size p_value_length)
replaygain_info m_replaygain
void remove_mask(const bit_array &p_mask)
void set_length(double p_length)
Sets audio duration, in seconds. Note that the reported duration should not be assumed to be the exa...
const char * meta_enum_value(t_size p_index, t_size p_value_number) const
Retrieves specified value from specified metadata entry. Return value is a null-terminated UTF-8 enco...
t_size meta_set_ex(const char *p_name, t_size p_name_length, const char *p_value, t_size p_value_length)
Creates a new metadata entry of specified name with specified value. If an entry of same name already...
void meta_modify_value_ex(t_size p_index, t_size p_value_index, const char *p_value, t_size p_value_length)
Alters specified value in specified metadata entry.
void info_remove_mask(const bit_array &p_mask)
Removes technical info entries indicated by specified bit mask.
void meta_remove_values(t_size p_index, const bit_array &p_mask)
Removes values according to specified bit mask from specified metadata entry. If all values are remov...
t_size insert_t(t_array &p_array, const T &p_item, t_size p_index)
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.
void modify_value(t_size p_value_index, const char *p_value, t_size p_value_length)
virtual const char * meta_enum_name(t_size p_index) const =0
Retrieves the name of metadata entry of specified index. Return value is a null-terminated UTF-8 enco...