MetadataHandler Class Reference

This class is responsible for providing access to metadata information of various media. More...

#include <metadata_handler.h>

Inheritance diagram for MetadataHandler:
zmm::Object DVDHandler Exiv2Handler ExtractorHandler FfmpegHandler Id3Handler LibExifHandler LibMP4V2Handler TagHandler

Public Member Functions

 MetadataHandler ()
 Definition of the supported metadata fields.
virtual void fillMetadata (zmm::Ref< CdsItem > item)=0
virtual zmm::Ref< IOHandlerserveContent (zmm::Ref< CdsItem > item, int resNum, off_t *data_size)=0
virtual zmm::String getMimeType ()
void retain ()
void release ()
int getRefCount ()

Static Public Member Functions

static void setMetadata (zmm::Ref< CdsItem > item)
static zmm::String getMetaFieldName (metadata_fields_t field)
static zmm::String getResAttrName (resource_attributes_t attr)
static zmm::Ref< MetadataHandlercreateHandler (int handlerType)
static void * operator new (size_t size)
static void operator delete (void *ptr)

Protected Attributes

mt_atomic_t _ref_count
pthread_mutex_t mutex

Detailed Description

This class is responsible for providing access to metadata information of various media.

Definition at line 128 of file metadata_handler.h.

Constructor & Destructor Documentation

MetadataHandler::MetadataHandler (  ) 

Definition of the supported metadata fields.

Definition at line 107 of file

Member Function Documentation

Ref< MetadataHandler > MetadataHandler::createHandler ( int  handlerType  )  [static]

Definition at line 257 of file

References _, _Exception, CH_FFTH, CH_ID3, CH_LIBEXIF, and CH_MP4.

Referenced by FileRequestHandler::get_info(), and FileRequestHandler::open().

virtual void MetadataHandler::fillMetadata ( zmm::Ref< CdsItem item  )  [pure virtual]
String MetadataHandler::getMetaFieldName ( metadata_fields_t  field  )  [static]
String MetadataHandler::getMimeType (  )  [virtual]

Reimplemented in FfmpegHandler.

Definition at line 285 of file

References _, and MIMETYPE_DEFAULT.

int Object::getRefCount (  )  [inherited]

Definition at line 78 of file

References zmm::Object::_ref_count, and atomic_get().

String MetadataHandler::getResAttrName ( resource_attributes_t  attr  )  [static]
void Object::operator delete ( void *  ptr  )  [static, inherited]

Definition at line 87 of file

References FREE.

void * Object::operator new ( size_t  size  )  [static, inherited]

Definition at line 83 of file

References MALLOC.

void Object::release (  )  [inherited]
void Object::retain (  )  [inherited]
virtual zmm::Ref<IOHandler> MetadataHandler::serveContent ( zmm::Ref< CdsItem item,
int  resNum,
off_t *  data_size 
) [pure virtual]
void MetadataHandler::setMetadata ( zmm::Ref< CdsItem item  )  [static]

Field Documentation

mt_atomic_t zmm::Object::_ref_count [protected, inherited]
pthread_mutex_t zmm::Object::mutex [protected, inherited]

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

Generated on Fri Mar 26 20:16:57 2010 for MediaTomb by  doxygen 1.6.1