A class that constructs Tag objects.
More...
#include <TagBuilder.hxx>
A class that constructs Tag objects.
Definition at line 36 of file TagBuilder.hxx.
TagBuilder::TagBuilder |
( |
| ) |
|
|
inline |
TagBuilder::~TagBuilder |
( |
| ) |
|
|
inline |
TagBuilder::TagBuilder |
( |
const TagBuilder & |
other | ) |
|
|
delete |
TagBuilder::TagBuilder |
( |
const Tag & |
other | ) |
|
|
explicit |
TagBuilder::TagBuilder |
( |
Tag && |
other | ) |
|
|
explicit |
void TagBuilder::AddEmptyItem |
( |
TagType |
type | ) |
|
Appends a new tag item with an empty value.
Do not use this unless you know what you're doing - because usually, empty values are discarded.
Appends a new tag item.
- Parameters
-
type | the type of the new tag item |
value | the value of the tag item (not null-terminated) |
length | the length of #value |
Appends a new tag item.
- Parameters
-
type | the type of the new tag item |
value | the value of the tag item (null-terminated) |
void TagBuilder::Clear |
( |
| ) |
|
void TagBuilder::Commit |
( |
Tag & |
tag | ) |
|
Move this object to the given Tag instance.
This object is empty afterwards.
Tag TagBuilder::Commit |
( |
| ) |
|
Create a new Tag instance from data in this object.
This object is empty afterwards.
Tag* TagBuilder::CommitNew |
( |
| ) |
|
Create a new Tag instance from data in this object.
The returned object is owned by the caller. This object is empty afterwards.
void TagBuilder::Complement |
( |
const Tag & |
other | ) |
|
Copy attributes and items from the other object that do not exist in this object.
Checks whether the tag contains one or more items with the specified type.
gcc_pure bool TagBuilder::IsDefined |
( |
| ) |
const |
|
inline |
Returns true if the object contains any information.
Definition at line 85 of file TagBuilder.hxx.
bool TagBuilder::IsEmpty |
( |
| ) |
const |
|
inline |
Returns true if the tag contains no items.
This ignores the "duration" attribute.
Definition at line 77 of file TagBuilder.hxx.
void TagBuilder::RemoveAll |
( |
| ) |
|
void TagBuilder::RemoveType |
( |
TagType |
type | ) |
|
Removes all tag items of the specified type.
void TagBuilder::Reserve |
( |
unsigned |
n | ) |
|
|
inline |
void TagBuilder::SetHasPlaylist |
( |
bool |
_has_playlist | ) |
|
|
inline |
The documentation for this class was generated from the following file: