Main Page   Modules   Class Hierarchy   Compound List   File List   Compound Members   Related Pages  

Freedb Class Reference

The base class for all freedb operations. More...

#include <freedb/freedb.hxx>

Inheritance diagram for Freedb:

FreedbLocal FreedbRemote List of all members.

Static Public Methods

vector< TrackPosition > getTrackOffsets (string device="/dev/cdrom")
 Reads the CD-TOC and saves track positions in a vector.

unsigned long getDiscID (string device="/dev/cdrom")
 This is what you have to do in your own code if you want full control; otherwise you are free to use this.


Detailed Description

The base class for all freedb operations.

You will use this class indirectly for every freedb action, whether it is working with local data or getting information from remote servers, and directly for static things like generation of a discid.

Definition at line 164 of file freedb.hxx.


Member Function Documentation

unsigned long Freedb::getDiscID string    device = "/dev/cdrom" [static]
 

This is what you have to do in your own code if you want full control; otherwise you are free to use this.

Parameters:
device  See getTrackOffsets().

Definition at line 127 of file cdrom.cxx.

References getTrackOffsets().

vector< TrackPosition > Freedb::getTrackOffsets string    device = "/dev/cdrom" [static]
 

Reads the CD-TOC and saves track positions in a vector.

See sourcecode in cdrom.cxx for info on how to calculate the absolute frame position of a track.

Parameters:
device  The device pathname to open; /dev/cdrom per default
Todo:
Only the Linux unified CD-ROM driver interface is implemented. Access methods for more operating systems must follow; the decision on which code to compile must be made via the preprocessor-macro OS, which may be "LINUX", "WIN32" and the like.

Definition at line 20 of file cdrom.cxx.

References Error::errcode, Error::errmsg, Error::extinfo, and itos().

Referenced by getDiscID().


The documentation for this class was generated from the following files:
Generated on Wed Nov 6 17:32:02 2002 for libfreedb by doxygen1.2.18