AudioMetaData Class Reference

#include <metadata.h>

List of all members.


Public Member Functions

 AudioMetaData ()
 Construct and load from stream.
 AudioMetaData (std::istream &i)
Setters
void setTitle (const char *title)
void setArtist (const char *artist)
void setAlbum (const char *album)
void setGenre (const char *genre)
void setComment (const char *comment)
void setComposer (const char *composer)
void setOrigArtist (const char *origartist)
void setCopyright (const char *copyright)
void setUrl (const char *url)
void setEncoded (const char *encoded)
void setYear (uint16_t year)
Getters
std::string getTitle () const
std::string getArtist () const
std::string getAlbum () const
std::string getGenre () const
std::string getComment () const
std::string getComposer () const
std::string getOrigArtist () const
std::string getCopyright () const
std::string getUrl () const
std::string getEncoded () const
uint16_t getYear () const

Private Member Functions

 ~AudioMetaData ()
 AudioMetaData (const AudioMetaData &)
 Forbidden.
AudioMetaDataoperator= (const AudioMetaData &)
 Forbidden.

Private Attributes

char * m_title
 Track title.
char * m_artist
 Track performer.
char * m_album
 Album.
char * m_genre
 Genre.
char * m_comment
 Comment.
char * m_composer
 Composer.
char * m_origartist
 Original artist.
char * m_copyright
 Copyright string.
char * m_url
 Web url.
char * m_encoded
 Encoded.
uint16_t m_year
 Release year.

Friends

class MetaData
std::ostream & operator<< (std::ostream &o, const AudioMetaData &amd)
 Output operator for streams.

Constructor & Destructor Documentation

AudioMetaData::AudioMetaData  ) 
 

Construct and load from stream.

Definition at line 219 of file metadata.cpp.

AudioMetaData::AudioMetaData std::istream &  i  ) 
 

Definition at line 239 of file metadata.cpp.

References getAlbum(), getArtist(), getComment(), getComposer(), getCopyright(), getEncoded(), getGenre(), getOrigArtist(), getTitle(), getUrl(), getYear(), logError(), logTrace(), logWarning(), CGComm::OP_AMD_ALBUM, CGComm::OP_AMD_ARTIST, CGComm::OP_AMD_COMMENT, CGComm::OP_AMD_COMPOSER, CGComm::OP_AMD_COPYRIGHT, CGComm::OP_AMD_ENCODED, CGComm::OP_AMD_GENRE, CGComm::OP_AMD_ORIGARTIST, CGComm::OP_AMD_TITLE, CGComm::OP_AMD_URL, CGComm::OP_AMD_YEAR, setAlbum(), setArtist(), setComment(), setComposer(), setCopyright(), setEncoded(), setGenre(), setOrigArtist(), setTitle(), setUrl(), setYear(), and TRACE_MD.

Here is the call graph for this function:

AudioMetaData::~AudioMetaData  )  [private]
 

Definition at line 225 of file metadata.cpp.

References m_album, m_artist, m_comment, m_composer, m_copyright, m_encoded, m_genre, m_origartist, m_title, and m_url.

AudioMetaData::AudioMetaData const AudioMetaData  )  [private]
 

Forbidden.


Member Function Documentation

std::string AudioMetaData::getAlbum  )  const [inline]
 

Definition at line 240 of file metadata.h.

Referenced by AudioMetaData().

std::string AudioMetaData::getArtist  )  const [inline]
 

Definition at line 239 of file metadata.h.

Referenced by AudioMetaData().

std::string AudioMetaData::getComment  )  const [inline]
 

Definition at line 242 of file metadata.h.

Referenced by AudioMetaData().

std::string AudioMetaData::getComposer  )  const [inline]
 

Definition at line 243 of file metadata.h.

Referenced by AudioMetaData().

std::string AudioMetaData::getCopyright  )  const [inline]
 

Definition at line 245 of file metadata.h.

Referenced by AudioMetaData().

std::string AudioMetaData::getEncoded  )  const [inline]
 

Definition at line 247 of file metadata.h.

Referenced by AudioMetaData().

std::string AudioMetaData::getGenre  )  const [inline]
 

Definition at line 241 of file metadata.h.

Referenced by AudioMetaData().

std::string AudioMetaData::getOrigArtist  )  const [inline]
 

Definition at line 244 of file metadata.h.

Referenced by AudioMetaData().

std::string AudioMetaData::getTitle  )  const [inline]
 

Definition at line 238 of file metadata.h.

Referenced by AudioMetaData().

std::string AudioMetaData::getUrl  )  const [inline]
 

Definition at line 246 of file metadata.h.

Referenced by AudioMetaData().

uint16_t AudioMetaData::getYear  )  const [inline]
 

Definition at line 248 of file metadata.h.

Referenced by AudioMetaData().

AudioMetaData& AudioMetaData::operator= const AudioMetaData  )  [private]
 

Forbidden.

void AudioMetaData::setAlbum const char *  album  )  [inline]
 

Definition at line 207 of file metadata.h.

References Utils::copyString().

Referenced by AudioMetaData().

Here is the call graph for this function:

void AudioMetaData::setArtist const char *  artist  )  [inline]
 

Definition at line 204 of file metadata.h.

References Utils::copyString().

Referenced by AudioMetaData().

Here is the call graph for this function:

void AudioMetaData::setComment const char *  comment  )  [inline]
 

Definition at line 213 of file metadata.h.

References Utils::copyString().

Referenced by AudioMetaData().

Here is the call graph for this function:

void AudioMetaData::setComposer const char *  composer  )  [inline]
 

Definition at line 216 of file metadata.h.

References Utils::copyString().

Referenced by AudioMetaData().

Here is the call graph for this function:

void AudioMetaData::setCopyright const char *  copyright  )  [inline]
 

Definition at line 222 of file metadata.h.

References Utils::copyString().

Referenced by AudioMetaData().

Here is the call graph for this function:

void AudioMetaData::setEncoded const char *  encoded  )  [inline]
 

Definition at line 228 of file metadata.h.

References Utils::copyString().

Referenced by AudioMetaData().

Here is the call graph for this function:

void AudioMetaData::setGenre const char *  genre  )  [inline]
 

Definition at line 210 of file metadata.h.

References Utils::copyString().

Referenced by AudioMetaData().

Here is the call graph for this function:

void AudioMetaData::setOrigArtist const char *  origartist  )  [inline]
 

Definition at line 219 of file metadata.h.

References Utils::copyString().

Referenced by AudioMetaData().

Here is the call graph for this function:

void AudioMetaData::setTitle const char *  title  )  [inline]
 

Definition at line 201 of file metadata.h.

References Utils::copyString().

Referenced by AudioMetaData().

Here is the call graph for this function:

void AudioMetaData::setUrl const char *  url  )  [inline]
 

Definition at line 225 of file metadata.h.

References Utils::copyString().

Referenced by AudioMetaData().

Here is the call graph for this function:

void AudioMetaData::setYear uint16_t  year  )  [inline]
 

Definition at line 231 of file metadata.h.

Referenced by AudioMetaData().


Friends And Related Function Documentation

friend class MetaData [friend]
 

Definition at line 256 of file metadata.h.

std::ostream& operator<< std::ostream &  o,
const AudioMetaData amd
[friend]
 

Output operator for streams.

Definition at line 372 of file metadata.cpp.


Member Data Documentation

char* AudioMetaData::m_album [private]
 

Album.

Definition at line 263 of file metadata.h.

Referenced by ~AudioMetaData().

char* AudioMetaData::m_artist [private]
 

Track performer.

Definition at line 262 of file metadata.h.

Referenced by ~AudioMetaData().

char* AudioMetaData::m_comment [private]
 

Comment.

Definition at line 265 of file metadata.h.

Referenced by ~AudioMetaData().

char* AudioMetaData::m_composer [private]
 

Composer.

Definition at line 266 of file metadata.h.

Referenced by ~AudioMetaData().

char* AudioMetaData::m_copyright [private]
 

Copyright string.

Definition at line 268 of file metadata.h.

Referenced by ~AudioMetaData().

char* AudioMetaData::m_encoded [private]
 

Encoded.

Definition at line 270 of file metadata.h.

Referenced by ~AudioMetaData().

char* AudioMetaData::m_genre [private]
 

Genre.

Definition at line 264 of file metadata.h.

Referenced by ~AudioMetaData().

char* AudioMetaData::m_origartist [private]
 

Original artist.

Definition at line 267 of file metadata.h.

Referenced by ~AudioMetaData().

char* AudioMetaData::m_title [private]
 

Track title.

Definition at line 261 of file metadata.h.

Referenced by ~AudioMetaData().

char* AudioMetaData::m_url [private]
 

Web url.

Definition at line 269 of file metadata.h.

Referenced by ~AudioMetaData().

uint16_t AudioMetaData::m_year [private]
 

Release year.

Definition at line 271 of file metadata.h.


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