TagLib API Documentation
Public Member Functions | Static Public Member Functions | Protected Member Functions | List of all members
TagLib::APE::Footer Class Reference

An implementation of APE footers. More...

#include <apefooter.h>

Public Member Functions

 Footer ()
 
 Footer (const ByteVector &data)
 
 ~Footer ()
 
 Footer (const Footer &)=delete
 
Footeroperator= (const Footer &)=delete
 
unsigned int version () const
 
bool headerPresent () const
 
bool footerPresent () const
 
bool isHeader () const
 
void setHeaderPresent (bool b) const
 
unsigned int itemCount () const
 
void setItemCount (unsigned int s)
 
unsigned int tagSize () const
 
unsigned int completeTagSize () const
 
void setTagSize (unsigned int s)
 
void setData (const ByteVector &data)
 
ByteVector renderFooter () const
 
ByteVector renderHeader () const
 

Static Public Member Functions

static unsigned int size ()
 
static ByteVector fileIdentifier ()
 

Protected Member Functions

void parse (const ByteVector &data)
 
ByteVector render (bool isHeader) const
 

Detailed Description

An implementation of APE footers.

This class implements APE footers (and headers). It attempts to follow, both semantically and programmatically, the structure specified in the APE v2.0 standard. The API is based on the properties of APE footer and headers specified there.

Constructor & Destructor Documentation

◆ Footer() [1/3]

TagLib::APE::Footer::Footer ( )

Constructs an empty APE footer.

◆ Footer() [2/3]

TagLib::APE::Footer::Footer ( const ByteVector data)

Constructs an APE footer based on data. parse() is called immediately.

◆ ~Footer()

TagLib::APE::Footer::~Footer ( )

Destroys the footer.

◆ Footer() [3/3]

TagLib::APE::Footer::Footer ( const Footer )
delete

Member Function Documentation

◆ completeTagSize()

unsigned int TagLib::APE::Footer::completeTagSize ( ) const

Returns the tag size, including if present, the header size.

See also
tagSize()

◆ fileIdentifier()

static ByteVector TagLib::APE::Footer::fileIdentifier ( )
static

Returns the string used to identify an APE tag inside of a file. Presently this is always "APETAGEX".

◆ footerPresent()

bool TagLib::APE::Footer::footerPresent ( ) const

Returns true if a footer is present in the tag.

◆ headerPresent()

bool TagLib::APE::Footer::headerPresent ( ) const

Returns true if a header is present in the tag.

◆ isHeader()

bool TagLib::APE::Footer::isHeader ( ) const

Returns true if this is actually the header.

◆ itemCount()

unsigned int TagLib::APE::Footer::itemCount ( ) const

Returns the number of items in the tag.

◆ operator=()

Footer & TagLib::APE::Footer::operator= ( const Footer )
delete

◆ parse()

void TagLib::APE::Footer::parse ( const ByteVector data)
protected

Called by setData() to parse the footer data. It makes this information available through the public API.

◆ render()

ByteVector TagLib::APE::Footer::render ( bool  isHeader) const
protected

Called by renderFooter and renderHeader

◆ renderFooter()

ByteVector TagLib::APE::Footer::renderFooter ( ) const

Renders the footer back to binary format.

◆ renderHeader()

ByteVector TagLib::APE::Footer::renderHeader ( ) const

Renders the header corresponding to the footer. If headerPresent() is false, it returns an empty ByteVector.

◆ setData()

void TagLib::APE::Footer::setData ( const ByteVector data)

Sets the data that will be used as the footer. 32 bytes, starting from data will be used.

◆ setHeaderPresent()

void TagLib::APE::Footer::setHeaderPresent ( bool  b) const

Sets whether the header should be rendered or not

◆ setItemCount()

void TagLib::APE::Footer::setItemCount ( unsigned int  s)

Set the item count to s.

See also
itemCount()

◆ setTagSize()

void TagLib::APE::Footer::setTagSize ( unsigned int  s)

Set the tag size to s.

See also
tagSize()

◆ size()

static unsigned int TagLib::APE::Footer::size ( )
static

Returns the size of the footer. Presently this is always 32 bytes.

◆ tagSize()

unsigned int TagLib::APE::Footer::tagSize ( ) const

Returns the tag size in bytes. This is the size of the frame content and footer. The size of the entire tag will be this plus the header size, if present.

See also
completeTagSize()

◆ version()

unsigned int TagLib::APE::Footer::version ( ) const

Returns the version number. (Note: This is the 1000 or 2000.)


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