FLAC
1.3.0
|
#include <metadata.h>
Public Member Functions | |
virtual | ~Prototype () |
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 | |
bool | operator== (const Prototype &) const |
bool | operator== (const ::FLAC__StreamMetadata &) const |
bool | operator== (const ::FLAC__StreamMetadata *) const |
bool | operator!= (const Prototype &) const |
bool | operator!= (const ::FLAC__StreamMetadata &) const |
bool | operator!= (const ::FLAC__StreamMetadata *) const |
Protected Member Functions | |
Prototype (const Prototype &) | |
Prototype (const ::FLAC__StreamMetadata &) | |
Prototype (const ::FLAC__StreamMetadata *) | |
Prototype (::FLAC__StreamMetadata *object, bool copy) | |
Prototype & | assign_object (::FLAC__StreamMetadata *object, bool copy) |
virtual void | clear () |
Prototype & | operator= (const Prototype &) |
Prototype & | operator= (const ::FLAC__StreamMetadata &) |
Prototype & | operator= (const ::FLAC__StreamMetadata *) |
Protected Attributes | |
::FLAC__StreamMetadata * | object_ |
Friends | |
class | SimpleIterator |
class | Iterator |
Base class for all metadata block types. See the overview for more.
FLAC::Metadata::Prototype::Prototype | ( | ::FLAC__StreamMetadata * | object, |
bool | copy | ||
) | [protected] |
Constructs an object with copy control. When copy is true
, behaves identically to FLAC::Metadata::Prototype::Prototype(const ::FLAC__StreamMetadata *object). When copy is false
, the instance takes ownership of the pointer and the FLAC__StreamMetadata object will be freed by the destructor.
object != NULL
virtual FLAC::Metadata::Prototype::~Prototype | ( | ) | [virtual] |
Deletes the underlying FLAC__StreamMetadata object.
Assign from another object. Always performs a deep copy.
Referenced by FLAC::Metadata::StreamInfo::operator=(), FLAC::Metadata::Padding::operator=(), FLAC::Metadata::Application::operator=(), FLAC::Metadata::SeekTable::operator=(), FLAC::Metadata::VorbisComment::operator=(), FLAC::Metadata::CueSheet::operator=(), FLAC::Metadata::Picture::operator=(), and FLAC::Metadata::Unknown::operator=().
Prototype& FLAC::Metadata::Prototype::operator= | ( | const ::FLAC__StreamMetadata & | ) | [protected] |
Assign from another object. Always performs a deep copy.
Reimplemented in FLAC::Metadata::Unknown, FLAC::Metadata::Picture, FLAC::Metadata::CueSheet, FLAC::Metadata::VorbisComment, FLAC::Metadata::SeekTable, FLAC::Metadata::Application, FLAC::Metadata::Padding, and FLAC::Metadata::StreamInfo.
Prototype& FLAC::Metadata::Prototype::operator= | ( | const ::FLAC__StreamMetadata * | ) | [protected] |
Assign from another object. Always performs a deep copy.
Reimplemented in FLAC::Metadata::Unknown, FLAC::Metadata::Picture, FLAC::Metadata::CueSheet, FLAC::Metadata::VorbisComment, FLAC::Metadata::SeekTable, FLAC::Metadata::Application, FLAC::Metadata::Padding, and FLAC::Metadata::StreamInfo.
Prototype& FLAC::Metadata::Prototype::assign_object | ( | ::FLAC__StreamMetadata * | object, |
bool | copy | ||
) | [protected] |
Assigns an object with copy control. See Prototype(::FLAC__StreamMetadata *object, bool copy).
Referenced by FLAC::Metadata::StreamInfo::assign(), FLAC::Metadata::Padding::assign(), FLAC::Metadata::Application::assign(), FLAC::Metadata::SeekTable::assign(), FLAC::Metadata::VorbisComment::assign(), FLAC::Metadata::CueSheet::assign(), FLAC::Metadata::Picture::assign(), and FLAC::Metadata::Unknown::assign().
virtual void FLAC::Metadata::Prototype::clear | ( | ) | [protected, virtual] |
Deletes the underlying FLAC__StreamMetadata object.
bool FLAC::Metadata::Prototype::get_is_last | ( | ) | const |
::FLAC__MetadataType FLAC::Metadata::Prototype::get_type | ( | ) | const |
unsigned FLAC::Metadata::Prototype::get_length | ( | ) | const |
Returns the stream length of the metadata block.
is_valid()
void FLAC::Metadata::Prototype::set_is_last | ( | bool | ) |
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()