TrackList Class Reference

This class is used by SemiProxySession in order to distinct different tracks of a session. More...

#include <TrackList.hpp>

List of all members.


Public Member Functions

 TrackList ()
 default constructor
 ~TrackList ()
 default destructor
vector< Track * >::const_iterator begin ()
vector< Track * >::const_iterator end ()
void addTrack (uint number)
 add a track with a specified number to the list
void setIdOfLastTrack (uint sessionID)
 set sessionid of last track
Track * getTrackByNumber (uint trackID)
 get track with specified number
Track * getTrackById (uint sessionID)
 get track with specified sessionID
uint getTCHavingState (TrackState state)
uint getTC ()

Detailed Description

This class is used by SemiProxySession in order to distinct different tracks of a session.

Author:
Klaus Schoeffmann

Definition at line 66 of file TrackList.hpp.


Member Function Documentation

vector< Track * >::const_iterator TrackList::begin  ) 
 

Returns:
begin of tracks vector
Definition at line 74 of file TrackList.cpp.

Referenced by SemiProxySession::containsSessionID().

00075 { 00076 return tracks.begin(); 00077 }

vector< Track * >::const_iterator TrackList::end  ) 
 

Returns:
end of tracks vector
Definition at line 80 of file TrackList.cpp.

Referenced by SemiProxySession::containsSessionID().

00081 { 00082 return tracks.end(); 00083 }

uint TrackList::getTC  ) 
 

Returns:
number of tracks
Definition at line 148 of file TrackList.cpp.
00149 { 00150 return tracks.size(); 00151 }

uint TrackList::getTCHavingState TrackState  state  ) 
 

Returns:
number of tracks with specified state
Definition at line 128 of file TrackList.cpp.

Referenced by SemiProxySession::handlePlayResponse(), SemiProxySession::pause(), and SemiProxySession::play().

00129 { 00130 uint count = 0; 00131 00132 //Globals::sdebug << "\ngetTCHavingState: searching for state " << state << "..."; 00133 00134 vector<Track*>::const_iterator iter = tracks.begin(); 00135 for (; iter != tracks.end(); iter++) 00136 { 00137 Track *trk = *iter; 00138 00139 if (trk->getState() == state) count++; 00140 } 00141 00142 //Globals::sdebug << "found " << count << "\n"; 00143 00144 return count; 00145 }


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