#include <metadata.h>
Public Member Functions | |
StreamInfo (::FLAC__StreamMetadata *object, bool copy) | |
StreamInfo & | assign (::FLAC__StreamMetadata *object, bool copy) |
bool | is_valid () const |
bool | get_is_last () const |
::FLAC__MetadataType | get_type () const |
unsigned | get_length () const |
void | set_is_last (bool) |
operator const ::FLAC__StreamMetadata * () const | |
StreamInfo (const StreamInfo &object) | |
StreamInfo (const ::FLAC__StreamMetadata &object) | |
StreamInfo (const ::FLAC__StreamMetadata *object) | |
StreamInfo & | operator= (const StreamInfo &object) |
StreamInfo & | operator= (const ::FLAC__StreamMetadata &object) |
StreamInfo & | operator= (const ::FLAC__StreamMetadata *object) |
bool | operator== (const StreamInfo &object) const |
bool | operator== (const ::FLAC__StreamMetadata &object) const |
bool | operator== (const ::FLAC__StreamMetadata *object) const |
bool | operator!= (const StreamInfo &object) const |
bool | operator!= (const ::FLAC__StreamMetadata &object) const |
bool | operator!= (const ::FLAC__StreamMetadata *object) const |
unsigned | get_min_blocksize () const |
unsigned | get_max_blocksize () const |
unsigned | get_min_framesize () const |
unsigned | get_max_framesize () const |
unsigned | get_sample_rate () const |
unsigned | get_channels () const |
unsigned | get_bits_per_sample () const |
FLAC__uint64 | get_total_samples () const |
const FLAC__byte * | get_md5sum () const |
void | set_min_blocksize (unsigned value) |
void | set_max_blocksize (unsigned value) |
void | set_min_framesize (unsigned value) |
void | set_max_framesize (unsigned value) |
void | set_sample_rate (unsigned value) |
void | set_channels (unsigned value) |
void | set_bits_per_sample (unsigned value) |
void | set_total_samples (FLAC__uint64 value) |
void | set_md5sum (const FLAC__byte value[16]) |
Protected Member Functions | |
Prototype & | assign_object (::FLAC__StreamMetadata *object, bool copy) |
virtual void | clear () |
Protected Attributes | |
::FLAC__StreamMetadata * | object_ |
Friends | |
class | SimpleIterator |
class | Iterator |
STREAMINFO metadata block. See the overview for more, and the format specification.
FLAC::Metadata::StreamInfo::StreamInfo | ( | const StreamInfo & | object | ) | [inline] |
Constructs a copy of the given object. This form always performs a deep copy.
FLAC::Metadata::StreamInfo::StreamInfo | ( | const ::FLAC__StreamMetadata & | object | ) | [inline] |
Constructs a copy of the given object. This form always performs a deep copy.
FLAC::Metadata::StreamInfo::StreamInfo | ( | const ::FLAC__StreamMetadata * | object | ) | [inline] |
Constructs a copy of the given object. This form always performs a deep copy.
FLAC::Metadata::StreamInfo::StreamInfo | ( | ::FLAC__StreamMetadata * | object, | |
bool | copy | |||
) | [inline] |
Constructs an object with copy control. See Prototype(::FLAC__StreamMetadata *object, bool copy).
StreamInfo& FLAC::Metadata::StreamInfo::operator= | ( | const StreamInfo & | object | ) | [inline] |
Assign from another object. Always performs a deep copy.
Reimplemented from FLAC::Metadata::Prototype.
References FLAC::Metadata::Prototype::operator=().
StreamInfo& FLAC::Metadata::StreamInfo::operator= | ( | const ::FLAC__StreamMetadata & | object | ) | [inline] |
Constructs a copy of the given object. This form always performs a deep copy.
Reimplemented from FLAC::Metadata::Prototype.
References FLAC::Metadata::Prototype::operator=().
StreamInfo& FLAC::Metadata::StreamInfo::operator= | ( | const ::FLAC__StreamMetadata * | object | ) | [inline] |
Constructs a copy of the given object. This form always performs a deep copy.
Reimplemented from FLAC::Metadata::Prototype.
References FLAC::Metadata::Prototype::operator=().
StreamInfo& FLAC::Metadata::StreamInfo::assign | ( | ::FLAC__StreamMetadata * | object, | |
bool | copy | |||
) | [inline] |
Assigns an object with copy control. See Prototype::assign_object(::FLAC__StreamMetadata *object, bool copy).
References FLAC::Metadata::Prototype::assign_object().
bool FLAC::Metadata::StreamInfo::operator== | ( | const StreamInfo & | object | ) | const [inline] |
Check for equality, performing a deep compare by following pointers.
Reimplemented from FLAC::Metadata::Prototype.
References FLAC::Metadata::Prototype::operator==().
bool FLAC::Metadata::StreamInfo::operator== | ( | const ::FLAC__StreamMetadata & | object | ) | const [inline] |
Constructs a copy of the given object. This form always performs a deep copy.
Reimplemented from FLAC::Metadata::Prototype.
References FLAC::Metadata::Prototype::operator==().
bool FLAC::Metadata::StreamInfo::operator== | ( | const ::FLAC__StreamMetadata * | object | ) | const [inline] |
Constructs a copy of the given object. This form always performs a deep copy.
Reimplemented from FLAC::Metadata::Prototype.
References FLAC::Metadata::Prototype::operator==().
bool FLAC::Metadata::StreamInfo::operator!= | ( | const StreamInfo & | object | ) | const [inline] |
Check for inequality, performing a deep compare by following pointers.
Reimplemented from FLAC::Metadata::Prototype.
References FLAC::Metadata::Prototype::operator!=().
bool FLAC::Metadata::StreamInfo::operator!= | ( | const ::FLAC__StreamMetadata & | object | ) | const [inline] |
Constructs a copy of the given object. This form always performs a deep copy.
Reimplemented from FLAC::Metadata::Prototype.
References FLAC::Metadata::Prototype::operator!=().
bool FLAC::Metadata::StreamInfo::operator!= | ( | const ::FLAC__StreamMetadata * | object | ) | const [inline] |
Constructs a copy of the given object. This form always performs a deep copy.
Reimplemented from FLAC::Metadata::Prototype.
References FLAC::Metadata::Prototype::operator!=().
unsigned FLAC::Metadata::StreamInfo::get_min_blocksize | ( | ) | const |
See format specification.
unsigned FLAC::Metadata::StreamInfo::get_max_blocksize | ( | ) | const |
Constructs a copy of the given object. This form always performs a deep copy.
unsigned FLAC::Metadata::StreamInfo::get_min_framesize | ( | ) | const |
Constructs a copy of the given object. This form always performs a deep copy.
unsigned FLAC::Metadata::StreamInfo::get_max_framesize | ( | ) | const |
Constructs a copy of the given object. This form always performs a deep copy.
unsigned FLAC::Metadata::StreamInfo::get_sample_rate | ( | ) | const |
Constructs a copy of the given object. This form always performs a deep copy.
unsigned FLAC::Metadata::StreamInfo::get_channels | ( | ) | const |
Constructs a copy of the given object. This form always performs a deep copy.
unsigned FLAC::Metadata::StreamInfo::get_bits_per_sample | ( | ) | const |
Constructs a copy of the given object. This form always performs a deep copy.
FLAC__uint64 FLAC::Metadata::StreamInfo::get_total_samples | ( | ) | const |
Constructs a copy of the given object. This form always performs a deep copy.
const FLAC__byte* FLAC::Metadata::StreamInfo::get_md5sum | ( | ) | const |
Constructs a copy of the given object. This form always performs a deep copy.
void FLAC::Metadata::StreamInfo::set_min_blocksize | ( | unsigned | value | ) |
Constructs a copy of the given object. This form always performs a deep copy.
void FLAC::Metadata::StreamInfo::set_max_blocksize | ( | unsigned | value | ) |
Constructs a copy of the given object. This form always performs a deep copy.
void FLAC::Metadata::StreamInfo::set_min_framesize | ( | unsigned | value | ) |
Constructs a copy of the given object. This form always performs a deep copy.
void FLAC::Metadata::StreamInfo::set_max_framesize | ( | unsigned | value | ) |
Constructs a copy of the given object. This form always performs a deep copy.
void FLAC::Metadata::StreamInfo::set_sample_rate | ( | unsigned | value | ) |
Constructs a copy of the given object. This form always performs a deep copy.
void FLAC::Metadata::StreamInfo::set_channels | ( | unsigned | value | ) |
Constructs a copy of the given object. This form always performs a deep copy.
void FLAC::Metadata::StreamInfo::set_bits_per_sample | ( | unsigned | value | ) |
Constructs a copy of the given object. This form always performs a deep copy.
void FLAC::Metadata::StreamInfo::set_total_samples | ( | FLAC__uint64 | value | ) |
Constructs a copy of the given object. This form always performs a deep copy.
void FLAC::Metadata::StreamInfo::set_md5sum | ( | const FLAC__byte | value[16] | ) |
Constructs a copy of the given object. This form always performs a deep copy.
Prototype& FLAC::Metadata::Prototype::assign_object | ( | ::FLAC__StreamMetadata * | object, | |
bool | copy | |||
) | [protected, inherited] |
Assigns an object with copy control. See Prototype(::FLAC__StreamMetadata *object, bool copy).
Referenced by FLAC::Metadata::Unknown::assign(), FLAC::Metadata::Picture::assign(), FLAC::Metadata::CueSheet::assign(), FLAC::Metadata::VorbisComment::assign(), FLAC::Metadata::SeekTable::assign(), FLAC::Metadata::Application::assign(), FLAC::Metadata::Padding::assign(), and assign().
virtual void FLAC::Metadata::Prototype::clear | ( | ) | [protected, virtual, inherited] |
Deletes the underlying FLAC__StreamMetadata object.
bool FLAC::Metadata::Prototype::get_is_last | ( | ) | const [inherited] |
::FLAC__MetadataType FLAC::Metadata::Prototype::get_type | ( | ) | const [inherited] |
unsigned FLAC::Metadata::Prototype::get_length | ( | ) | const [inherited] |
Returns the stream length of the metadata block.
is_valid()
void FLAC::Metadata::Prototype::set_is_last | ( | bool | ) | [inherited] |
Sets the "is_last" flag for the block. When using the iterators it is not necessary to set this flag; they will do it for you.
is_valid()