OSDL::CDTrack Class Reference

#include <OSDLCDROMDrive.h>

List of all members.


Detailed Description

Describes a CD track, it is just an object-oriented view of an actual track.

Definition at line 45 of file OSDLCDROMDrive.h.

Public Member Functions

 CDTrack (const SDL_CDtrack &track) throw ()
 Creates a new CD track.
virtual ~CDTrack () throw ()
 Virtual destructor, does not deallocate the track data.
virtual TrackNumber getTrackNumber () const throw ()
 Return this track number (0-99).
virtual TrackType getTrackType () const throw ()
 Returns this track type.
virtual FrameCount getLength () const throw ()
 Returns the length, in frames, of this track.
virtual FrameCount getFrameOffset () const throw ()
 Returns the frame offset to the beginning of this track.
virtual const std::string toString (Ceylan::VerbosityLevels level=Ceylan::high) const throw ()
 Returns an user-friendly description of the state of this drive.

Protected Attributes

const SDL_CDtrack * _trackData

Private Member Functions

 CDTrack (const CDTrack &source) throw ()
 Copy constructor made private to ensure that it will be never called.
CDTrackoperator= (const CDTrack &source) throw ()
 Assignment operator made private to ensure that it will be never called.


Constructor & Destructor Documentation

CDTrack::CDTrack ( const SDL_CDtrack &  track  )  throw ()

Creates a new CD track.

Does not take ownership of the specified track.

Definition at line 19 of file OSDLCDROMDrive.cc.

CDTrack::~CDTrack (  )  throw () [virtual]

Virtual destructor, does not deallocate the track data.

Definition at line 26 of file OSDLCDROMDrive.cc.

OSDL::CDTrack::CDTrack ( const CDTrack source  )  throw () [explicit, private]

Copy constructor made private to ensure that it will be never called.

The compiler should complain whenever this undefined constructor is called, implicitly or not.


Member Function Documentation

TrackNumber CDTrack::getTrackNumber (  )  const throw () [virtual]

Return this track number (0-99).

Definition at line 34 of file OSDLCDROMDrive.cc.

References _trackData.

TrackType CDTrack::getTrackType (  )  const throw () [virtual]

Returns this track type.

Definition at line 42 of file OSDLCDROMDrive.cc.

References _trackData, OSDL::audioTrack, and OSDL::dataTrack.

FrameCount CDTrack::getLength (  )  const throw () [virtual]

Returns the length, in frames, of this track.

Definition at line 68 of file OSDLCDROMDrive.cc.

References _trackData.

FrameCount CDTrack::getFrameOffset (  )  const throw () [virtual]

Returns the frame offset to the beginning of this track.

Definition at line 76 of file OSDLCDROMDrive.cc.

References _trackData.

const string CDTrack::toString ( Ceylan::VerbosityLevels  level = Ceylan::high  )  const throw () [virtual]

Returns an user-friendly description of the state of this drive.

Parameters:
level the requested verbosity level.
Note:
Text output format is determined from overall settings.
See also:
Ceylan::TextDisplayable

Definition at line 84 of file OSDLCDROMDrive.cc.

References OSDL::audioTrack, OSDL::CDROMDrive::ConvertFrameCountToTime(), OSDL::dataTrack, and OSDL::Video::Pixels::toString().

CDTrack& OSDL::CDTrack::operator= ( const CDTrack source  )  throw () [private]

Assignment operator made private to ensure that it will be never called.

The compiler should complain whenever this undefined operator is called, implicitly or not.


Member Data Documentation

const SDL_CDtrack* OSDL::CDTrack::_trackData [protected]

Definition at line 95 of file OSDLCDROMDrive.h.

Referenced by getFrameOffset(), getLength(), getTrackNumber(), and getTrackType().


The documentation for this class was generated from the following files:
Generated on Fri Mar 30 14:47:24 2007 for OSDL by  doxygen 1.5.1