TagLib API Documentation
source
taglib
ape
apefooter.h
Go to the documentation of this file.
1
/***************************************************************************
2
copyright : (C) 2004 by Allan Sandfeld Jensen
3
email : kde@carewolf.org
4
***************************************************************************/
5
6
/***************************************************************************
7
* This library is free software; you can redistribute it and/or modify *
8
* it under the terms of the GNU Lesser General Public License version *
9
* 2.1 as published by the Free Software Foundation. *
10
* *
11
* This library is distributed in the hope that it will be useful, but *
12
* WITHOUT ANY WARRANTY; without even the implied warranty of *
13
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU *
14
* Lesser General Public License for more details. *
15
* *
16
* You should have received a copy of the GNU Lesser General Public *
17
* License along with this library; if not, write to the Free Software *
18
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA *
19
* 02110-1301 USA *
20
* *
21
* Alternatively, this file is available under the Mozilla Public *
22
* License Version 1.1. You may obtain a copy of the License at *
23
* http://www.mozilla.org/MPL/ *
24
***************************************************************************/
25
26
#ifndef TAGLIB_APEFOOTER_H
27
#define TAGLIB_APEFOOTER_H
28
29
#include "
tbytevector.h
"
30
#include "
taglib_export.h
"
31
32
namespace
TagLib
{
33
34
namespace
APE {
35
37
45
class
TAGLIB_EXPORT
Footer
46
{
47
public
:
51
Footer
();
52
57
Footer
(
const
ByteVector
&data);
58
62
~Footer
();
63
64
Footer
(
const
Footer
&) =
delete
;
65
Footer
&
operator=
(
const
Footer
&) =
delete
;
66
70
unsigned
int
version
()
const
;
71
75
bool
headerPresent
()
const
;
76
80
bool
footerPresent
()
const
;
81
85
bool
isHeader
()
const
;
86
90
void
setHeaderPresent
(
bool
b)
const
;
91
95
unsigned
int
itemCount
()
const
;
96
101
void
setItemCount
(
unsigned
int
s);
102
109
unsigned
int
tagSize
()
const
;
110
117
unsigned
int
completeTagSize
()
const
;
118
123
void
setTagSize
(
unsigned
int
s);
124
128
static
unsigned
int
size
();
129
134
static
ByteVector
fileIdentifier
();
135
140
void
setData
(
const
ByteVector
&data);
141
145
ByteVector
renderFooter
()
const
;
146
151
ByteVector
renderHeader
()
const
;
152
153
protected
:
158
void
parse
(
const
ByteVector
&data);
159
163
ByteVector
render
(
bool
isHeader)
const
;
164
165
private
:
166
class
FooterPrivate;
167
TAGLIB_MSVC_SUPPRESS_WARNING_NEEDS_TO_HAVE_DLL_INTERFACE
168
std::unique_ptr<FooterPrivate> d;
169
};
170
171
}
// namespace APE
172
}
// namespace TagLib
173
174
#endif
TagLib::APE::Footer
An implementation of APE footers.
Definition
apefooter.h:46
TagLib::APE::Footer::completeTagSize
unsigned int completeTagSize() const
TagLib::APE::Footer::operator=
Footer & operator=(const Footer &)=delete
TagLib::APE::Footer::isHeader
bool isHeader() const
TagLib::APE::Footer::parse
void parse(const ByteVector &data)
TagLib::APE::Footer::headerPresent
bool headerPresent() const
TagLib::APE::Footer::renderHeader
ByteVector renderHeader() const
TagLib::APE::Footer::setData
void setData(const ByteVector &data)
TagLib::APE::Footer::setHeaderPresent
void setHeaderPresent(bool b) const
TagLib::APE::Footer::size
static unsigned int size()
TagLib::APE::Footer::Footer
Footer(const ByteVector &data)
TagLib::APE::Footer::render
ByteVector render(bool isHeader) const
TagLib::APE::Footer::Footer
Footer()
TagLib::APE::Footer::renderFooter
ByteVector renderFooter() const
TagLib::APE::Footer::tagSize
unsigned int tagSize() const
TagLib::APE::Footer::setTagSize
void setTagSize(unsigned int s)
TagLib::APE::Footer::setItemCount
void setItemCount(unsigned int s)
TagLib::APE::Footer::fileIdentifier
static ByteVector fileIdentifier()
TagLib::APE::Footer::itemCount
unsigned int itemCount() const
TagLib::APE::Footer::~Footer
~Footer()
TagLib::APE::Footer::Footer
Footer(const Footer &)=delete
TagLib::APE::Footer::version
unsigned int version() const
TagLib::APE::Footer::footerPresent
bool footerPresent() const
TagLib::ByteVector
A byte vector.
Definition
tbytevector.h:46
TagLib
A namespace for all TagLib related classes and functions.
Definition
apefile.h:41
taglib_export.h
TAGLIB_EXPORT
#define TAGLIB_EXPORT
Definition
taglib_export.h:40
TAGLIB_MSVC_SUPPRESS_WARNING_NEEDS_TO_HAVE_DLL_INTERFACE
#define TAGLIB_MSVC_SUPPRESS_WARNING_NEEDS_TO_HAVE_DLL_INTERFACE
Definition
taglib_export.h:55
tbytevector.h