Main Page | Class Hierarchy | Class List | File List | Class Members | File Members | Related Pages

ID3Tag Class Reference

Operations with ID3 tags using Taglib. More...

List of all members.

Public Member Functions

 ID3Tag ()
 ~ID3Tag ()
int ParseParam (const char param, const char *value)
void Read (const char *filename)
void Write (const char *filename) const
void Show (std::ostream &ostr) const


Detailed Description

Operations with ID3 tags using Taglib.

Used by MP3Core, reads and writes ID3 tags and changes them as requested by command-line parameters.

Warning:
Input and output encoding is UTF-8!

Definition at line 18 of file id3tag.h.


Constructor & Destructor Documentation

ID3Tag::ID3Tag  ) 
 

Constructor, only initializes everything to zero

Definition at line 15 of file id3tag.cpp.

ID3Tag::~ID3Tag  ) 
 

Destructor, deletes ID3 tags

Definition at line 26 of file id3tag.cpp.


Member Function Documentation

int ID3Tag::ParseParam const char  param,
const char *  value
 

Processes tag-related parameters

Parameters:
param Sub-parameter of -t
value Next parameter
Returns:
Whether next parameter (value) was used

Definition at line 33 of file id3tag.cpp.

Referenced by MP3Core::Params().

void ID3Tag::Read const char *  filename  ) 
 

Extracts ID3 tag from input file using Taglib

Warning:
It gets a filename, not a Bitstream, because of Taglib
Parameters:
filename Name of file to extract tags from

Definition at line 72 of file id3tag.cpp.

Referenced by MP3Core::Process().

void ID3Tag::Show std::ostream &  ostr  )  const
 

Show information from ID3 tag as text (UTF-8)

Parameters:
ostr Output stream

Definition at line 124 of file id3tag.cpp.

Referenced by MP3Core::GetInfo().

void ID3Tag::Write const char *  filename  )  const
 

Writes ID3 tag to output file (extracted tags from input file + changes)

Warning:
It gets a filename, not a Bitstream, because of Taglib
Parameters:
filename Name of file to write tags to

Definition at line 96 of file id3tag.cpp.

Referenced by MP3Core::WriteResult().


Generated on Wed Sep 6 00:18:18 2006 for Kraken by  doxygen 1.4.4